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

MIPS: ARC: Fix build error.

[...]
struct component {
^
In file included from ./arch/mips/include/asm/sn/klconfig.h:58:0,
from ./arch/mips/include/asm/sn/module.h:12,
from ./arch/mips/include/asm/sn/node.h:8,
from ./arch/mips/include/asm/mach-ip35/mmzone.h:4,
from ./arch/mips/include/asm/mmzone.h:9,
from ./arch/mips/include/asm/mach-ip35/topology.h:7,
from ./arch/mips/include/asm/topology.h:11,
from include/linux/topology.h:35,
from include/linux/gfp.h:8,
from include/linux/device.h:29,
from drivers/base/component.c:14:
./arch/mips/include/asm/fw/arc/hinv.h:122:16: note: originally defined here
typedef struct component {
^
make[2]: *** [drivers/base/component.o] Error 1
make[2]: Target `__build' not remade because of errors.
make[1]: *** [drivers/base] Error 2
make[1]: Target `__build' not remade because of errors.

Fix by using an nameless struct definition in the COMPONENT definition.
Which is what the ARC spec uses anyway. While at it, do the same thing
for two other typedefs.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+3 -3
+3 -3
arch/mips/include/asm/fw/arc/hinv.h
··· 119 119 #define SGI_ARCS_REV 10 /* rev .10, 3/04/92 */ 120 120 #endif 121 121 122 - typedef struct component { 122 + typedef struct { 123 123 CONFIGCLASS Class; 124 124 CONFIGTYPE Type; 125 125 IDENTIFIERFLAG Flags; ··· 140 140 }; 141 141 142 142 /* System ID */ 143 - typedef struct systemid { 143 + typedef struct { 144 144 CHAR VendorId[8]; 145 145 CHAR ProductId[8]; 146 146 } SYSTEMID; ··· 166 166 #endif /* _NT_PROM */ 167 167 } MEMORYTYPE; 168 168 169 - typedef struct memorydescriptor { 169 + typedef struct { 170 170 MEMORYTYPE Type; 171 171 LONG BasePage; 172 172 LONG PageCount;