]> git.baikalelectronics.ru Git - kernel.git/commit
marvell: mark mvneta and mvpp2 32-bit only
authorArnd Bergmann <arnd@arndb.de>
Tue, 22 Nov 2016 14:21:22 +0000 (15:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2016 15:08:40 +0000 (10:08 -0500)
commit0e5af5ba7dd81f95677945ad2715b5ccd4e4de9a
tree37e3b5633378bf7e408806eb6094bcb097a2a643
parent562c84ed6d3dfdc4bf05721807f0376f20407922
marvell: mark mvneta and mvpp2 32-bit only

Both of these drivers won't work on 64-bit architectures unless they
are redesigned, since they store a virtual address pointer in a 32-bit
field of the descriptors:

drivers/net/ethernet/marvell/mvneta_bm.c: In function 'mvneta_bm_construct':
drivers/net/ethernet/marvell/mvneta_bm.c:103:16: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_vlan_init':
drivers/net/ethernet/marvell/mvpp2.c:2563:32: error: large integer implicitly truncated to unsigned type [-Werror=overflow]

This limits the COMPILE_TEST option for the two drivers again to
only build them on 32-bit. This seems nicer than shutting up the
warnings, in case we ever actually want to use them on 64-bit,
as the warnings indicate which parts of the driver are currently
broken there.

Fixes: 920d4f791dc2 ("net: marvell: Allow drivers to be built with COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/Kconfig