Linux IOMMU Development
 help / color / mirror / Atom feed
* [PATCH v2 1/3] iommu/fsl: Fix section mismatch
@ 2015-01-22 14:47 Emil Medve
       [not found] ` <1421938042-22580-1-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Emil Medve @ 2015-01-22 14:47 UTC (permalink / raw)
  To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	joro-zLv9SwRftAIdnm+yROfE0A, jroedel-l3A5Bk7waGM,
	Varun.Sethi-eDlz3WWmN0ll57MIdRCFDg
  Cc: Emil Medve

Section mismatch in reference from the variable fsl_of_pamu_driver to the function .init.text:fsl_pamu_probe()
The variable fsl_of_pamu_driver references
the function __init fsl_pamu_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Signed-off-by: Emil Medve <Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
---

v2:	Add an __init[data] instead of removing one

 drivers/iommu/fsl_pamu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c
index 80ac68d..d478ad8 100644
--- a/drivers/iommu/fsl_pamu.c
+++ b/drivers/iommu/fsl_pamu.c
@@ -1224,7 +1224,7 @@ static const struct of_device_id fsl_of_pamu_ids[] = {
 	{},
 };
 
-static struct platform_driver fsl_of_pamu_driver = {
+static struct platform_driver fsl_of_pamu_driver __initdata = {
 	.driver = {
 		.name = "fsl-of-pamu",
 	},
-- 
2.2.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-26 12:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22 14:47 [PATCH v2 1/3] iommu/fsl: Fix section mismatch Emil Medve
     [not found] ` <1421938042-22580-1-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2015-01-22 14:47   ` [PATCH 2/3] iommu/fsl: Remove unused fsl_of_pamu_ids[] Emil Medve
     [not found]     ` <1421938042-22580-2-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2015-01-23  6:15       ` Varun Sethi
2015-01-22 14:47   ` [PATCH 3/3] iommu/fsl: Sprinkle some __init* annotations Emil Medve
     [not found]     ` <1421938042-22580-3-git-send-email-Emilian.Medve-eDlz3WWmN0ll57MIdRCFDg@public.gmane.org>
2015-01-23  6:11       ` Varun Sethi
2015-01-23  6:12   ` [PATCH v2 1/3] iommu/fsl: Fix section mismatch Varun Sethi
2015-01-26 12:49   ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox