linux_dsm_epyc7002/arch/powerpc/platforms
Nathan Chancellor af6cf95c4d powerpc/maple: Fix declaration made after definition
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 __define_machine_initcall, which in
turn has the macro machine_is used in it, which declares mach_##name
with an __attribute__((weak)). define_machine actually defines
mach_##name, which in this file happens before the declaration, hence
the warning.

To fix this, move define_machine after machine_device_initcall so that
the declaration occurs before the definition, which matches how
machine_device_initcall and define_machine work throughout
arch/powerpc.

While we're here, remove some spaces before tabs.

Fixes: 8f101a051e ("edac: cpc925 MC platform device setup")
Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Ilie Halip <ilie.halip@gmail.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200323222729.15365-1-natechancellor@gmail.com
2020-03-25 12:09:48 +11:00
..
4xx
8xx powerpc: Replace setup_irq() by request_irq() 2020-03-25 12:07:57 +11:00
40x
44x
52xx
82xx
83xx powerpc/83xx: Add some error handling in 'quirk_mpc8360e_qe_enet10()' 2020-03-04 22:44:25 +11:00
85xx powerpc: Replace setup_irq() by request_irq() 2020-03-25 12:07:57 +11:00
86xx
512x
amigaone
cell powerpc/cell: Use fallthrough; 2020-03-25 12:07:57 +11:00
chrp powerpc: Replace setup_irq() by request_irq() 2020-03-25 12:07:57 +11:00
embedded6xx
maple powerpc/maple: Fix declaration made after definition 2020-03-25 12:09:48 +11:00
pasemi
powermac powerpc: Replace setup_irq() by request_irq() 2020-03-25 12:07:57 +11:00
powernv powerpc/eeh: Rework eeh_ops->probe() 2020-03-25 12:09:39 +11:00
ps3
pseries powerpc/pseries: Avoid harmless preempt warning 2020-03-25 12:09:39 +11:00
fsl_uli1575.c
Kconfig
Kconfig.cputype powerpc/kuap: PPC_KUAP_DEBUG should depend on PPC_KUAP 2020-03-20 13:10:22 +11:00
Makefile