public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] pci quirks MODPOST warning fix
@ 2007-01-08  8:10 Vivek Goyal
  0 siblings, 0 replies; only message in thread
From: Vivek Goyal @ 2007-01-08  8:10 UTC (permalink / raw)
  To: linux kernel mailing list
  Cc: Fastboot mailing list, Morton Andrew Morton, Andi Kleen,
	Eric W. Biederman, Greg KH




o MODPOST generates warnings for i386 if kernel is compiled with
  CONFIG_RELOCATABLE=y

WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'asus_hides_smbus_lpc_ich6' (at offset 0xc0217d58) and 'quirk_cardbus_legacy'
WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'asus_hides_smbus_lpc' (at offset 0xc0217fd9) and 'pci_match_id'

o Two quirk functions which are non __init, are accessing data which is
  of type __init.


Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---

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

diff -puN drivers/pci/quirks.c~pci-quirks-modpost-warning-fix drivers/pci/quirks.c
--- linux-2.6.20-rc2-mm1-reloc/drivers/pci/quirks.c~pci-quirks-modpost-warning-fix	2007-01-04 16:23:36.000000000 +0530
+++ linux-2.6.20-rc2-mm1-reloc-root/drivers/pci/quirks.c	2007-01-04 16:24:33.000000000 +0530
@@ -956,7 +956,7 @@ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_V
  * becomes necessary to do this tweak in two steps -- I've chosen the Host
  * bridge as trigger.
  */
-static int __initdata asus_hides_smbus;
+static int asus_hides_smbus;
 
 static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev)
 {
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-08  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08  8:10 [PATCH 1/4] pci quirks MODPOST warning fix Vivek Goyal

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