Patch: linux-2.5.2-pre8/fs/jffs kdev_t compilation fixes

Adam J. Richter (adam@yggdrasil.com)
Sat, 5 Jan 2002 05:01:39 -0800


--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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."

--vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="jffs.diffs"

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

--vtzGhvizbBRQ85DL-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/