lkml.org 
[lkml]   [2012]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Different WARNING: drivers/scsi/fcoe/libfcoe.o(.init.text+0x1a): Section mismatch in reference from the function init_module() to the function .exit.text:fcoe_transport_exit()
> However, fcoe_transport_exit() is called only in module *exit* path by the
> module exit func libfcoe_exit(), not in the init_module error path. Let me
> take a objdump of the libfcoe.o to see where your above section mismatch warning
> is from. Is this on 32bit only?

static int __init libfcoe_init(void)
{
int rc = 0;

rc = fcoe_transport_init();
if (rc)
return rc;

rc = fcoe_sysfs_setup();
if (rc)
fcoe_transport_exit(); <=============

return rc;
}

It is called from __init context here.




static void __exit libfcoe_exit(void)
{
fcoe_sysfs_teardown();
fcoe_transport_exit(); <==============
}

And from __exit context here.
This is -rc1.

Sam


\
 
 \ /
  Last update: 2012-06-05 01:21    [W:0.066 / U:3.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site