diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2020-08-04 02:54:06 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-08-24 17:31:33 +0200 |
commit | 8471c1dd93de9a2278d41c527b76291e4ace8f1c (patch) | |
tree | cd9a2ad70da1854b3b64dfb99ede944ddeb2b8a5 /arch/powerpc/platforms/powernv | |
parent | powerpc/powernv/smp: Fix spurious DBG() warning (diff) | |
download | linux-8471c1dd93de9a2278d41c527b76291e4ace8f1c.tar.xz linux-8471c1dd93de9a2278d41c527b76291e4ace8f1c.zip |
powerpc/powernv: Include asm/powernv.h from the local powernv.h
The asm/powernv.h header provides prototypes for functions which need to be
called by non-powernv platform code. Also include it in the powernv.h
that's local to the platform directory to squash some warnings about
non-static functions missing prototypes.
Also include powernv.h since from opal-memcons.c since it has the
prototypes for the memcons wrangling functions which are used for the opal
and ultravisor msglog.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200804005410.146094-3-oohall@gmail.com
Diffstat (limited to 'arch/powerpc/platforms/powernv')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-msglog.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/powernv.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-msglog.c b/arch/powerpc/platforms/powernv/opal-msglog.c index d26da19a611f..d3b6e135c18b 100644 --- a/arch/powerpc/platforms/powernv/opal-msglog.c +++ b/arch/powerpc/platforms/powernv/opal-msglog.c @@ -12,6 +12,8 @@ #include <linux/types.h> #include <asm/barrier.h> +#include "powernv.h" + /* OPAL in-memory console. Defined in OPAL source at core/console.c */ struct memcons { __be64 magic; diff --git a/arch/powerpc/platforms/powernv/powernv.h b/arch/powerpc/platforms/powernv/powernv.h index 1aa51c4fa904..11df4e16a1cc 100644 --- a/arch/powerpc/platforms/powernv/powernv.h +++ b/arch/powerpc/platforms/powernv/powernv.h @@ -2,6 +2,13 @@ #ifndef _POWERNV_H #define _POWERNV_H +/* + * There's various hacks scattered throughout the generic powerpc arch code + * that needs to call into powernv platform stuff. The prototypes for those + * functions are in asm/powernv.h + */ +#include <asm/powernv.h> + #ifdef CONFIG_SMP extern void pnv_smp_init(void); #else |