• Tejun Heo's avatar
    percpu: make percpu symbols in x86 unique · 0fe1e009
    Tejun Heo authored
    This patch updates percpu related symbols in x86 such that percpu
    symbols are unique and don't clash with local symbols.  This serves
    two purposes of decreasing the possibility of global percpu symbol
    collision and allowing dropping per_cpu__ prefix from percpu symbols.
    
    * arch/x86/kernel/cpu/common.c: rename local variable to avoid collision
    
    * arch/x86/kvm/svm.c: s/svm_data/sd/ for local variables to avoid collision
    
    * arch/x86/kernel/cpu/cpu_debug.c: s/cpu_arr/cpud_arr/
      				   s/priv_arr/cpud_priv_arr/
    				   s/cpu_priv_count/cpud_priv_count/
    
    * arch/x86/kernel/cpu/intel_cacheinfo.c: s/cpuid4_info/ici_cpuid4_info/
      					 s/cache_kobject/ici_cache_kobject/
    					 s/index_kobject/ici_index_kobject/
    
    * arch/x86/kernel/ds.c: s/cpu_context/cpu_ds_context/
    
    Partly based on Rusty Russell's "alloc_percpu: rename percpu vars
    which cause name clashes" patch.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatar(kvm) Avi Kivity <avi@redhat.com>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Cc: x86@kernel.org
    0fe1e009
ds.c 32.4 KB