summaryrefslogtreecommitdiff
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-10-16 10:00:51 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-10-19 03:01:08 (GMT)
commit951b5d959f1da4bae8910085a2d8d6a3d374c72d (patch)
tree503fc4fa4cfc4ac14099c2eb2e99a5f1d2add2ba /net/ipv4/ip_output.c
parent876133d3161dcb743983d1f9e5bf247aea2fb0f1 (diff)
downloadlinux-951b5d959f1da4bae8910085a2d8d6a3d374c72d.tar.xz
net: hix5hd2_gmac: avoid integer overload warning
BITS_RX_EN is an 'unsigned long' constant, so the ones complement of that has bits set that do not fit into a 32-bit variable on 64-bit architectures, which causes a harmless gcc warning: drivers/net/ethernet/hisilicon/hix5hd2_gmac.c: In function 'hix5hd2_port_disable': drivers/net/ethernet/hisilicon/hix5hd2_gmac.c:374:2: warning: large integer implicitly truncated to unsigned type [-Woverflow] writel_relaxed(~(BITS_RX_EN | BITS_TX_EN), priv->base + PORT_EN); This adds a cast to (u32) to tell gcc that the code is indeed fine. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
0 files changed, 0 insertions, 0 deletions