* [PATCH] fix some section mismatch on drivers/hwmon/sht15.c
@ 2009-04-28 9:56 Zhenwen Xu
0 siblings, 0 replies; only message in thread
From: Zhenwen Xu @ 2009-04-28 9:56 UTC (permalink / raw)
To: linux-kernel; +Cc: lm-sensors
Fix those section mismatch wornings:
WARNING: drivers/hwmon/sht15.o(.data+0x0): Section mismatch in reference from
the variable sht_drivers to the function .devinit.text:sht15_probe()
The variable sht_drivers references
the function __devinit sht15_probe()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0x4): Section mismatch in reference from
the variable sht_drivers to the function .devexit.text:sht15_remove()
The variable sht_drivers references
the function __devexit sht15_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0x50): Section mismatch in reference from
the variable sht_drivers to the function .devinit.text:sht15_probe()
The variable sht_drivers references
the function __devinit sht15_probe()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0x54): Section mismatch in reference from
the variable sht_drivers to the function .devexit.text:sht15_remove()
The variable sht_drivers references
the function __devexit sht15_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0xa0): Section mismatch in reference from
the variable sht_drivers to the function .devinit.text:sht15_probe()
The variable sht_drivers references
the function __devinit sht15_probe()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0xa4): Section mismatch in reference from
the variable sht_drivers to the function .devexit.text:sht15_remove()
The variable sht_drivers references
the function __devexit sht15_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0xf0): Section mismatch in reference from
the variable sht_drivers to the function .devinit.text:sht15_probe()
The variable sht_drivers references
the function __devinit sht15_probe()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0xf4): Section mismatch in reference from
the variable sht_drivers to the function .devexit.text:sht15_remove()
The variable sht_drivers references
the function __devexit sht15_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0x140): Section mismatch in reference from
the variable sht_drivers to the function .devinit.text:sht15_probe()
The variable sht_drivers references
the function __devinit sht15_probe()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: drivers/hwmon/sht15.o(.data+0x144): Section mismatch in reference from
the variable sht_drivers to the function .devexit.text:sht15_remove()
The variable sht_drivers references
the function __devexit sht15_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
Signed-off-by: Zhenwen Xu <helight.xu@gmail.com>
---
drivers/hwmon/sht15.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
index 6cbdc2f..18061d2 100644
--- a/drivers/hwmon/sht15.c
+++ b/drivers/hwmon/sht15.c
@@ -620,7 +620,7 @@ static int __devexit sht15_remove(struct platform_device *pdev)
}
-static struct platform_driver sht_drivers[] = {
+static struct platform_driver __refdata sht_drivers[] = {
{
.driver = {
.name = "sht10",
--
1.5.6.5
--
--------------------------------
http://zhwen.org - Open and Free
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-28 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 9:56 [PATCH] fix some section mismatch on drivers/hwmon/sht15.c Zhenwen Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox