* [PATCH] ata: sata_highbank: Fix section mismatch
@ 2012-10-07 22:46 Fabio Estevam
2012-10-18 19:12 ` Fabio Estevam
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2012-10-07 22:46 UTC (permalink / raw)
To: jgarzik; +Cc: rob.herring, linux-ide, linux-kernel, Fabio Estevam
From: Fabio Estevam <fabio.estevam@freescale.com>
Building multi_v7_defconfig leads to the following warning:
WARNING: vmlinux.o(.data+0xf7d8): Section mismatch in reference from the variable ahci_highbank_driver to the function .init.text:ahci_highbank_probe()
The variable ahci_highbank_driver references
the function __init ahci_highbank_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
Fix it by annotating ahci_highbank_probe as __devinit.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/ata/sata_highbank.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c
index 0d7c4c2..36a141a 100644
--- a/drivers/ata/sata_highbank.c
+++ b/drivers/ata/sata_highbank.c
@@ -260,7 +260,7 @@ static const struct of_device_id ahci_of_match[] = {
};
MODULE_DEVICE_TABLE(of, ahci_of_match);
-static int __init ahci_highbank_probe(struct platform_device *pdev)
+static int __devinit ahci_highbank_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct ahci_host_priv *hpriv;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ata: sata_highbank: Fix section mismatch
2012-10-07 22:46 [PATCH] ata: sata_highbank: Fix section mismatch Fabio Estevam
@ 2012-10-18 19:12 ` Fabio Estevam
0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2012-10-18 19:12 UTC (permalink / raw)
To: jgarzik; +Cc: rob.herring, linux-ide, linux-kernel, Fabio Estevam
Jeff,
On Sun, Oct 7, 2012 at 7:46 PM, Fabio Estevam <festevam@gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Building multi_v7_defconfig leads to the following warning:
>
> WARNING: vmlinux.o(.data+0xf7d8): Section mismatch in reference from the variable ahci_highbank_driver to the function .init.text:ahci_highbank_probe()
> The variable ahci_highbank_driver references
> the function __init ahci_highbank_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
>
> Fix it by annotating ahci_highbank_probe as __devinit.
Can this be applied, please?
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-18 19:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-07 22:46 [PATCH] ata: sata_highbank: Fix section mismatch Fabio Estevam
2012-10-18 19:12 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).