devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* section mismatch in drivers/w1/masters/w1-gpio.c
@ 2013-01-27 19:36 Hauke Mehrtens
  2013-01-27 19:56 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Hauke Mehrtens @ 2013-01-27 19:36 UTC (permalink / raw)
  To: zbr, panto, Greg KH; +Cc: LKML, devicetree-discuss

Hi,

when building 3.8-rc5 I get the following section mismatch:

WARNING: drivers/w1/masters/w1-gpio.o(.data+0x188): Section mismatch in
reference from the variable w1_gpio_driver to the function
.init.text:w1_gpio_probe()
The variable w1_gpio_driver references
the function __init w1_gpio_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


The __init in front of w1_gpio_probe() should be removed.

Hauke

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

* Re: section mismatch in drivers/w1/masters/w1-gpio.c
  2013-01-27 19:36 section mismatch in drivers/w1/masters/w1-gpio.c Hauke Mehrtens
@ 2013-01-27 19:56 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2013-01-27 19:56 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: zbr, panto, LKML, devicetree-discuss

On Sun, Jan 27, 2013 at 08:36:00PM +0100, Hauke Mehrtens wrote:
> Hi,
> 
> when building 3.8-rc5 I get the following section mismatch:
> 
> WARNING: drivers/w1/masters/w1-gpio.o(.data+0x188): Section mismatch in
> reference from the variable w1_gpio_driver to the function
> .init.text:w1_gpio_probe()
> The variable w1_gpio_driver references
> the function __init w1_gpio_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
> 
> 
> The __init in front of w1_gpio_probe() should be removed.

Great, care to send a patch doing just that so I can apply it?

thanks,

greg k-h

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

end of thread, other threads:[~2013-01-27 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-27 19:36 section mismatch in drivers/w1/masters/w1-gpio.c Hauke Mehrtens
2013-01-27 19:56 ` Greg KH

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