linux/drivers/net/ethernet/hisilicon
Arnd Bergmann 951b5d959f 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>
2015-10-18 20:01:08 -07:00
..
hns net: hisilicon: include linux/vmalloc.h in dsaf 2015-10-18 19:58:46 -07:00
hip04_eth.c net: hisilicon: fix handling platform_get_irq result 2015-09-26 22:46:45 -07:00
hix5hd2_gmac.c net: hix5hd2_gmac: avoid integer overload warning 2015-10-18 20:01:08 -07:00
hns_mdio.c net: add Hisilicon Network Subsystem MDIO support 2015-09-20 21:42:57 -07:00
Kconfig net: hisilicon: add OF dependency 2015-10-18 20:01:06 -07:00
Makefile net: add Hisilicon Network Subsystem hnae framework support 2015-09-20 21:42:57 -07:00