Skip to contentSkip to conversation

2.5.1 compile error

DISCUSSION Martin A. Brooks 2 participants 3 messages Dec 17, 2001 – Dec 18, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

gcc -D__KERNEL__ -I/home/martin/kernel-a-day-club/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -c -o init/do_mounts.o init/do_mounts.c
init/do_mounts.c: In function `rd_load_image':
init/do_mounts.c:491: `rd_image_start' undeclared (first use in this function)
init/do_mounts.c:491: (Each undeclared identifier is reported only once init/do_mounts.c:491: for each function it appears in.)
make: *** [init/do_mounts.o] Error 1

Signature · 4 lines
Martin A. Brooks   Systems Administrator
Jtrix Ltd          t: +44 7395 4990
57-59 Neal Street  f: +44 7395 4991
London, WC2H 9PP   e: [email protected]
#1 lore raw

Next bunch of cleanups should fix the problem (bogus
ifdefs in blk.h - hell knows where they came from).

Contents: bunch of __setup() and corresponding variables
moved from rd.c to do_mounts.c. #includes in both trimmed down.

This stuff (rd_doload, rd_prompt, rd_image_start) used to be needed in rd.c, but now all relevant code is in do_mounts.c.

Please, apply.

arch/ppc/kernel/m8xx_setup.c +0 -6
diff -urN C1-pre11-floppy/arch/ppc/kernel/m8xx_setup.c C1-pre11-misc/arch/ppc/kernel/m8xx_setup.c
@@ -55,12 +55,6 @@
 
 extern void m8xx_ide_init(void);
 
-#ifdef CONFIG_BLK_DEV_RAM
-extern int rd_doload;		/* 1 = load ramdisk, 0 = don't load */
-extern int rd_prompt;		/* 1 = prompt for ramdisk, 0 = don't prompt */
-extern int rd_image_start;	/* starting block # of image */
-#endif
-
 extern unsigned long find_available_memory(void);
 extern void m8xx_cpm_reset(uint);
 
arch/ppc/kernel/prep_setup.c +0 -6
diff -urN C1-pre11-floppy/arch/ppc/kernel/prep_setup.c C1-pre11-misc/arch/ppc/kernel/prep_setup.c
@@ -111,12 +111,6 @@
 extern int probingmem;
 extern unsigned long loops_per_jiffy;
 
-#ifdef CONFIG_BLK_DEV_RAM
-extern int rd_doload;		/* 1 = load ramdisk, 0 = don't load */
-extern int rd_prompt;		/* 1 = prompt for ramdisk, 0 = don't prompt */
-extern int rd_image_start;	/* starting block # of image */
-#endif
-
 #ifdef CONFIG_SOUND_MODULE
 EXPORT_SYMBOL(ppc_cs4232_dma);
 EXPORT_SYMBOL(ppc_cs4232_dma2);
drivers/block/rd.c +25 -80

141 lines not on this page · raw message

include/linux/blk.h +0 -1
diff -urN C1-pre11-floppy/include/linux/blk.h C1-pre11-misc/include/linux/blk.h
@@ -20,7 +20,6 @@
 #define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
 
 extern unsigned long initrd_start,initrd_end;
-extern int mount_initrd; /* zero if initrd should not be mounted */
 extern int initrd_below_start_ok; /* 1 if it is not an error if initrd_start < memory_start */
 extern int rd_doload;		/* 1 = load ramdisk, 0 = don't load */
 extern int rd_prompt;		/* 1 = prompt for ramdisk, 0 = don't prompt */
init/do_mounts.c +39 -15

110 lines not on this page · raw message

#2 lore raw
Quoted 1 line · Alexander Viro

Please, apply.

Works for me. I now have another compilation error but I'll report that separately.

Thanks

Signature · 4 lines
Martin A. Brooks   Systems Administrator
Jtrix Ltd          t: +44 7395 4990
57-59 Neal Street  f: +44 7395 4991
London, WC2H 9PP   e: [email protected]