Skip to contentSkip to conversation

aacraid: fix integer constant warning

PATCH In review Randy.Dunlap 2 participants 2 messages Nov 16, 2004 – Nov 17, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aacraid: fix integer constant warning

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(-)
drivers/scsi/aacraid/aachba.c renamed from drivers/scsi/aacraid/aachba.c~aachba_const +1 -1
diff -Naurp ./drivers/scsi/aacraid/aachba.c~aachba_const ./drivers/scsi/aacraid/aachba.c
@@ -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;
#1 lore raw
Quoted 8 lines · Randy.Dunlap

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(-)

This is fixed as part of a recent patch that I submitted on Oct 21 titled [PATCH] 2.6.9 aacraid: Support ROMB RAID/SCSI mode

Mark.

Signature · 1 line
Mark Haverkamp <[email protected]>