Skip to contentSkip to conversation

2.5.7 hfs modules compil error

DISCUSSION Gregoire Favre 2 participants 2 messages Mar 18, 2002 HFS filesystem

lore
Share & tools
lore
#0 lore raw

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]

#1 lore raw
Quoted 8 lines · Gregoire Favre

Hello,

gcc -D__KERNEL__ -I/usr/src/linux-2.5/include -Wall -Wstrict-prototypes

(quoted diff) +0 -3
-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)

Typo fixed.

Signature · 1 line
						Brian Gerst
fs/hfs/super.c +1 -1
diff -urN linux-2.5.7/fs/hfs/super.c linux/fs/hfs/super.c
@@ -533,7 +533,7 @@
 	set_blocksize(dev, BLOCK_SIZE);
 bail3:
 	kfree(sbi);
-	sb->u.generic_sbp = NULL;
+	s->u.generic_sbp = NULL;
 	return -EINVAL;	
 }