From: "Adam J. Richter" <adam@yggdrasil.com>
To: linux-kernel@vger.kernel.org
Cc: torvalds@transmeta.com
Subject: PATCH: linux-2.5.2-pre7/drivers/block/nbd.c
Date: Fri, 4 Jan 2002 01:07:43 -0800 [thread overview]
Message-ID: <20020104010743.A14809@baldur.yggdrasil.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
kdev_t compilation fixes for linux-2.5.2-pre7/drivers/block/nbd.c.
I only know that it compiles at this point.
--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
[-- Attachment #2: nbd.diffs --]
[-- Type: text/plain, Size: 1777 bytes --]
--- linux-2.5.2-pre7/drivers/block/nbd.c Thu Jan 3 19:52:01 2002
+++ linux/drivers/block/nbd.c Fri Jan 4 01:05:49 2002
@@ -78,7 +78,7 @@
if (!inode)
return -EINVAL;
- dev = MINOR(inode->i_rdev);
+ dev = minor(inode->i_rdev);
if (dev >= MAX_NBD)
return -ENODEV;
@@ -253,7 +253,7 @@
if (req != blkdev_entry_prev_request(&lo->queue_head)) {
printk(KERN_ALERT "NBD: I have problem...\n");
}
- if (lo != &nbd_dev[MINOR(req->rq_dev)]) {
+ if (lo != &nbd_dev[minor(req->rq_dev)]) {
printk(KERN_ALERT "NBD: request corrupted!\n");
continue;
}
@@ -291,7 +291,7 @@
printk( KERN_ALERT "NBD: panic, panic, panic\n" );
break;
}
- if (lo != &nbd_dev[MINOR(req->rq_dev)]) {
+ if (lo != &nbd_dev[minor(req->rq_dev)]) {
printk(KERN_ALERT "NBD: request corrupted when clearing!\n");
continue;
}
@@ -328,7 +328,7 @@
if (!req)
FAIL("que not empty but no request?");
#endif
- dev = MINOR(req->rq_dev);
+ dev = minor(req->rq_dev);
#ifdef PARANOIA
if (dev >= MAX_NBD)
FAIL("Minor too big."); /* Probably can not happen */
@@ -381,7 +381,7 @@
return -EPERM;
if (!inode)
return -EINVAL;
- dev = MINOR(inode->i_rdev);
+ dev = minor(inode->i_rdev);
if (dev >= MAX_NBD)
return -ENODEV;
@@ -473,7 +473,7 @@
if (!inode)
return -ENODEV;
- dev = MINOR(inode->i_rdev);
+ dev = minor(inode->i_rdev);
if (dev >= MAX_NBD)
return -ENODEV;
lo = &nbd_dev[dev];
@@ -528,7 +528,7 @@
nbd_blksize_bits[i] = 10;
nbd_bytesizes[i] = 0x7ffffc00; /* 2GB */
nbd_sizes[i] = nbd_bytesizes[i] >> BLOCK_SIZE_BITS;
- register_disk(NULL, MKDEV(MAJOR_NR,i), 1, &nbd_fops,
+ register_disk(NULL, mk_kdev(MAJOR_NR,i), 1, &nbd_fops,
nbd_bytesizes[i]>>9);
}
devfs_handle = devfs_mk_dir (NULL, "nbd", NULL);
reply other threads:[~2002-01-04 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020104010743.A14809@baldur.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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;
as well as URLs for NNTP newsgroup(s).