From: David Brownell Fix section warning: WARNING: drivers/gpio/built-in.o(__ksymtab_gpl+0xc0): Section mismatch in reference from the variable __ksymtab_gpiochip_reserve to the function .init.text:gpiochip_reserve() The symbol gpiochip_reserve is exported and annotated __init Fix this by removing the __init annotation of gpiochip_reserve or drop the export. Signed-off-by: David Brownell Cc: Anton Vorontsov Signed-off-by: Andrew Morton --- drivers/gpio/gpiolib.c | 1 - 1 file changed, 1 deletion(-) diff -puN drivers/gpio/gpiolib.c~gpiochip_reserve-fix-2 drivers/gpio/gpiolib.c --- a/drivers/gpio/gpiolib.c~gpiochip_reserve-fix-2 +++ a/drivers/gpio/gpiolib.c @@ -150,7 +150,6 @@ err: return ret; } -EXPORT_SYMBOL_GPL(gpiochip_reserve); /** * gpiochip_add() - register a gpio_chip _