Files
linux-apfs/drivers/net
Olof Johansson 81429973cf [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>
2007-10-22 02:59:53 -07:00
..
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 03:06:37 +02:00
2007-10-17 20:11:28 -04:00
2007-10-10 16:52:01 -07:00
2007-10-19 23:00:01 -04:00
2007-10-17 20:23:30 -04:00
2007-10-10 16:52:06 -07:00
2007-10-10 16:51:57 -07:00
2007-10-10 16:55:27 -07:00
2007-10-10 16:51:43 -07:00
2007-10-10 16:54:07 -07:00
2007-10-19 11:53:41 -07:00
2007-10-10 16:55:57 -07:00
2007-10-15 14:24:08 -04:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:55:27 -07:00
2007-10-19 23:00:01 -04:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2007-10-19 11:53:42 -07:00
2007-10-17 20:17:34 -04:00
2007-07-30 15:48:16 -04:00
2007-07-30 15:48:16 -04:00
2007-10-17 20:11:28 -04:00
2007-10-10 16:50:46 -07:00
2007-10-14 12:41:52 -07:00
2007-10-14 12:41:52 -07:00
2007-10-19 11:53:41 -07:00
2007-10-10 16:51:13 -07:00
2007-10-15 14:24:08 -04:00
2007-10-19 11:53:42 -07:00
2007-10-15 14:29:49 -04:00
2007-10-15 14:29:49 -04:00
2007-10-20 03:10:57 +02:00
2007-10-10 16:51:13 -07:00
2007-10-22 02:59:53 -07:00
2007-10-10 16:54:38 -07:00
2007-10-10 16:54:30 -07:00
2007-10-10 16:54:30 -07:00
2007-10-10 16:52:03 -07:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2007-10-15 14:29:48 -04:00
2007-10-16 21:10:29 -04:00
2007-10-16 21:10:29 -04:00
2007-10-11 22:17:19 -07:00
2007-10-10 16:51:13 -07:00
2007-07-16 15:02:47 +02:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:34 -07:00
2007-10-15 14:29:48 -04:00
2007-10-10 16:51:34 -07:00
2007-10-22 02:59:51 -07:00
2007-10-22 02:59:51 -07:00
2007-10-10 16:51:13 -07:00
2007-10-19 23:00:03 -04:00
2007-09-13 15:43:46 -05:00
2007-10-10 16:52:04 -07:00
2007-10-10 16:53:49 -07:00