lkml.org 
[lkml]   [2008]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsection mismatch with a platform driver
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


\
 
 \ /
  Last update: 2008-10-13 10:21    [W:0.055 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site