A 0day randconfig uncovered an error with clang, trimmed for brevity:
arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute
declaration must precede definition [-Werror,-Wignored-attributes]
if (!machine_is(wii))
^
The macro machine_is declares mach_##name but define_machine actually
defines mach_##name, hence the warning.
To fix this, move define_machine after the is_machine usage.
Fixes:
|
||
|---|---|---|
| .. | ||
| flipper-pic.c | ||
| flipper-pic.h | ||
| gamecube.c | ||
| hlwd-pic.c | ||
| hlwd-pic.h | ||
| holly.c | ||
| Kconfig | ||
| linkstation.c | ||
| ls_uart.c | ||
| Makefile | ||
| mpc10x.h | ||
| mpc7448_hpc2.c | ||
| mvme5100.c | ||
| storcenter.c | ||
| usbgecko_udbg.c | ||
| usbgecko_udbg.h | ||
| wii.c | ||