* [PATCH] Fix build of fs/ufs/namei.c (was: Linux 2.6.0-test5: ufs build fails)
@ 2003-09-09 13:10 Rolf Eike Beer
0 siblings, 0 replies; only message in thread
From: Rolf Eike Beer @ 2003-09-09 13:10 UTC (permalink / raw)
To: linux-kernel; +Cc: Eyal Lebedinsky, Linus Torvalds
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-09 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 13:10 [PATCH] Fix build of fs/ufs/namei.c (was: Linux 2.6.0-test5: ufs build fails) Rolf Eike Beer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®