Revision f274ef8747d3be649bba8708696fb31cb00fa75a authored by Srivatsa S. Bhat on 21 May 2013, 09:32:48 UTC, committed by Benjamin Herrenschmidt on 31 May 2013, 22:29:27 UTC
Adam Lackorzynski reported the following build failure on
!CONFIG_HOTPLUG_CPU configuration:

  CC      arch/powerpc/kernel/rtas.o
arch/powerpc/kernel/rtas.c: In function ‘rtas_cpu_state_change_mask’:
arch/powerpc/kernel/rtas.c:843:4: error: implicit declaration of function ‘cpu_down’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [arch/powerpc/kernel/rtas.o] Error 1
make: *** [arch/powerpc/kernel] Error 2

The build fails because cpu_down() is defined only under CONFIG_HOTPLUG_CPU.

Looking further, the mobility code in pseries is one of the call-sites which
uses rtas_ibm_suspend_me(), which in turn calls rtas_cpu_state_change_mask().
And the mobility code is unconditionally compiled-in (it does not fall under
any Kconfig option). And commit 120496ac (powerpc: Bring all threads online
prior to migration/hibernation) which introduced this build regression is
critical for the proper functioning of the migration code. So it appears
that the only solution to this problem is to enable CONFIG_HOTPLUG_CPU if
SMP is enabled on PPC_PSERIES platforms. So make that change in the Kconfig.

Reported-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Cc: stable@vger.kernel.org
Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 8e44ddc
History
File Mode Size
Kconfig -rw-r--r-- 9.0 KB
Makefile -rw-r--r-- 3.0 KB
at91_cf.c -rw-r--r-- 10.4 KB
bcm63xx_pcmcia.c -rw-r--r-- 13.3 KB
bcm63xx_pcmcia.h -rw-r--r-- 1.3 KB
bfin_cf_pcmcia.c -rw-r--r-- 7.4 KB
cardbus.c -rw-r--r-- 2.9 KB
cirrus.h -rw-r--r-- 5.0 KB
cistpl.c -rw-r--r-- 34.9 KB
cs.c -rw-r--r-- 21.5 KB
cs_internal.h -rw-r--r-- 5.3 KB
db1xxx_ss.c -rw-r--r-- 15.0 KB
ds.c -rw-r--r-- 34.4 KB
electra_cf.c -rw-r--r-- 8.5 KB
i82092.c -rw-r--r-- 17.2 KB
i82092aa.h -rw-r--r-- 1.1 KB
i82365.c -rw-r--r-- 37.4 KB
i82365.h -rw-r--r-- 4.9 KB
m32r_cfc.c -rw-r--r-- 20.2 KB
m32r_cfc.h -rw-r--r-- 1.9 KB
m32r_pcc.c -rw-r--r-- 16.4 KB
m32r_pcc.h -rw-r--r-- 1.3 KB
m8xx_pcmcia.c -rw-r--r-- 28.6 KB
o2micro.h -rw-r--r-- 5.9 KB
omap_cf.c -rw-r--r-- 8.8 KB
pcmcia_cis.c -rw-r--r-- 12.8 KB
pcmcia_resource.c -rw-r--r-- 25.5 KB
pd6729.c -rw-r--r-- 18.6 KB
pd6729.h -rw-r--r-- 570 bytes
pxa2xx_balloon3.c -rw-r--r-- 3.6 KB
pxa2xx_base.c -rw-r--r-- 10.4 KB
pxa2xx_base.h -rw-r--r-- 172 bytes
pxa2xx_cm_x255.c -rw-r--r-- 3.0 KB
pxa2xx_cm_x270.c -rw-r--r-- 2.4 KB
pxa2xx_cm_x2xx.c -rw-r--r-- 1.1 KB
pxa2xx_colibri.c -rw-r--r-- 4.5 KB
pxa2xx_e740.c -rw-r--r-- 3.1 KB
pxa2xx_hx4700.c -rw-r--r-- 3.1 KB
pxa2xx_mainstone.c -rw-r--r-- 4.3 KB
pxa2xx_palmld.c -rw-r--r-- 2.7 KB
pxa2xx_palmtc.c -rw-r--r-- 3.9 KB
pxa2xx_palmtx.c -rw-r--r-- 2.8 KB
pxa2xx_sharpsl.c -rw-r--r-- 7.0 KB
pxa2xx_stargate2.c -rw-r--r-- 3.4 KB
pxa2xx_trizeps4.c -rw-r--r-- 4.6 KB
pxa2xx_viper.c -rw-r--r-- 4.1 KB
pxa2xx_vpac270.c -rw-r--r-- 3.4 KB
ricoh.h -rw-r--r-- 6.7 KB
rsrc_iodyn.c -rw-r--r-- 3.8 KB
rsrc_mgr.c -rw-r--r-- 1.7 KB
rsrc_nonstatic.c -rw-r--r-- 29.7 KB
sa1100_assabet.c -rw-r--r-- 2.5 KB
sa1100_cerf.c -rw-r--r-- 2.0 KB
sa1100_generic.c -rw-r--r-- 3.9 KB
sa1100_generic.h -rw-r--r-- 1.0 KB
sa1100_h3600.c -rw-r--r-- 4.1 KB
sa1100_nanoengine.c -rw-r--r-- 3.0 KB
sa1100_shannon.c -rw-r--r-- 2.4 KB
sa1100_simpad.c -rw-r--r-- 2.6 KB
sa1111_badge4.c -rw-r--r-- 3.9 KB
sa1111_generic.c -rw-r--r-- 6.2 KB
sa1111_generic.h -rw-r--r-- 833 bytes
sa1111_jornada720.c -rw-r--r-- 2.3 KB
sa1111_lubbock.c -rw-r--r-- 5.1 KB
sa1111_neponset.c -rw-r--r-- 3.1 KB
sa11xx_base.c -rw-r--r-- 7.4 KB
sa11xx_base.h -rw-r--r-- 4.7 KB
soc_common.c -rw-r--r-- 21.4 KB
soc_common.h -rw-r--r-- 5.0 KB
socket_sysfs.c -rw-r--r-- 5.8 KB
tcic.c -rw-r--r-- 23.4 KB
tcic.h -rw-r--r-- 8.0 KB
ti113x.h -rw-r--r-- 27.9 KB
topic.h -rw-r--r-- 5.2 KB
vg468.h -rw-r--r-- 4.1 KB
vrc4171_card.c -rw-r--r-- 17.8 KB
vrc4173_cardu.c -rw-r--r-- 15.0 KB
vrc4173_cardu.h -rw-r--r-- 6.5 KB
xxs1500_ss.c -rw-r--r-- 7.8 KB
yenta_socket.c -rw-r--r-- 39.4 KB
yenta_socket.h -rw-r--r-- 4.8 KB

back to top