Files
kernel/include/linux
Arnd Bergmann eefffb42f6 spi: work around clang bug in SPI_BPW_RANGE_MASK()
Clang-8 evaluates both sides of a ?: expression to check for
valid arithmetic even in the side that is never taken. This
results in a build warning:

drivers/spi/spi-sh-msiof.c:1052:24: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
        .bits_per_word_mask = SPI_BPW_RANGE_MASK(8, 32),
                              ^~~~~~~~~~~~~~~~~~~~~~~~~

Change the implementation to use the GENMASK() macro that does
what we want here but does not have a problem with the shift
count overflow.

Link: https://bugs.llvm.org/show_bug.cgi?id=38789
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-03-11 16:43:24 +00:00
..
2018-12-11 09:57:47 -08:00
2019-01-25 15:32:28 -08:00
2019-01-24 11:11:45 -07:00
2018-12-18 17:50:47 +01:00
2018-12-19 10:42:08 +01:00
2018-12-28 12:11:52 -08:00
2019-01-04 13:13:48 -08:00
2019-01-04 13:13:48 -08:00
2018-12-13 09:58:57 +01:00
2019-01-07 16:38:26 +01:00
2018-12-21 11:50:02 -05:00
2019-01-11 18:05:40 -08:00
2018-12-22 12:15:29 +01:00