diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2020-10-23 13:08:38 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-11-19 14:50:13 +1100 |
commit | ef78f2dd2398ce8ed9eeaab9c9f8af2e15f5d870 (patch) | |
tree | e970545aea5d7bf42e738ee24697104a6adfca58 | |
parent | 53f45ecc9cd04b4b963f3040f2a54c3baf03b229 (diff) | |
download | linux-stable-ef78f2dd2398ce8ed9eeaab9c9f8af2e15f5d870.tar.gz linux-stable-ef78f2dd2398ce8ed9eeaab9c9f8af2e15f5d870.tar.bz2 linux-stable-ef78f2dd2398ce8ed9eeaab9c9f8af2e15f5d870.zip |
powerpc/85xx: Fix declaration made after definition
Currently the clang build of corenet64_smp_defconfig fails with:
arch/powerpc/platforms/85xx/corenet_generic.c:210:1: error:
attribute declaration must precede definition
machine_arch_initcall(corenet_generic, corenet_gen_publish_devices);
Fix it by moving the initcall definition prior to the machine
definition, and directly below the function it calls, which is the
usual style anyway.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201023020838.3274226-1-mpe@ellerman.id.au
-rw-r--r-- | arch/powerpc/platforms/85xx/corenet_generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c b/arch/powerpc/platforms/85xx/corenet_generic.c index 6aa8defb5857..8d6029099848 100644 --- a/arch/powerpc/platforms/85xx/corenet_generic.c +++ b/arch/powerpc/platforms/85xx/corenet_generic.c @@ -106,6 +106,7 @@ int __init corenet_gen_publish_devices(void) { return of_platform_bus_probe(NULL, of_device_ids, NULL); } +machine_arch_initcall(corenet_generic, corenet_gen_publish_devices); static const char * const boards[] __initconst = { "fsl,P2041RDB", @@ -206,5 +207,3 @@ define_machine(corenet_generic) { .power_save = e500_idle, #endif }; - -machine_arch_initcall(corenet_generic, corenet_gen_publish_devices); |