The patch titled cciss: use upper_32_bits() macro to eliminate warnings has been added to the -mm tree. Its filename is cciss-use-upper_32_bits-macro-to-eliminate-warnings.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: cciss: use upper_32_bits() macro to eliminate warnings From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> 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@xxxxxxxxxx> Cc: <mike.miller@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/block/cciss.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff -puN drivers/block/cciss.c~cciss-use-upper_32_bits-macro-to-eliminate-warnings drivers/block/cciss.c --- a/drivers/block/cciss.c~cciss-use-upper_32_bits-macro-to-eliminate-warnings +++ a/drivers/block/cciss.c @@ -2650,12 +2650,14 @@ static void do_cciss_request(struct requ c->Request.CDB[8] = creq->nr_sectors & 0xff; c->Request.CDB[9] = c->Request.CDB[11] = c->Request.CDB[12] = 0; } else { + u32 upper32 = upper_32_bits(start_blk); + c->Request.CDBLen = 16; c->Request.CDB[1]= 0; - c->Request.CDB[2]= (start_blk >> 56) & 0xff; //MSB - c->Request.CDB[3]= (start_blk >> 48) & 0xff; - c->Request.CDB[4]= (start_blk >> 40) & 0xff; - c->Request.CDB[5]= (start_blk >> 32) & 0xff; + c->Request.CDB[2]= (upper32 >> 24) & 0xff; //MSB + c->Request.CDB[3]= (upper32 >> 16) & 0xff; + c->Request.CDB[4]= (upper32 >> 8) & 0xff; + c->Request.CDB[5]= upper32 & 0xff; c->Request.CDB[6]= (start_blk >> 24) & 0xff; c->Request.CDB[7]= (start_blk >> 16) & 0xff; c->Request.CDB[8]= (start_blk >> 8) & 0xff; _ Patches currently in -mm which might be from randy.dunlap@xxxxxxxxxx are chipsfb-uses-depends-on-pci.patch git-dvb.patch git-kbuild.patch git-netdev-all.patch advansys-fix-section-mismatch-warning.patch aic94-fix-section-mismatches.patch sym2-fix-section-mismatch-warning.patch git-unionfs.patch git-ipwireless_cs.patch x86-bitops_32h-style-cleanups.patch voyager-use-struct-instead-of-param.patch sysctl-fix-token-ring-procname.patch gbefb-fix-section-mismatch-warnings.patch vmstat-fix-section-mismatch-warning.patch register_cpu-__devinit-or-__cpuinit.patch cciss-use-upper_32_bits-macro-to-eliminate-warnings.patch move-kprobes-examples-to-samples-resend.patch move-kprobes-examples-to-samples-resend-checkpatch-fixes.patch fs-menu-small-reorg.patch profile-likely-unlikely-macros.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html