Messages in this thread Patch in this message | | | From | Rolf Eike Beer <> | Subject | [PATCH] Fix build of fs/ufs/namei.c (was: Linux 2.6.0-test5: ufs build fails) | Date | Tue, 9 Sep 2003 15:10:12 +0200 |
| |
Von Eyal Lebedinsky:
> allmodconfig on i386: > > CC [M] fs/ufs/namei.o > fs/ufs/namei.c: In function `ufs_mknod': > fs/ufs/namei.c:119: parse error before `int' > fs/ufs/namei.c:127: `err' undeclared (first use in this function) > fs/ufs/namei.c:127: (Each undeclared identifier is reported only once > fs/ufs/namei.c:127: for each function it appears in.) > fs/ufs/namei.c:131: warning: control reaches end of non-void function > make[2]: *** [fs/ufs/namei.o] Error 1 > make[1]: *** [fs/ufs] Error 2 > make: *** [fs] Error 2
Your gcc doesn't like declarations after code I think. Try attached patch.
Eike
--- linux-2.6.0-test5/fs/ufs/namei.c 2003-09-08 21:50:57.000000000 +0200 +++ linux-2.6.0-test5-caliban/fs/ufs/namei.c 2003-09-09 15:06:19.000000000 +0200 @@ -113,10 +113,12 @@ 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 */ - 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/
| |