diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-11-24 12:26:12 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-17 12:40:56 +0100 |
commit | cd5cdeb6c8a42fb87644b0eb5d240f6ce6172402 (patch) | |
tree | 6a20f1366f4077ca3fb7bd6b6832a507b417f417 /arch/powerpc/kernel/rtas.c | |
parent | powerpc/rtas: Use rtas_call_unlocked() in call_rtas_display_status() (diff) | |
download | linux-cd5cdeb6c8a42fb87644b0eb5d240f6ce6172402.tar.xz linux-cd5cdeb6c8a42fb87644b0eb5d240f6ce6172402.zip |
powerpc/rtas: Make enter_rtas() private
There are no longer any users of enter_rtas() outside of rtas.c, so make
it "private", by moving the declaration inside rtas.c. Hopefully this
will encourage people to use one of the wrappers which takes the sharp
edges off the RTAS calling sequence.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index f4fa137292c4..28736ff27fea 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c @@ -44,6 +44,9 @@ #include <asm/mmu.h> #include <asm/topology.h> +/* This is here deliberately so it's only used in this file */ +void enter_rtas(unsigned long); + struct rtas_t rtas = { .lock = __ARCH_SPIN_LOCK_UNLOCKED }; |