aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ef10.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-02-17 16:08:30 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-17 15:25:49 -0500
commitfbdf0e28d061708cf18ba0f8e0db5360dc9a15b9 (patch)
tree57b98b6fb5b7411be4180fafafb572af85dd0854 /drivers/net/ethernet/sfc/ef10.c
parentnet/wan: add MODULE_LICENSE for fsl_ucc_hdlc (diff)
downloadlinux-dev-fbdf0e28d061708cf18ba0f8e0db5360dc9a15b9.tar.xz
linux-dev-fbdf0e28d061708cf18ba0f8e0db5360dc9a15b9.zip
vmxnet3: prevent building with 64K pages
I got a warning about broken code on ARM64 with 64K pages: drivers/net/vmxnet3/vmxnet3_drv.c: In function 'vmxnet3_rq_init': drivers/net/vmxnet3/vmxnet3_drv.c:1679:29: error: large integer implicitly truncated to unsigned type [-Werror=overflow] rq->buf_info[0][i].len = PAGE_SIZE; 'len' here is a 16-bit integer, so this clearly won't work. I don't think this driver is used much on anything other than x86, so there is no need to fix this properly and we can work around it with a Kconfig dependency to forbid known-broken configurations. qemu in theory supports it on other architectures too, but presumably only for compatibility with x86 guests that also run on vmware. CONFIG_PAGE_SIZE_64KB is used on hexagon, mips, sh and tile, the other symbols are architecture-specific names for the same thing. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions