public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* section mismatch with a platform driver
@ 2008-10-13  8:19 Neshama Parhoti
  2008-10-13  8:51 ` Adrian Bunk
  0 siblings, 1 reply; 13+ messages in thread
From: Neshama Parhoti @ 2008-10-13  8:19 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I am working on a platform driver, and getting the following warning:

WARNING: vmlinux.o(.data+0x44bc4): Section mismatch: reference to
.init.text:my_probe_func (between 'my_platform_struct' and
'debug_level_variable')

If I understand correctly, it shouts about my probe function being
referenced from the data section:

static struct platform_driver my_platform_struct = {
	.probe		= my_probe,
	.remove		= my_remove,
	.suspend	= my_suspend,
	.resume		= my_resume,
	.driver		= {
		.name = DRIVER_NAME,
	},
};

Why is that a problem ? Should I do something different ? Isn't my
platform_driver struct completely standard ?

Thank You !
Pnesh

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

end of thread, other threads:[~2008-10-13 20:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13  8:19 section mismatch with a platform driver Neshama Parhoti
2008-10-13  8:51 ` Adrian Bunk
2008-10-13  9:28   ` Neshama Parhoti
2008-10-13  9:43     ` Gilad Ben-Yossef
2008-10-13 11:11       ` Neshama Parhoti
2008-10-13  9:50     ` Adrian Bunk
2008-10-13 11:13       ` Neshama Parhoti
2008-10-13 16:01     ` Randy Dunlap
2008-10-13 16:29       ` Neshama Parhoti
2008-10-13 16:31         ` Randy Dunlap
2008-10-13 18:58           ` Neshama Parhoti
2008-10-13 19:00             ` Randy Dunlap
2008-10-13 20:22             ` sniper

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