when building 2.5.38, I get the following error:
gcc -Wp,-MD,./.check.o.d -D__KERNEL__ -I/usr/src/kernel/v2.5.38/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/kernel/v2.5.38/arch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=check -c -o check.o check.c
check.c: In function `devfs_create_cdrom':
check.c:365: `devfs_handle' undeclared (first use in this function)
check.c:365: (Each undeclared identifier is reported only once
check.c:365: for each function it appears in.)
I don't know, wether this patch is correct, but at least it lets me
compile and run UML 2.5.38
Regards, Olaf.
diff -urN a/fs/partitions/check.c b/fs/partitions/check.c
--- a/fs/partitions/check.c Wed Sep 25 15:52:01 2002
+++ b/fs/partitions/check.c Wed Sep 25 16:19:41 2002
@@ -288,6 +288,7 @@
static struct unique_numspace disc_numspace = UNIQUE_NUMBERSPACE_INITIALISER;
static devfs_handle_t cdroms;
static struct unique_numspace cdrom_numspace = UNIQUE_NUMBERSPACE_INITIALISER;
+static devfs_handle_t devfs_handle;
#endif
static void devfs_create_partitions(struct gendisk *dev)
@@ -297,7 +298,6 @@
devfs_handle_t dir, slave;
unsigned int devfs_flags = DEVFS_FL_DEFAULT;
char dirname[64], symlink[16];
- static devfs_handle_t devfs_handle;
int part, max_p = 1<<dev->minor_shift;
struct hd_struct *p = dev->part;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/