]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fix build for 32-bit SMP configs
authorMilton Miller <miltonm@bga.com>
Sun, 16 Nov 2008 11:44:42 +0000 (11:44 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 1 Dec 2008 02:28:19 +0000 (13:28 +1100)
commita1e0eb104249817e5251bd4aade50921ffcb2159
tree2e874c58bc9ec005c496ad9ba8bc073dbdda6f9f
parentd9d060a98ff89fe0f86e24c9c0c3d2f0c566781c
powerpc: Fix build for 32-bit SMP configs

attr_smt_snooze_delay is only defined for CONFIG_PPC64, so protect the
attribute removal with the same condition.  This fixes this build error
on 32-bit SMP configurations:

/data/home/miltonm/next.git/arch/powerpc/kernel/sysfs.c: In function ‘unregister_cpu_online’:
/data/home/miltonm/next.git/arch/powerpc/kernel/sysfs.c:722: error: ‘attr_smt_snooze_delay’ undeclared (first use in this function)
/data/home/miltonm/next.git/arch/powerpc/kernel/sysfs.c:722: error: (Each undeclared identifier is reported only once
/data/home/miltonm/next.git/arch/powerpc/kernel/sysfs.c:722: error: for each function it appears in.)

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/sysfs.c