Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/rtas: Remove unused rtas_service_present()

rtas_service_present() has no more users.

rtas_function_implemented() is now the appropriate API for determining
whether a given RTAS function is available to call.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231106-rtas-trivial-v1-4-61847655c51f@linux.ibm.com

authored by

Nathan Lynch and committed by
Michael Ellerman
1d8faf1f 981d1c99

-6
-1
arch/powerpc/include/asm/rtas.h
··· 409 409 return rtas_function_token(handle) != RTAS_UNKNOWN_SERVICE; 410 410 } 411 411 extern int rtas_token(const char *service); 412 - extern int rtas_service_present(const char *service); 413 412 extern int rtas_call(int token, int, int, int *, ...); 414 413 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, 415 414 int nret, ...);
-5
arch/powerpc/kernel/rtas.c
··· 900 900 } 901 901 EXPORT_SYMBOL_GPL(rtas_token); 902 902 903 - int rtas_service_present(const char *service) 904 - { 905 - return rtas_token(service) != RTAS_UNKNOWN_SERVICE; 906 - } 907 - 908 903 #ifdef CONFIG_RTAS_ERROR_LOGGING 909 904 910 905 static u32 rtas_error_log_max __ro_after_init = RTAS_ERROR_LOG_MAX;