From: Robert Love <rml@tech9.net>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 2.5.65-mm3
Date: 21 Mar 2003 15:17:52 -0500 [thread overview]
Message-ID: <1048277871.4908.36.camel@phantasy.awol.org> (raw)
In-Reply-To: <20030320235821.1e4ff308.akpm@digeo.com>
On Fri, 2003-03-21 at 02:58, Andrew Morton wrote:
> dev_t-3-major_h-cleanup.patch
> dev_t [3/3]: major.h cleanups
>
> dev_t-32-bit.patch
> [for playing only] change type of dev_t
Now that dev_t is an unsigned long, MKDEV() correspondingly returns an
unsigned long. This causes a compiler warning and potential bug on
64-bit architectures in drivers/scsi/sg.c :: sg_device_kdev_read().
This patch needs to be applied on top of the dev_t patches.
Robert Love
drivers/scsi/sg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -urN linux-2.5.65-mm3/drivers/scsi/sg.c linux/drivers/scsi/sg.c
--- linux-2.5.65-mm3/drivers/scsi/sg.c 2003-03-17 16:44:05.000000000 -0500
+++ linux/drivers/scsi/sg.c 2003-03-19 11:35:50.706607408 -0500
@@ -1331,9 +1331,11 @@
sg_device_kdev_read(struct device *driverfs_dev, char *page)
{
Sg_device *sdp = list_entry(driverfs_dev, Sg_device, sg_driverfs_dev);
- return sprintf(page, "%x\n", MKDEV(sdp->disk->major,
- sdp->disk->first_minor));
+
+ return sprintf(page, "%lx\n", MKDEV(sdp->disk->major,
+ sdp->disk->first_minor));
}
+
static DEVICE_ATTR(kdev,S_IRUGO,sg_device_kdev_read,NULL);
static ssize_t
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
next prev parent reply other threads:[~2003-03-21 20:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-21 7:58 2.5.65-mm3 Andrew Morton
2003-03-21 10:58 ` 2.5.65-mm3 Alexander Hoogerhuis
2003-03-21 11:05 ` 2.5.65-mm3 Andrew Morton
2003-03-21 12:05 ` 2.5.65-mm3 Alexander Hoogerhuis
2003-03-21 15:23 ` [BUG] 2.5.65-mm3 kernel BUG at fs/ext3/super.c:1795! Alexander Hoogerhuis
2003-03-21 20:39 ` Andrew Morton
2003-03-22 2:55 ` Alexander Hoogerhuis
2003-03-21 20:15 ` 2.5.65-mm3 Seth Chandler
2003-03-21 20:17 ` Robert Love [this message]
2003-03-22 12:38 ` 2.5.65-mm3 bad: scheduling while atomic! [SCSI] Alexander Hoogerhuis
2003-03-22 14:49 ` Alan Cox
2003-03-22 16:06 ` 2.5.65-mm2 vs 2.5.65-mm3 (full objrmap) Martin J. Bligh
2003-03-22 23:48 ` Hugh Dickins
2003-03-23 1:07 ` Martin J. Bligh
2003-03-23 8:14 ` Hugh Dickins
2003-03-23 8:56 ` William Lee Irwin III
2003-03-21 14:14 2.5.65-mm3 Felipe Alfaro Solana
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=1048277871.4908.36.camel@phantasy.awol.org \
--to=rml@tech9.net \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox