Skip to contentSkip to conversation

percpu: remove export of pcpu_base_addr

PATCH Applied Greg Kroah-Hartman 2 participants 2 messages Jul 22, 2021 – Jul 23, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 percpu: remove export of pcpu_base_addr

This is not needed by any modules, so remove the export.

Cc Dennis Zhou <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Andrew Morton <[email protected]>
---
 mm/percpu.c | 1 -
 1 file changed, 1 deletion(-)
mm/percpu.c +0 -1
index 7f2e0151c4e2..a43039629aa4 100644
@@ -146,7 +146,6 @@ static unsigned int pcpu_high_unit_cpu __ro_after_init;
 
 /* the address of the first chunk which starts with the kernel static area */
 void *pcpu_base_addr __ro_after_init;
-EXPORT_SYMBOL_GPL(pcpu_base_addr);
 
 static const int *pcpu_unit_map __ro_after_init;		/* cpu -> unit */
 const unsigned long *pcpu_unit_offsets __ro_after_init;	/* cpu -> unit offset */
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Greg Kroah-Hartman

This is not needed by any modules, so remove the export.

Looks good. Note that all non-static users only want the delta, so this could be cleaned up with a helper as well. Also __addr_to_pcpu_ptr and __pcpu_ptr_to_addr__pcpu_ptr_to_addr are never actually overriden by arch code, so we can remove the ifndef there.