summaryrefslogtreecommitdiff
path: root/Documentation/powerpc
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-04-13 22:06:45 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-20 16:39:56 +0300
commit91ffeaa7e5dd62753e23a1204dc7ecd11f26eadc (patch)
tree089830440164983e2c896376bf8c7b2632328125 /Documentation/powerpc
parentc2e929b18cea6cbf71364f22d742d9aad7f4677a (diff)
downloadlinux-91ffeaa7e5dd62753e23a1204dc7ecd11f26eadc.tar.xz
powerpc/wii: Fix declaration made after definition
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: 5a7ee3198dfa ("powerpc: wii: platform support") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://github.com/ClangBuiltLinux/linux/issues/989 Link: https://lore.kernel.org/r/20200413190644.16757-1-natechancellor@gmail.com
Diffstat (limited to 'Documentation/powerpc')
0 files changed, 0 insertions, 0 deletions