2.5.13 -- UFS compile error in fs/ufs/super.c:661: In function `ufs_fill_super': parse error before "uspi"
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=super -c -o super.o super.c super.c: In function `ufs_fill_super':
super.c:661: parse error before "uspi"
super.c:666: parse error before "uspi"
super.c:676: parse error before "uspi"
super.c:681: parse error before "uspi"
make[3]: *** [super.o] Error 1
make[3]: Leaving directory `/usr/src/linux/fs/ufs'
CONFIG_AUTOFS4_FS=y CONFIG_REISERFS_FS=y CONFIG_REISERFS_CHECK=y CONFIG_REISERFS_PROC_INFO=y CONFIG_HFS_FS=yCONFIG_EXT3_FS=yCONFIG_JBD=yCONFIG_JBD_DEBUG=y CONFIG_FAT_FS=mCONFIG_VFAT_FS=mCONFIG_TMPFS=yCONFIG_RAMFS=y CONFIG_ISO9660_FS=y CONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_JFS_FS=y CONFIG_JFS_DEBUG=y CONFIG_JFS_STATISTICS=y CONFIG_NTFS_FS=y CONFIG_NTFS_DEBUG=y CONFIG_PROC_FS=y CONFIG_DEVPTS_FS=y CONFIG_EXT2_FS=yCONFIG_UDF_FS=yCONFIG_UFS_FS=y
Quoted 11 lines · Miles Lane
gcc -D__KERNEL__ -I/usr/src/linux/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=athlon -DKBUILD_BASENAME=super -c -o super.o super.c
super.c: In function `ufs_fill_super':
super.c:661: parse error before "uspi" super.c:666: parse error before "uspi" super.c:676: parse error before "uspi" super.c:681: parse error before "uspi" make[3]: *** [super.o] Error 1
make[3]: Leaving directory `/usr/src/linux/fs/ufs'
The fix has already been posted. 4 missing commas.
ufs/super.c renamed from ufs/super.c.bak +4 -4
@@ -663,12 +663,12 @@ goto failed; }if (uspi->s_bsize <512 ) { -printk ("ufs_read_super: fragment size %u is too small\n" +printk ("ufs_read_super: fragment size %u is too small\n" , uspi->s_fsize); goto failed; }if (uspi->s_bsize >4096 ) { -printk ("ufs_read_super: fragment size %u is too large\n" +printk ("ufs_read_super: fragment size %u is too large\n" , uspi->s_fsize); goto failed; }
@@ -678,12 +678,12 @@ goto failed; }if (uspi->s_bsize <4096 ) { -printk ("ufs_read_super: block size %u is too small\n" +printk ("ufs_read_super: block size %u is too small\n" , uspi->s_fsize); goto failed; }if (uspi->s_bsize / uspi->s_fsize >8 ) { -printk ("ufs_read_super: too many fragments per block (%u)\n" +printk ("ufs_read_super: too many fragments per block (%u)\n" , uspi->s_bsize / uspi->s_fsize); goto failed; }
Signature · 1 line
Skip
Quoted 11 lines · Miles Lane
gcc -D__KERNEL__ -I/usr/src/linux/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=athlon -DKBUILD_BASENAME=super -c -o super.o super.c
super.c: In function `ufs_fill_super':
super.c:661: parse error before "uspi" super.c:666: parse error before "uspi" super.c:676: parse error before "uspi" super.c:681: parse error before "uspi" make[3]: *** [super.o] Error 1
make[3]: Leaving directory `/usr/src/linux/fs/ufs'
Sorry Miles. I think the first one was for 2.4. This one's for 2.5.
ufs/super.c renamed from ufs/super.c.old +4 -4
@@ -657,12 +657,12 @@ goto failed; }if (uspi->s_fsize <512 ) { -printk ("ufs_read_super: fragment size %u is too small\n" +printk ("ufs_read_super: fragment size %u is too small\n" , uspi->s_fsize); goto failed; }if (uspi->s_fsize >4096 ) { -printk ("ufs_read_super: fragment size %u is too large\n" +printk ("ufs_read_super: fragment size %u is too large\n" , uspi->s_fsize); goto failed; }
@@ -672,12 +672,12 @@ goto failed; }if (uspi->s_bsize <4096 ) { -printk ("ufs_read_super: block size %u is too small\n" +printk ("ufs_read_super: block size %u is too small\n" , uspi->s_fsize); goto failed; }if (uspi->s_bsize / uspi->s_fsize >8 ) { -printk ("ufs_read_super: too many fragments per block (%u)\n" +printk ("ufs_read_super: too many fragments per block (%u)\n" , uspi->s_bsize / uspi->s_fsize); goto failed; }
Signature · 1 line
Skip