]> err.no Git - linux-2.6/commit
cciss: use upper_32_bits() macro to eliminate warnings
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 6 Feb 2008 09:36:54 +0000 (01:36 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:03 +0000 (10:41 -0800)
commit582539e5a0480f1e00e3b9ffbe50bd5b2f59a16f
tree1b5f40ebbf4680fe62aec25a0a27063fda06e690
parent5e2cb1018a8a583b83d56c80f46507da6f3f2b57
cciss: use upper_32_bits() macro to eliminate warnings

Use upper_32_bits(x) macro to handle shifts that may be >= the width of
the data type.

drivers/block/cciss.c: In function 'do_cciss_request':
drivers/block/cciss.c:2655: warning: right shift count >= width of type
drivers/block/cciss.c:2656: warning: right shift count >= width of type
drivers/block/cciss.c:2657: warning: right shift count >= width of type
drivers/block/cciss.c:2658: warning: right shift count >= width of type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/cciss.c