mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: Sam Ravnborg <sam@ravnborg.org>,
	Dominik Brodowski <linux@dominikbrodowski.net>
Subject: [PATCH 04/27] pcmcia: silence section mismatch warnings from pci_driver variables
Date: Sun, 17 Feb 2008 13:22:41 +0100	[thread overview]
Message-ID: <1203250984-11285-4-git-send-email-sam@ravnborg.org> (raw)
In-Reply-To: <20080217121255.GA10519@uranus.ravnborg.org>

Silence following warnings:
WARNING: drivers/pcmcia/built-in.o(.data+0x14e0): Section mismatch in reference from the variable pd6729_pci_drv to the function .devinit.text:pd6729_pci_probe()
WARNING: drivers/pcmcia/built-in.o(.data+0x14e8): Section mismatch in reference from the variable pd6729_pci_drv to the function .devexit.text:pd6729_pci_remove()
WARNING: drivers/pcmcia/built-in.o(.data+0x16c0): Section mismatch in reference from the variable i82092aa_pci_drv to the function .devinit.text:i82092aa_pci_probe()
WARNING: drivers/pcmcia/built-in.o(.data+0x16c8): Section mismatch in reference from the variable i82092aa_pci_drv to the function .devexit.text:i82092aa_pci_remove()

Rename the variables from *_drv to *_driver so
modpost ignore the OK references to __devinit/__devexit
functions.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
---
 drivers/pcmcia/i82092.c |    6 +++---
 drivers/pcmcia/pd6729.c |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c
index 7495155..1b3749e 100644
--- a/drivers/pcmcia/i82092.c
+++ b/drivers/pcmcia/i82092.c
@@ -53,7 +53,7 @@ static int i82092aa_socket_resume (struct pci_dev *dev)
 }
 #endif
 
