All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: linux-scsi@vger.kernel.org, James.Bottomley@SteelEye.com
Subject: [PATCH] aacraid: fix integer constant warning
Date: Tue, 16 Nov 2004 15:13:31 -0800	[thread overview]
Message-ID: <419A899B.6010401@osdl.org> (raw)

[-- 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;

             reply	other threads:[~2004-11-16 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16 23:13 Randy.Dunlap [this message]
2004-11-17  0:05 ` [PATCH] aacraid: fix integer constant warning Mark Haverkamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=419A899B.6010401@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=James.Bottomley@SteelEye.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.