Messages in this thread Patch in this message | | | Subject | [PATCH] linux/fs/ufs/namei.c | Date | Thu, 11 Sep 2003 09:03:43 -0500 (CDT) | From | (Bob Tracy) |
| |
The attached patch fixes a compilation problem (syntax) that arises when using the recommended minimum (according to linux/Documentation/Changes) gcc-2.95.3 compiler to build 2.6.0-test5. Would have found this sooner, but my Slackware 8.0 laptop has been in use at a remote location for the past several months :-).
<old_fart_mode><gasoline><match> Don't much care for whatever C language standard revision that allows this kind of sloppiness. However, gcc-3.2.2 handles it just fine. </match></gasoline></old_fart_mode>
-- ----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org rct@frus.com ----------------------------------------------------------------------- --- linux/fs/ufs/namei.c.orig Wed Sep 10 10:23:03 2003 +++ linux/fs/ufs/namei.c Wed Sep 10 21:45:30 2003 @@ -113,10 +113,11 @@ static int ufs_mknod (struct inode * dir, struct dentry *dentry, int mode, dev_t rdev) { struct inode * inode; + int err; if (!old_valid_dev(rdev)) return -EINVAL; inode = ufs_new_inode(dir, mode); - int err = PTR_ERR(inode); + err = PTR_ERR(inode); if (!IS_ERR(inode)) { init_special_inode(inode, mode, rdev); /* NOTE: that'll go when we get wide dev_t */ | |