Linux 2.4.20-pre2
make[3]: Entering directory `/usr/src/linux-2.4.20-pre2/fs/partitions' gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-pre2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -
mpreferred-stack-boundary=2 -march=athlon -nostdinc -I/usr/lib/gcc-lib/athlon-redhat-linux/3.2/include -DKBUILD_BASENAME=check -DEXPORT_SYMTAB -c check.c check.c: In function `devfs_register_disc':
check.c:328: structure has no member named number' check.c:329: structure has no member named number' check.c: In function `devfs_register_partitions':
check.c:361: structure has no member named `number' make[3]: *** [check.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-pre2/fs/partitions' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-pre2/fs/partitions' make[1]: *** [_subdir_partitions] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-pre2/fs'
make: *** [_dir_fs] Error 2
Quoted 5 lines · Ivan Gyurdiev
make[3]: Entering directory `/usr/src/linux-2.4.20-pre2/fs/partitions' gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-pre2/include -Wall
(quoted diff) +0
-2-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -I
Quoted 8 lines
/usr/lib/gcc-lib/athlon-redhat-linux/3.2/include-DKBUILD_BASENAME=check -DEXPORT_SYMTAB -ccheck.ccheck.c: In function `devfs_register_disc':
check.c:328: structure has no member namednumber' check.c:329: structure has no member namednumber'check.c: In function `devfs_register_partitions':
check.c:361: structure has no member named `number'
...
The following patch made by Christoph Hellwig fixes it:
include/linux/genhd.h +3 -1
@@ -62,7 +62,9 @@ struct hd_struct {unsigned long start_sect;unsigned long nr_sects;devfs_handle_t de;/* primary (master) devfs entry */ - +#ifdef CONFIG_DEVFS_FS +int number; +#endif /* CONFIG_DEVFS_FS */ #ifdef CONFIG_BLK_STATS /* Performance stats: */ unsigned int ios_in_flight;
cu
Adrian
Signature · 3 lines
You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox