public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc: m48t59 fix section mismatch warning
@ 2007-10-29 18:20 Randy Dunlap
  2007-10-30 10:59 ` [rtc-linux] " Alessandro Zummo
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2007-10-29 18:20 UTC (permalink / raw)
  To: lkml; +Cc: a.zummo, rtc-linux

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

Change the name of this data to use a name (suffix) that is whitelisted
by MODPOST so that the section warning is fixed (not generated).

WARNING: vmlinux.o(.data+0x1b140): Section mismatch: reference to .init.text:m48t59_rtc_probe (between 'm48t59_rtc_platdrv' and 'm48t59_nvram_attr')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/rtc/rtc-m48t59.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.24-rc1-git4.orig/drivers/rtc/rtc-m48t59.c
+++ linux-2.6.24-rc1-git4/drivers/rtc/rtc-m48t59.c
@@ -464,7 +464,7 @@ static int __devexit m48t59_rtc_remove(s
 	return 0;
 }
 
-static struct platform_driver m48t59_rtc_platdrv = {
+static struct platform_driver m48t59_rtc_driver = {
 	.driver		= {
 		.name	= "rtc-m48t59",
 		.owner	= THIS_MODULE,
@@ -475,12 +475,12 @@ static struct platform_driver m48t59_rtc
 
 static int __init m48t59_rtc_init(void)
 {
-	return platform_driver_register(&m48t59_rtc_platdrv);
+	return platform_driver_register(&m48t59_rtc_driver);
 }
 
 static void __exit m48t59_rtc_exit(void)
 {
-	platform_driver_unregister(&m48t59_rtc_platdrv);
+	platform_driver_unregister(&m48t59_rtc_driver);
 }
 
 module_init(m48t59_rtc_init);

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

* Re: [rtc-linux] [PATCH] rtc: m48t59 fix section mismatch warning
  2007-10-29 18:20 [PATCH] rtc: m48t59 fix section mismatch warning Randy Dunlap
@ 2007-10-30 10:59 ` Alessandro Zummo
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Zummo @ 2007-10-30 10:59 UTC (permalink / raw)
  To: rtc-linux, Randy Dunlap; +Cc: akpm, lkml

On Mon, 29 Oct 2007 11:20:04 -0700
Randy Dunlap <randy.dunlap@oracle.com> wrote:

> 
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Change the name of this data to use a name (suffix) that is whitelisted
> by MODPOST so that the section warning is fixed (not generated).
> 
> WARNING: vmlinux.o(.data+0x1b140): Section mismatch: reference to .init.text:m48t59_rtc_probe (between 'm48t59_rtc_platdrv' and 'm48t59_nvram_attr')
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

 Thanks Randy!


 Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it


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

end of thread, other threads:[~2007-10-30 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 18:20 [PATCH] rtc: m48t59 fix section mismatch warning Randy Dunlap
2007-10-30 10:59 ` [rtc-linux] " Alessandro Zummo

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