All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gx1fb: Fix section mismatch derived from gx1fb_driver variable
@ 2011-01-03  1:31 ` Sedat Dilek
  0 siblings, 0 replies; 11+ messages in thread
From: Sedat Dilek @ 2011-01-03  1:31 UTC (permalink / raw)
  To: linux-geode, linux-fbdev, linux-kernel; +Cc: Sedat Dilek

From my build.log:

WARNING: drivers/video/geode/gx1fb.o(.data+0x54): Section mismatch in reference from the variable gx1fb_driver to the function .init.text:gx1fb_probe()
The variable gx1fb_driver references
the function __init gx1fb_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,

This patch fixes the warning.

Tested with linux-next (next-20101231)

Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
---
 drivers/video/geode/gx1fb_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/geode/gx1fb_core.c b/drivers/video/geode/gx1fb_core.c
index c6b554f..9fdb115 100644
--- a/drivers/video/geode/gx1fb_core.c
+++ b/drivers/video/geode/gx1fb_core.c
@@ -437,7 +437,7 @@ static struct pci_device_id gx1fb_id_table[] = {
 
 MODULE_DEVICE_TABLE(pci, gx1fb_id_table);
 
-static struct pci_driver gx1fb_driver = {
+static struct pci_driver gx1fb_driver __refdata = {
 	.name		= "gx1fb",
 	.id_table	= gx1fb_id_table,
 	.probe		= gx1fb_probe,
-- 
1.7.4.rc0


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

end of thread, other threads:[~2011-06-24  8:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-03  1:31 [PATCH] gx1fb: Fix section mismatch derived from gx1fb_driver variable Sedat Dilek
2011-01-03  1:31 ` Sedat Dilek
2011-01-06  6:39 ` Paul Mundt
2011-01-06  6:39   ` Paul Mundt
2011-06-16 19:31   ` [PATCH] gx1fb: Fix section mismatch warnings Randy Dunlap
2011-06-16 19:31     ` Randy Dunlap
2011-06-17  7:15     ` Sedat Dilek
2011-06-17  7:15       ` Sedat Dilek
2011-06-24  8:01     ` Paul Mundt
2011-06-24  8:01       ` Paul Mundt
2011-06-16 19:32   ` [PATCH] sm501fb: fix section mismatch warning Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.