LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] dvb/av7110: fix section mismatch
@ 2008-01-10 22:31 Randy Dunlap
  2008-01-11 17:54 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-01-10 22:31 UTC (permalink / raw)
  To: v4l-dvb-maintainer; +Cc: samr, akpm, lkml

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix driver data name to match whitelist of acceptable names that contain
pointers init data so that section mismatch warning is placated.

WARNING: vmlinux.o(.data+0x141288): Section mismatch: reference to .init.text:av7110_attach (between 'av7110_extension' and 'ir_protocol')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/media/dvb/ttpci/av7110.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

--- linux-2.6.24-rc7-git1.orig/drivers/media/dvb/ttpci/av7110.c
+++ linux-2.6.24-rc7-git1/drivers/media/dvb/ttpci/av7110.c
@@ -2800,12 +2800,12 @@ static void av7110_irq(struct saa7146_de
 }
 
 
-static struct saa7146_extension av7110_extension;
+static struct saa7146_extension av7110_extension_driver;
 
 #define MAKE_AV7110_INFO(x_var,x_name) \
 static struct saa7146_pci_extension_data x_var = { \
 	.ext_priv = x_name, \
-	.ext = &av7110_extension }
+	.ext = &av7110_extension_driver }
 
 MAKE_AV7110_INFO(tts_1_X_fsc,"Technotrend/Hauppauge WinTV DVB-S rev1.X or Fujitsu Siemens DVB-C");
 MAKE_AV7110_INFO(ttt_1_X,    "Technotrend/Hauppauge WinTV DVB-T rev1.X");
@@ -2843,7 +2843,7 @@ static struct pci_device_id pci_tbl[] = 
 MODULE_DEVICE_TABLE(pci, pci_tbl);
 
 
-static struct saa7146_extension av7110_extension = {
+static struct saa7146_extension av7110_extension_driver = {
 	.name		= "dvb",
 	.flags		= SAA7146_USE_I2C_IRQ,
 
@@ -2860,14 +2860,14 @@ static struct saa7146_extension av7110_e
 static int __init av7110_init(void)
 {
 	int retval;
-	retval = saa7146_register_extension(&av7110_extension);
+	retval = saa7146_register_extension(&av7110_extension_driver);
 	return retval;
 }
 
 
 static void __exit av7110_exit(void)
 {
-	saa7146_unregister_extension(&av7110_extension);
+	saa7146_unregister_extension(&av7110_extension_driver);
 }
 
 module_init(av7110_init);

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

* Re: [PATCH] dvb/av7110: fix section mismatch
  2008-01-10 22:31 [PATCH] dvb/av7110: fix section mismatch Randy Dunlap
@ 2008-01-11 17:54 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-01-11 17:54 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: v4l-dvb-maintainer, akpm, lkml

On Thu, Jan 10, 2008 at 02:31:47PM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Fix driver data name to match whitelist of acceptable names that contain
> pointers init data so that section mismatch warning is placated.
> 
> WARNING: vmlinux.o(.data+0x141288): Section mismatch: reference to .init.text:av7110_attach (between 'av7110_extension' and 'ir_protocol')
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>


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

end of thread, other threads:[~2008-01-11 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-10 22:31 [PATCH] dvb/av7110: fix section mismatch Randy Dunlap
2008-01-11 17:54 ` Sam Ravnborg

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).