bus: imx-weim: remove __init from 2 functions
PATCH 1/1 bus: imx-weim: remove __init from 2 functions
A previous commit removed __init from weim_probe(), but this attribute is
still present for other functions called from it. Thus, these warnings
are triggered:
WARNING: Section mismatch in reference from the function weim_probe() to the function .init.text:imx_weim_gpr_setup()
WARNING: Section mismatch in reference from the function weim_probe() to the function .init.text:weim_timing_setup()
Remove the __init attribute from these functions as well, since they don't seem to be used anywhere else.
--- drivers/bus/imx-weim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bus/imx-weim.c +2 -2
@@ -76,7 +76,7 @@ static const struct of_device_id weim_id_table[] = { };MODULE_DEVICE_TABLE (of, weim_id_table); -static int __init imx_weim_gpr_setup (struct platform_device *pdev) +static int imx_weim_gpr_setup (struct platform_device *pdev) {struct device_node *np = pdev->dev.of_node;struct property *prop;
@@ -126,7 +126,7 @@ static int __init imx_weim_gpr_setup(struct platform_device *pdev) }/* Parse and set the timing for this device. */ -static int __init weim_timing_setup (struct device *dev, +static int weim_timing_setup (struct device *dev,struct device_node *np,void __iomem *base,const struct imx_weim_devtype *devtype,struct cs_timing_state *ts)
Signature · 1 line
2.17.1
Quoted 9 lines · Ilie Halip
A previous commit removed
__initfromweim_probe(), but this attribute is
still present for other functions called from it. Thus, these warnings
are triggered:
WARNING: Section mismatch in reference from the functionweim_probe()to the function .init.text:imx_weim_gpr_setup()
WARNING: Section mismatch in reference from the functionweim_probe()to the function .init.text:weim_timing_setup()Remove the
__initattribute from these functions as well, since they don't seem to be used anywhere else.
Quoted 7 lines
Signed-off-by Ilie Halip <[email protected]>Reported-by "kernelci.org bot" <[email protected]>Cc Sascha Hauer <[email protected]>Cc Shawn Guo <[email protected]>
Shawn Guo
AppliedQuoted 9 lines · Ilie Halip
A previous commit removed
__initfromweim_probe(), but this attribute is
still present for other functions called from it. Thus, these warnings
are triggered:
WARNING: Section mismatch in reference from the functionweim_probe()to the function .init.text:imx_weim_gpr_setup()
WARNING: Section mismatch in reference from the functionweim_probe()to the function .init.text:weim_timing_setup()Remove the
__initattribute from these functions as well, since they don't seem to be used anywhere else.
Quoted 7 lines
Signed-off-by Ilie Halip <[email protected]>Reported-by "kernelci.org bot" <[email protected]>Cc Sascha Hauer <[email protected]>Cc Shawn Guo <[email protected]>
Applied, thanks.
Hi Shawn,
I think you can disregard this patch; the issue was already fixed by Arnd[1] a couple of days after I sent it.
Thanks,
I.H.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 4 lines · Ilie Halip
Hi Shawn,
I think you can disregard this patch; the issue was already fixed by Arnd[1] a couple of days after I sent it.
Ah, okay. Thanks for the note. Dropped.
Shawn
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel