Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ppc32: fix compilation error in include/asm-m68k/setup.h

make defconfig give the following error on ppc (gcc-4):

include/asm-m68k/setup.h:365: error: array type has incomplete element
type

Signed-Off-By: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Benoit Boissinot and committed by
Linus Torvalds
9ce3a719 b625a2b8

+4 -4
+4 -4
include/asm-m68k/setup.h
··· 360 360 #define COMMAND_LINE_SIZE CL_SIZE 361 361 362 362 #ifndef __ASSEMBLY__ 363 - extern int m68k_num_memory; /* # of memory blocks found (and used) */ 364 - extern int m68k_realnum_memory; /* real # of memory blocks found */ 365 - extern struct mem_info m68k_memory[NUM_MEMINFO];/* memory description */ 366 - 367 363 struct mem_info { 368 364 unsigned long addr; /* physical address of memory chunk */ 369 365 unsigned long size; /* length of memory chunk (in bytes) */ 370 366 }; 367 + 368 + extern int m68k_num_memory; /* # of memory blocks found (and used) */ 369 + extern int m68k_realnum_memory; /* real # of memory blocks found */ 370 + extern struct mem_info m68k_memory[NUM_MEMINFO];/* memory description */ 371 371 #endif 372 372 373 373 #endif /* __KERNEL__ */