linux/fs/ufs/namei.c
PATCH 1/1 linux/fs/ufs/namei.c
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>
Signature · 4 lines
----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org [email protected] -----------------------------------------------------------------------
fs/ufs/namei.c renamed from fs/ufs/namei.c.orig +2 -1
@@ -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 */