Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d0f46af authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

s390/smp: get rid of compile warning



Add missing #ifdep CONFIG_HOTPLUG_CPU to get rid of this one:
arch/s390/kernel/smp.c:229:13: warning: 'pcpu_free_lowcore'
                               defined but not used [-Wunused-function]

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 63291d40
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -226,6 +226,8 @@ static int __cpuinit pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu)
	return -ENOMEM;
	return -ENOMEM;
}
}


#ifdef CONFIG_HOTPLUG_CPU

static void pcpu_free_lowcore(struct pcpu *pcpu)
static void pcpu_free_lowcore(struct pcpu *pcpu)
{
{
	pcpu_sigp_retry(pcpu, sigp_set_prefix, 0);
	pcpu_sigp_retry(pcpu, sigp_set_prefix, 0);
@@ -247,6 +249,8 @@ static void pcpu_free_lowcore(struct pcpu *pcpu)
	}
	}
}
}


#endif /* CONFIG_HOTPLUG_CPU */

static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu)
static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu)
{
{
	struct _lowcore *lc = pcpu->lowcore;
	struct _lowcore *lc = pcpu->lowcore;