Commit cd5cdeb6 authored by Michael Ellerman's avatar Michael Ellerman

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 4456f452
...@@ -334,7 +334,6 @@ extern void (*rtas_flash_term_hook)(int); ...@@ -334,7 +334,6 @@ extern void (*rtas_flash_term_hook)(int);
extern struct rtas_t rtas; extern struct rtas_t rtas;
extern void enter_rtas(unsigned long);
extern int rtas_token(const char *service); extern int rtas_token(const char *service);
extern int rtas_service_present(const char *service); extern int rtas_service_present(const char *service);
extern int rtas_call(int token, int, int, int *, ...); extern int rtas_call(int token, int, int, int *, ...);
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/topology.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 = { struct rtas_t rtas = {
.lock = __ARCH_SPIN_LOCK_UNLOCKED .lock = __ARCH_SPIN_LOCK_UNLOCKED
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment