Skip to contentSkip to conversation

2.5.38 fs/partitions/check.c

PATCH New Olaf Dietsche 1 participant 1 message Sep 25, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.38 fs/partitions/check.c

Hi,

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.

fs/partitions/check.c +1 -1
diff -urN a/fs/partitions/check.c b/fs/partitions/check.c
@@ -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;