percpu: remove export of pcpu_base_addr
Subsystems (2)
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]>
Signed-off-by Greg Kroah-Hartman <[email protected]>
--- mm/percpu.c | 1 - 1 file changed, 1 deletion(-)
mm/percpu.c +0 -1
@@ -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
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.
Reviewed-by Christoph Hellwig <[email protected]>