Skip to content

Commit 975d260

Browse files
Henrik Kretzschmarherbertx
authored andcommitted
padata: Section cleanup
This patch removes the __cupinit from padata_cpu_callback(), which is refered by the exportet function padata_alloc(). This could lead to problems if CONFIG_HOTPLUG_CPU is disabled, which should happen very often. WARNING: kernel/built-in.o(.text+0x7ffcb): Section mismatch in reference from the function padata_alloc() to the function .cpuinit.text:padata_cpu_callback() The function padata_alloc() references the function __cpuinit padata_cpu_callback(). This is often because padata_alloc lacks a __cpuinit annotation or the annotation of padata_cpu_callback is wrong. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 62e7bec commit 975d260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/padata.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ void padata_stop(struct padata_instance *pinst)
569569
}
570570
EXPORT_SYMBOL(padata_stop);
571571

572-
static int __cpuinit padata_cpu_callback(struct notifier_block *nfb,
573-
unsigned long action, void *hcpu)
572+
static int padata_cpu_callback(struct notifier_block *nfb,
573+
unsigned long action, void *hcpu)
574574
{
575575
int err;
576576
struct padata_instance *pinst;

0 commit comments

Comments
 (0)