• Heiko Carstens's avatar
    rcu: Add missing __cpuinit annotation in rcutorture code · 44100306
    Heiko Carstens authored
    "rcu: Add rcutorture CPU-hotplug capability" adds cpu hotplug operations
    to the rcutorture code but produces a false positive warning about section
    mismatches:
    
    WARNING: vmlinux.o(.text+0x1e420c): Section mismatch in reference from the
    	 function rcu_torture_onoff() to the function .cpuinit.text:cpu_up()
    	 The function rcu_torture_onoff() references
    	 the function __cpuinit cpu_up().
    	 This is often because rcu_torture_onoff lacks a __cpuinit
    	 annotation or the annotation of cpu_up is wrong.
    
    This commit therefore adds a __cpuinit annotation so the warning goes away.
    Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    44100306
rcutorture.c 52 KB