-static struct pci_driver i82092aa_pci_drv = {
+static struct pci_driver i82092aa_pci_driver = {
 	.name           = "i82092aa",
 	.id_table       = i82092aa_pci_ids,
 	.probe          = i82092aa_pci_probe,
@@ -709,13 +709,13 @@ static int i82092aa_set_mem_map(struct pcmcia_socket *socket, struct pccard_mem_
 
 static int i82092aa_module_init(void)
 {
-	return pci_register_driver(&i82092aa_pci_drv);
+	return pci_register_driver(&i82092aa_pci_driver);
 }
 
 static void i82092aa_module_exit(void)
 {
 	enter("i82092aa_module_exit");
-	pci_unregister_driver(&i82092aa_pci_drv);
+	pci_unregister_driver(&i82092aa_pci_driver);
 	if (sockets[0].io_base>0)
 			 release_region(sockets[0].io_base, 2);
 	leave("i82092aa_module_exit");
diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c
index abc10fe..8bed1da 100644
--- a/drivers/pcmcia/pd6729.c
+++ b/drivers/pcmcia/pd6729.c
@@ -778,7 +778,7 @@ static struct pci_device_id pd6729_pci_ids[] = {
 };
 MODULE_DEVICE_TABLE(pci, pd6729_pci_ids);
 
-static struct pci_driver pd6729_pci_drv = {
+static struct pci_driver pd6729_pci_driver = {
 	.name		= "pd6729",
 	.id_table	= pd6729_pci_ids,
 	.probe		= pd6729_pci_probe,
@@ -791,12 +791,12 @@ static struct pci_driver pd6729_pci_drv = {
 
 static int pd6729_module_init(void)
 {
-	return pci_register_driver(&pd6729_pci_drv);
+	return pci_register_driver(&pd6729_pci_driver);
 }
 
 static void pd6729_module_exit(void)
 {
-	pci_unregister_driver(&pd6729_pci_drv);
+	pci_unregister_driver(&pd6729_pci_driver);
 }
 
 module_init(pd6729_module_init);
-- 
1.5.4.rc3.14.g44397


  parent reply	other threads:[~2008-02-17 12:23 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-17 12:12 [PATCH 0/27] fix section mismatches Sam Ravnborg
2008-02-17 12:22 ` [PATCH 01/27] serial: silence section mismatch warnings in 8250_pci Sam Ravnborg
2008-02-17 12:22 ` [PATCH 02/27] rtc: silence section mismatch warning in rtc-test Sam Ravnborg
2008-02-17 12:22 ` [PATCH 03/27] pcmcia: silence section mismatch warnings from class_interface variables Sam Ravnborg
2008-02-17 12:22 ` Sam Ravnborg [this message]
2008-02-17 12:22 ` [PATCH 05/27] cpu: fix section mismatch warnings in hotcpu_register Sam Ravnborg
2008-02-17 12:22 ` [PATCH 06/27] cpu: fix section mismatch warning in unregister_cpu_notifier Sam Ravnborg
2008-02-17 12:22 ` [PATCH 07/27] cpu: fix section mismatch warnings in *cpu_down Sam Ravnborg
2008-02-17 12:22 ` [PATCH 08/27] cpu: fix section mismatch warning in reference to register_cpu_notifier Sam Ravnborg
2008-02-17 12:22 ` [PATCH 09/27] x86: fix section mismatch warning in setup_64.c:nearby_node Sam Ravnborg
2008-02-17 13:44   ` Thomas Gleixner
2008-02-17 15:05     ` Sam Ravnborg
2008-02-17 12:22 ` [PATCH 10/27] x86: fix section mismatch in setup_64.c:srat_detect_node Sam Ravnborg
2008-02-17 12:22 ` [PATCH 11/27] acpi: fix section mismatch in processor_core.c:acpi_processor_hotplug_notify Sam Ravnborg
2008-02-17 12:22 ` [PATCH 12/27] x86: fix section mismatch warning in topology.c:arch_register_cpu Sam Ravnborg
2008-02-17 12:22 ` [PATCH 13/27] drivers/base/cpu: fix section mismatch in cpu.c:store_online Sam Ravnborg
2008-02-17 12:22 ` [PATCH 14/27] hwmon: fix section mismatch in coretemp Sam Ravnborg
2008-02-17 17:07   ` Mark M. Hoffman
2008-02-17 17:20     ` Sam Ravnborg
2008-02-17 12:22 ` [PATCH 15/27] cpufreq: fix section mismatch warnings Sam Ravnborg
2008-02-17 12:22 ` [PATCH 16/27] scsi: fix section mismatch in aic94xx Sam Ravnborg
2008-02-17 12:22 ` [PATCH 17/27] acer-wmi: fix section mismatch warnings Sam Ravnborg
2008-02-17 13:03   ` Carlos Corbacho
2008-02-17 15:05     ` Sam Ravnborg
2008-02-17 12:22 ` [PATCH 18/27] video: fix section mismatch warnings in uvesafb Sam Ravnborg
2008-02-17 12:22 ` [PATCH 19/27] tpm: fix section mismatch warning Sam Ravnborg
2008-02-17 12:22 ` [PATCH 20/27] [ALSA] caiaq - " Sam Ravnborg
2008-02-18 10:35   ` Takashi Iwai
2008-02-17 12:22 ` [PATCH 21/27] x86: fix section mismatch in srat_64.c:reserve_hotadd Sam Ravnborg
2008-02-17 12:22 ` [PATCH 22/27] x86: fix section mismatch in head_64.S:initial_code Sam Ravnborg
2008-02-17 12:23 ` [PATCH 23/27] x86: annotate pci/common.s:pci_scan_bus_with_sysdata with __devinit Sam Ravnborg
2008-02-17 12:23 ` [PATCH 24/27] pcmcia: annotate cb_alloc with __ref Sam Ravnborg
2008-02-17 12:23 ` [PATCH 25/27] pci: fix section mismatch warning in pci_scan_child_bus Sam Ravnborg
2008-02-17 12:23 ` [PATCH 26/27] acpi: fix section mismatch in acpi_pci_root_add Sam Ravnborg
2008-02-17 12:23 ` [PATCH 27/27] [ALSA] hdsp - fix section mismatch warnings Sam Ravnborg
2008-02-18  6:43   ` Takashi Iwai
2008-02-18  7:45     ` Sam Ravnborg
2008-02-18 10:36       ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1203250984-11285-4-git-send-email-sam@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome