public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* sh7760 i2c problem
@ 2008-07-24 11:34 Luca Santini
  2008-07-24 11:37 ` Manuel Lauss
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Santini @ 2008-07-24 11:34 UTC (permalink / raw)
  To: linux-sh


if i try to compile it as a module, i get:

WARNING: drivers/i2c/busses/i2c-sh7760.o(.data+0x0): Section mismatch in 
reference from the variable sh7760_i2c_drv to the function 
.devinit.text:sh7760_i2c_probe()
The variable sh7760_i2c_drv references
the function __devinit sh7760_i2c_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/i2c/busses/i2c-sh7760.o(.data+0x4): Section mismatch in 
reference from the variable sh7760_i2c_drv to the function 
.devexit.text:sh7760_i2c_remove()
The variable sh7760_i2c_drv references
the function __devexit sh7760_i2c_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,



how to fix this?

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

* Re: sh7760 i2c problem
  2008-07-24 11:34 sh7760 i2c problem Luca Santini
@ 2008-07-24 11:37 ` Manuel Lauss
  0 siblings, 0 replies; 2+ messages in thread
From: Manuel Lauss @ 2008-07-24 11:37 UTC (permalink / raw)
  To: linux-sh

On Thu, Jul 24, 2008 at 01:34:09PM +0200, Luca Santini wrote:
>
> if i try to compile it as a module, i get:
>
> WARNING: drivers/i2c/busses/i2c-sh7760.o(.data+0x0): Section mismatch in 
> reference from the variable sh7760_i2c_drv to the function 
> .devinit.text:sh7760_i2c_probe()
> The variable sh7760_i2c_drv references
> the function __devinit sh7760_i2c_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/i2c/busses/i2c-sh7760.o(.data+0x4): Section mismatch in 
> reference from the variable sh7760_i2c_drv to the function 
> .devexit.text:sh7760_i2c_remove()
> The variable sh7760_i2c_drv references
> the function __devexit sh7760_i2c_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,
>
>
>
> how to fix this?

replace all instances of "sh7760_i2c_drv" with "sh7760_i2c_driver".
It's not a bug, just a mismatch detector stupidity.

Best regards,
	Manuel Lauss

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

end of thread, other threads:[~2008-07-24 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-24 11:34 sh7760 i2c problem Luca Santini
2008-07-24 11:37 ` Manuel Lauss

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