ARM: OMAP2+: gpmc: annotate exit sections properly
Subsystems (5)
PATCH 1/1 ARM: OMAP2+: gpmc: annotate exit sections properly
compiler complained,gpmc_remove' referenced in section .data' of arch/arm/mach-omap2/built-in.o: defined in discarded section `.exit.text' of arch/arm/mach-omap2/built-in.o
Annotate gpmc_remove function and dependents with __devexit.
---
Hi,
Section mismatch occured due to my change,
"ARM: OMAP2+: gpmc: minimal driver support".
As this change is not yet in vanilla, SHA1 has not been mentioned in commit log. Original change that introduced the above mentioned warning has as of now swimmed only till linux-omap and linux-next.
This has been generated against linux-next (next-20121003)
Regards
Afzal
arch/arm/mach-omap2/gpmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/gpmc.c +2 -2
@@ -838,7 +838,7 @@ static int gpmc_setup_irq(void)return request_irq (gpmc_irq, gpmc_handle_irq,0 ,"gpmc" ,NULL ); } -static __exit int gpmc_free_irq(void) +static __devexit int gpmc_free_irq(void) {int i;
@@ -944,7 +944,7 @@ static __devinit int gpmc_probe(struct platform_device *pdev)return 0 ; } -static __exit int gpmc_remove(struct platform_device *pdev) +static __devexit int gpmc_remove(struct platform_device *pdev) {gpmc_free_irq ();gpmc_mem_exit ();
Signature · 1 line
1.7.12
Tony Lindgren
maintainerPATCH 1/1 ARM: OMAP2+: gpmc: annotate exit sections properly
Quoted 4 lines · Afzal Mohammed
compiler complained,
gpmc_remove' referenced in section.data' ofarch/arm/mach-omap2/built-in.o: defined in discarded section `.exit.text' ofarch/arm/mach-omap2/built-in.oAnnotate
gpmc_removefunction and dependents with__devexit.
Thanks applying into omap fixes.
Tony