Re: [PATCH] powerpc/maple: Fix declaration made after definition

2020-03-26 Thread Michael Ellerman
On Mon, 2020-03-23 at 22:27:29 UTC, Nathan Chancellor wrote: > When building ppc64 defconfig, Clang errors (trimmed for brevity): > > arch/powerpc/platforms/maple/setup.c:365:1: error: attribute declaration > must precede definition [-Werror,-Wignored-attributes] > machine_device_initcall(maple,

[PATCH] powerpc/maple: Fix declaration made after definition

2020-03-23 Thread Nathan Chancellor
When building ppc64 defconfig, Clang errors (trimmed for brevity): arch/powerpc/platforms/maple/setup.c:365:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] machine_device_initcall(maple, maple_cpc925_edac_setup); ^ machine_device_initcall expands to