linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wdt: sunxi: Fix section mismatch
@ 2013-10-05 14:20 Maxime Ripard
  2013-10-05 15:38 ` Guenter Roeck
  2013-10-11 19:15 ` Maxime Ripard
  0 siblings, 2 replies; 4+ messages in thread
From: Maxime Ripard @ 2013-10-05 14:20 UTC (permalink / raw)
  To: linux-arm-kernel

This driver has a section mismatch, for probe and remove functions,
leading to the following warning during the compilation.

WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in
reference from the variable sunxi_wdt_driver to the function
.init.text:sunxi_wdt_probe()
The variable sunxi_wdt_driver references
the function __init sunxi_wdt_probe()

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 drivers/watchdog/sunxi_wdt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c
index 1f94b42..f6caa77 100644
--- a/drivers/watchdog/sunxi_wdt.c
+++ b/drivers/watchdog/sunxi_wdt.c
@@ -146,7 +146,7 @@ static const struct watchdog_ops sunxi_wdt_ops = {
 	.set_timeout	= sunxi_wdt_set_timeout,
 };
 
-static int __init sunxi_wdt_probe(struct platform_device *pdev)
+static int sunxi_wdt_probe(struct platform_device *pdev)
 {
 	struct sunxi_wdt_dev *sunxi_wdt;
 	struct resource *res;
@@ -187,7 +187,7 @@ static int __init sunxi_wdt_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int __exit sunxi_wdt_remove(struct platform_device *pdev)
+static int sunxi_wdt_remove(struct platform_device *pdev)
 {
 	struct sunxi_wdt_dev *sunxi_wdt = platform_get_drvdata(pdev);
 
-- 
1.8.4

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

* [PATCH] wdt: sunxi: Fix section mismatch
  2013-10-05 14:20 [PATCH] wdt: sunxi: Fix section mismatch Maxime Ripard
@ 2013-10-05 15:38 ` Guenter Roeck
  2013-10-11 19:15 ` Maxime Ripard
  1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-10-05 15:38 UTC (permalink / raw)
  To: linux-arm-kernel

On 10/05/2013 07:20 AM, Maxime Ripard wrote:
> This driver has a section mismatch, for probe and remove functions,
> leading to the following warning during the compilation.
>
> WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in
> reference from the variable sunxi_wdt_driver to the function
> .init.text:sunxi_wdt_probe()
> The variable sunxi_wdt_driver references
> the function __init sunxi_wdt_probe()
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

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

* [PATCH] wdt: sunxi: Fix section mismatch
  2013-10-05 14:20 [PATCH] wdt: sunxi: Fix section mismatch Maxime Ripard
  2013-10-05 15:38 ` Guenter Roeck
@ 2013-10-11 19:15 ` Maxime Ripard
  2013-10-12  2:47   ` Guenter Roeck
  1 sibling, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2013-10-11 19:15 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Wim,

On Sat, Oct 05, 2013 at 04:20:17PM +0200, Maxime Ripard wrote:
> This driver has a section mismatch, for probe and remove functions,
> leading to the following warning during the compilation.
> 
> WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in
> reference from the variable sunxi_wdt_driver to the function
> .init.text:sunxi_wdt_probe()
> The variable sunxi_wdt_driver references
> the function __init sunxi_wdt_probe()
> 
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

It would be great if it could go in 3.12.

Do you want to take it, or can I merge it through my tree, with your
Acked-by?

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131011/0789ceb6/attachment.sig>

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

* [PATCH] wdt: sunxi: Fix section mismatch
  2013-10-11 19:15 ` Maxime Ripard
@ 2013-10-12  2:47   ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-10-12  2:47 UTC (permalink / raw)
  To: linux-arm-kernel

On 10/11/2013 12:15 PM, Maxime Ripard wrote:
> Hi Wim,
>
> On Sat, Oct 05, 2013 at 04:20:17PM +0200, Maxime Ripard wrote:
>> This driver has a section mismatch, for probe and remove functions,
>> leading to the following warning during the compilation.
>>
>> WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in
>> reference from the variable sunxi_wdt_driver to the function
>> .init.text:sunxi_wdt_probe()
>> The variable sunxi_wdt_driver references
>> the function __init sunxi_wdt_probe()
>>
>> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
>
> It would be great if it could go in 3.12.
>

Hi Maxime,

Just wondering - is this a nuisance or does it cause a real problem ?

> Do you want to take it, or can I merge it through my tree, with your
> Acked-by?
>

In addition to this patch, the following two would also be good to have in 3.12.
	http://www.spinics.net/lists/linux-watchdog/msg02867.html
	http://www.spinics.net/lists/linux-watchdog/msg02950.html

Thanks,
Guenter

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

end of thread, other threads:[~2013-10-12  2:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-05 14:20 [PATCH] wdt: sunxi: Fix section mismatch Maxime Ripard
2013-10-05 15:38 ` Guenter Roeck
2013-10-11 19:15 ` Maxime Ripard
2013-10-12  2:47   ` Guenter Roeck

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