public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] aacraid: fix integer constant warning
@ 2004-11-16 23:13 Randy.Dunlap
  2004-11-17  0:05 ` Mark Haverkamp
  0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2004-11-16 23:13 UTC (permalink / raw)
  To: linux-scsi, James.Bottomley

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]


drivers/scsi/aacraid/aachba.c:1140: warning: integer constant is too 
large for "long" type

diffstat:=
  drivers/scsi/aacraid/aachba.c |    2 +-
  1 files changed, 1 insertion(+), 1 deletion(-)

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

[-- Attachment #2: aachba_const.patch --]
[-- Type: text/x-patch, Size: 544 bytes --]

diff -Naurp ./drivers/scsi/aacraid/aachba.c~aachba_const ./drivers/scsi/aacraid/aachba.c
--- ./drivers/scsi/aacraid/aachba.c~aachba_const	2004-11-16 13:33:33.951988776 -0800
+++ ./drivers/scsi/aacraid/aachba.c	2004-11-16 14:27:58.464707408 -0800
@@ -1137,7 +1137,7 @@ int aac_scsi_cmd(struct scsi_cmnd * scsi
 		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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-17  0:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-16 23:13 [PATCH] aacraid: fix integer constant warning Randy.Dunlap
2004-11-17  0:05 ` Mark Haverkamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox