1
0
Fork 0
alistair23-linux/arch/arm/plat-orion
Arnd Bergmann cd92d74d67 ARM: orion: don't use using 64-bit DMA masks
clang warns about statically defined DMA masks from the DMA_BIT_MASK
macro with length 64:

arch/arm/plat-orion/common.c:625:29: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
                .coherent_dma_mask      = DMA_BIT_MASK(64),
                                          ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:141:54: note: expanded from macro 'DMA_BIT_MASK'
 #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))

The ones in orion shouldn't really be 64 bit masks, so changing them
to what the driver can support avoids the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-04-07 15:19:42 -07:00
..
include/plat ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
Makefile Removal of GENERIC_GPIO for v3.10 2013-05-09 09:59:16 -07:00
common.c ARM: orion: don't use using 64-bit DMA masks 2019-04-07 15:19:42 -07:00
gpio.c ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show() 2016-10-17 17:40:24 +02:00
irq.c ARM: orion: always use MULTI_IRQ_HANDLER 2015-12-07 18:16:42 +01:00
mpp.c ARM: orion: avoid VLA in orion_mpp_conf 2018-11-02 22:31:24 -07:00
pcie.c arm: plat-orion: use mv_mbus_dram_info() in PCIe code 2013-03-17 18:03:44 +00:00
time.c ARM: orion: implement ARM delay timer 2016-01-26 23:45:05 +00:00