summaryrefslogtreecommitdiff
path: root/include/linux/net.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-10-21 23:32:58 (GMT)
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-22 09:59:53 (GMT)
commit81429973cfff7745792c877dd083eec29724ec97 (patch)
tree538f5e8413166b287051f85fa1c00ccff06c096c /include/linux/net.h
parentdeea84b0ae3d26b41502ae0a39fe7fe134e703d0 (diff)
downloadlinux-fsl-qoriq-81429973cfff7745792c877dd083eec29724ec97.tar.xz
[NIU]: Cleanup PAGE_SIZE checks a bit
I get the following warning from a powerpc allyesconfig of current mainline: drivers/net/niu.c: In function 'niu_size_rbr': drivers/net/niu.c:3113: warning: large integer implicitly truncated to unsigned type PAGE_SIZE in this case is 64KB, so I don't quite get why gcc can't tell that the line in question will never be reached. I suggest the following instead, but I can unfortunately not do anything but build test it. Also, the driver does some other checks to make sure that PAGE_SIZE is a power of two (BUILD_BUG_ON() in niu_init()), doesn't seem like that could ever be untrue? Or are there really archs with non-power-of-two PAGE_SIZE? Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/net.h')
0 files changed, 0 insertions, 0 deletions