2002-03-18 21:52:46

by Gregoire Favre

[permalink] [raw]
Subject: 2.5.7 hfs modules compil error

Hello,

gcc -D__KERNEL__ -I/usr/src/linux-2.5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE
-DKBUILD_BASENAME=super -c -o super.o super.c
super.c: In function `hfs_fill_super':
super.c:536: `sb' undeclared (first use in this function)
super.c:536: (Each undeclared identifier is reported only once
super.c:536: for each function it appears in.)
make[2]: *** [super.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5/fs/hfs'
make[1]: *** [_modsubdir_hfs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5/fs'
make: *** [_mod_fs] Error 2
178.340u 10.190s 3:15.77 96.3% 0+0k 0+0io 189688pf+0w
Exit 2

Thanks you very much,

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]


2002-03-18 23:26:18

by Brian Gerst

[permalink] [raw]
Subject: [PATCH] Re: 2.5.7 hfs modules compil error

diff -urN linux-2.5.7/fs/hfs/super.c linux/fs/hfs/super.c
--- linux-2.5.7/fs/hfs/super.c Mon Mar 18 16:14:15 2002
+++ linux/fs/hfs/super.c Mon Mar 18 17:06:11 2002
@@ -533,7 +533,7 @@
set_blocksize(dev, BLOCK_SIZE);
bail3:
kfree(sbi);
- sb->u.generic_sbp = NULL;
+ s->u.generic_sbp = NULL;
return -EINVAL;
}


Attachments:
sb-hfs-2 (319.00 B)