lkml.org 
[lkml]   [2002]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch: linux-2.5.2-pre8/fs/jffs kdev_t compilation fixes
	Here is a patch for a couple of kdev-related fixes needed
to make linux-2.5.2-pre8/fs/jffs compile.

I know it compiles. I have not otherwise tested it.

--
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."
Only in linux/fs/jffs: CVS
diff -u -r linux-2.5.2-pre8/fs/jffs/inode-v23.c linux/fs/jffs/inode-v23.c
--- linux-2.5.2-pre8/fs/jffs/inode-v23.c Fri Jan 4 19:40:37 2002
+++ linux/fs/jffs/inode-v23.c Sat Jan 5 04:55:37 2002
@@ -357,7 +357,7 @@
inode->i_nlink = raw_inode->nlink;
inode->i_uid = raw_inode->uid;
inode->i_gid = raw_inode->gid;
- inode->i_rdev = 0;
+ inode->i_rdev = NODEV;
inode->i_size = raw_inode->dsize;
inode->i_atime = raw_inode->atime;
inode->i_mtime = raw_inode->mtime;
diff -u -r linux-2.5.2-pre8/fs/jffs/jffs_fm.c linux/fs/jffs/jffs_fm.c
--- linux-2.5.2-pre8/fs/jffs/jffs_fm.c Thu Oct 4 15:13:18 2001
+++ linux/fs/jffs/jffs_fm.c Sat Jan 5 04:55:37 2002
@@ -46,7 +46,7 @@
}
DJM(no_jffs_fmcontrol++);

- mtd = get_mtd_device(NULL, MINOR(dev));
+ mtd = get_mtd_device(NULL, minor(dev));

if (!mtd) {
kfree(fmc);
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.016 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site