linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.5.38 fs/partitions/check.c
@ 2002-09-25 15:32 Olaf Dietsche
  0 siblings, 0 replies; only message in thread
From: Olaf Dietsche @ 2002-09-25 15:32 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel

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.

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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-25 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 15:32 [PATCH] 2.5.38 fs/partitions/check.c Olaf Dietsche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).