]> git.karo-electronics.de Git - linux-beck.git/commit
dmaengine: imx-sdma: remove __init annotation on sdma_event_remap
authorJason Liu <r64343@freescale.com>
Wed, 11 Nov 2015 09:20:49 +0000 (17:20 +0800)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 03:44:25 +0000 (09:14 +0530)
commit29f493dafa6113d28763e9efb853e6972b41ade5
treeb17779dbb9b1e8f13ccf973c0abb868f9aad0e25
parentf5ea7ad252452f0b461e04a0d0e468f1f6ad8b3b
dmaengine: imx-sdma: remove __init annotation on sdma_event_remap

The sdma_probe function will call sdma_event_remap, but sdma_event_remap
marked with the __init annotation which make the kbuild complains as the
following log:

WARNING: drivers/dma/built-in.o(.text+0x56fc): Section mismatch in reference
from the function sdma_probe() to the function .init.text:sdma_event_remap()
The function sdma_probe() references
the function __init sdma_event_remap().
This is often because sdma_probe lacks a __init
annotation or the annotation of sdma_event_remap is wrong.

Remove the __init annotation on sdma_event_remap to kill this build warning

Signed-off-by: Jason Liu <r64343@freescale.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c