Skip to contentSkip to conversation

Problem compiling arch/ppc/kernel/setup.c, Linux 2.4.0-test1-ac18

PATCH diekema_jon 1 participant 1 message Jun 16, 2000

lore
Share & tools
lore
#0 lore raw

To: [email protected],[email protected]

Problem compiling arch/ppc/kernel/setup.c:

Linux: 2.4.0-test1-ac18

gmake -C arch/ppc/kernel
gmake[1]: Entering directory `/usr/people/diekema/bk/linux-2.3/arch/ppc/kernel'

/opt/hardhat/devkit/ppc/8xx/bin/powerpc-linux-gcc -D__KERNEL__ -I/usr/people/diekema/bk/linux-2.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DEXPORT_SYMTAB -c setup.c

setup.c: In function `identify_machine':
setup.c:573: warning: implicit declaration of function m8260_init' setup.c: In function setup_arch':
setup.c:715: `dcache_bsize' undeclared (first use in this function) setup.c:715: (Each undeclared identifier is reported only once setup.c:715: for each function it appears in.)
setup.c:715: icache_bsize' undeclared (first use in this function) setup.c:718: ucache_bsize' undeclared (first use in this function) gmake[1]: *** [setup.o] Error 1
gmake[1]: Leaving directory `/usr/people/diekema/bk/linux-2.3/arch/ppc/kernel'
gmake: *** [_dir_arch/ppc/kernel] Error 2

Patches to eliminate compile problems:

===== arch/ppc/kernel/ppc_ksyms.c 1.36 vs 1.37 =====

arch/ppc/kernel/ppc_ksyms.c +1 -1
@@ -82,7 +82,7 @@
 EXPORT_SYMBOL(kernel_flag);
 #endif /* CONFIG_SMP */
 
-#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx)
+#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) && !defined(CONFIG_8260)
 EXPORT_SYMBOL(isa_io_base);
 EXPORT_SYMBOL(isa_mem_base);
 EXPORT_SYMBOL(pci_dram_offset);

===== arch/ppc/kernel/setup.c 1.36 vs 1.37 =====

arch/ppc/kernel/setup.c +8 -8
@@ -131,14 +131,6 @@
 };
 
 /*
- * These are used in binfmt_elf.c to put aux entries on the stack
- * for each elf executable being started.
- */
-int dcache_bsize;
-int icache_bsize;
-int ucache_bsize;
-
-/*
  * I really need to add multiple-console support... -- Cort
  */
 int __init pmac_display_supported(char *name)
@@ -166,6 +158,14 @@
 	16			/* orig-video-points */
 };
 #endif /* !CONFIG_4xx && !CONFIG_8xx */
+
+/*
+ * These are used in binfmt_elf.c to put aux entries on the stack
+ * for each elf executable being started.
+ */
+int dcache_bsize;
+int icache_bsize;
+int ucache_bsize;
 
 void machine_restart(char *cmd)
 {

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/