[patch] 2.6.10-rc1: SCSI aacraid warning
From: Adrian Bunk (bunk_at_stusta.de)
Date: 10/29/04
- Previous message: Scott Lockwood: "Re: BK kernel workflow"
- In reply to: Linus Torvalds: "The naming wars continue..."
- Next in thread: Mark Haverkamp: "Re: [patch] 2.6.10-rc1: SCSI aacraid warning"
- Reply: Mark Haverkamp: "Re: [patch] 2.6.10-rc1: SCSI aacraid warning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Oct 2004 16:37:12 +0200 To: Linus Torvalds <torvalds@osdl.org>, markh@osdl.org
On Fri, Oct 22, 2004 at 03:05:13PM -0700, Linus Torvalds wrote:
>...
> Summary of changes from v2.6.9 to v2.6.10-rc1
> ============================================
>...
> Mark Haverkamp:
>...
> o aacraid: dynamic dev update
>...
This causes the following warning with a recent gcc:
<-- snip -->
...
CC drivers/scsi/aacraid/aachba.o
drivers/scsi/aacraid/aachba.c: In function `aac_scsi_cmd':
drivers/scsi/aacraid/aachba.c:1140: warning: integer constant is too large for "long" type
...
<-- snip -->
The fix is simple:
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc1-mm2-full/drivers/scsi/aacraid/aachba.c.old 2004-10-29 16:16:52.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/drivers/scsi/aacraid/aachba.c 2004-10-29 16:22:14.000000000 +0200
@@ -1137,7 +1137,7 @@
char *cp;
dprintk((KERN_DEBUG "READ CAPACITY command.\n"));
- if (fsa_dev_ptr[cid].size <= 0x100000000)
+ if (fsa_dev_ptr[cid].size <= 0x100000000ULL)
capacity = fsa_dev_ptr[cid].size - 1;
else
capacity = (u32)-1;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Scott Lockwood: "Re: BK kernel workflow"
- In reply to: Linus Torvalds: "The naming wars continue..."
- Next in thread: Mark Haverkamp: "Re: [patch] 2.6.10-rc1: SCSI aacraid warning"
- Reply: Mark Haverkamp: "Re: [patch] 2.6.10-rc1: SCSI aacraid warning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|