[RFC PATCH 01/11] powerpc/prom_init: Make of_workarounds static
Michael Ellerman
mpe at ellerman.id.au
Sat Oct 13 00:56:23 AEDT 2018
Benjamin Herrenschmidt <benh at kernel.crashing.org> writes:
> It's not used anywhere else
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
> arch/powerpc/kernel/prom_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
> index f9d6befb55a6..d6f52cc141c3 100644
> --- a/arch/powerpc/kernel/prom_init.c
> +++ b/arch/powerpc/kernel/prom_init.c
> @@ -88,7 +88,7 @@
> #define OF_WORKAROUNDS 0
> #else
> #define OF_WORKAROUNDS of_workarounds
> -int of_workarounds;
> +static int of_workarounds __promdata;
I don't have __promdata:
arch/powerpc/kernel/prom_init.c:90:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__promdata’
static int of_workarounds __promdata;
^~~~~~~~~~
arch/powerpc/kernel/prom_init.c: In function ‘prom_claim’:
arch/powerpc/kernel/prom_init.c:89:24: error: ‘of_workarounds’ undeclared (first use in this function); did you mean ‘of_irq_workarounds’?
#define OF_WORKAROUNDS of_workarounds
^
arch/powerpc/kernel/prom_init.c:438:21: note: in expansion of macro ‘OF_WORKAROUNDS’
if (align == 0 && (OF_WORKAROUNDS & OF_WA_CLAIM)) {
^~~~~~~~~~~~~~
arch/powerpc/kernel/prom_init.c:89:24: note: each undeclared identifier is reported only once for each function it appears in
#define OF_WORKAROUNDS of_workarounds
^
arch/powerpc/kernel/prom_init.c:438:21: note: in expansion of macro ‘OF_WORKAROUNDS’
if (align == 0 && (OF_WORKAROUNDS & OF_WA_CLAIM)) {
^~~~~~~~~~~~~~
arch/powerpc/kernel/prom_init.c: In function ‘prom_setprop’:
arch/powerpc/kernel/prom_init.c:89:24: error: ‘of_workarounds’ undeclared (first use in this function); did you mean ‘of_irq_workarounds’?
#define OF_WORKAROUNDS of_workarounds
^
arch/powerpc/kernel/prom_init.c:544:8: note: in expansion of macro ‘OF_WORKAROUNDS’
if (!(OF_WORKAROUNDS & OF_WA_LONGTRAIL))
^~~~~~~~~~~~~~
arch/powerpc/kernel/prom_init.c: In function ‘prom_find_mmu’:
arch/powerpc/kernel/prom_init.c:2072:3: error: ‘of_workarounds’ undeclared (first use in this function); did you mean ‘of_irq_workarounds’?
of_workarounds = OF_WA_CLAIM;
^~~~~~~~~~~~~~
of_irq_workarounds
cheers
More information about the Linuxppc-dev
mailing list