diff mbox series

powerpc/rtas: Drop unused export symbols

Message ID 20230127111231.84294-1-mpe@ellerman.id.au (mailing list archive)
State Accepted
Commit 0d7e812fd282bf248b54523cc550a34b77c2e9a2
Headers show
Series powerpc/rtas: Drop unused export symbols | expand

Checks

Context Check Description
snowpatch_ozlabs/github-powerpc_selftests success Successfully ran 8 jobs.
snowpatch_ozlabs/github-powerpc_ppctests success Successfully ran 8 jobs.
snowpatch_ozlabs/github-powerpc_clang success Successfully ran 6 jobs.
snowpatch_ozlabs/github-powerpc_sparse success Successfully ran 4 jobs.
snowpatch_ozlabs/github-powerpc_kernel_qemu success Successfully ran 24 jobs.

Commit Message

Michael Ellerman Jan. 27, 2023, 11:12 a.m. UTC
Some RTAS symbols are never used by modular code, drop their exports.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/kernel/rtas.c | 4 ----
 1 file changed, 4 deletions(-)

FYI: I'll slot this in prior to Nathan's series changing the exports to GPL.

Comments

Nathan Lynch Jan. 27, 2023, 12:40 p.m. UTC | #1
Michael Ellerman <mpe@ellerman.id.au> writes:
> Some RTAS symbols are never used by modular code, drop their exports.
>
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> ---
>  arch/powerpc/kernel/rtas.c | 4 ----
>  1 file changed, 4 deletions(-)
>
> FYI: I'll slot this in prior to Nathan's series changing the exports
> to GPL.

LGTM

Reviewed-by: Nathan Lynch <nathanl@linux.ibm.com>
Michael Ellerman Feb. 15, 2023, 12:46 p.m. UTC | #2
On Fri, 27 Jan 2023 22:12:31 +1100, Michael Ellerman wrote:
> Some RTAS symbols are never used by modular code, drop their exports.
> 
> 

Applied to powerpc/next.

[1/1] powerpc/rtas: Drop unused export symbols
      https://git.kernel.org/powerpc/c/0d7e812fd282bf248b54523cc550a34b77c2e9a2

cheers
diff mbox series

Patch

diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c
index 6c5716b19d69..149742119b6d 100644
--- a/arch/powerpc/kernel/rtas.c
+++ b/arch/powerpc/kernel/rtas.c
@@ -341,7 +341,6 @@  int rtas_service_present(const char *service)
 {
 	return rtas_token(service) != RTAS_UNKNOWN_SERVICE;
 }
-EXPORT_SYMBOL(rtas_service_present);
 
 #ifdef CONFIG_RTAS_ERROR_LOGGING
 
@@ -356,7 +355,6 @@  int rtas_get_error_log_max(void)
 {
 	return rtas_error_log_max;
 }
-EXPORT_SYMBOL(rtas_get_error_log_max);
 
 static void __init init_error_log_max(void)
 {
@@ -622,7 +620,6 @@  unsigned int rtas_busy_delay_time(int status)
 
 	return ms;
 }
-EXPORT_SYMBOL(rtas_busy_delay_time);
 
 /**
  * rtas_busy_delay() - helper for RTAS busy and extended delay statuses
@@ -820,7 +817,6 @@  bool rtas_indicator_present(int token, int *maxindex)
 
 	return false;
 }
-EXPORT_SYMBOL(rtas_indicator_present);
 
 int rtas_set_indicator(int indicator, int index, int new_value)
 {