[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <50114E80.70303@intel.com>
Date: Thu, 26 Jul 2012 14:05:08 +0000
From: "Love, Robert W" <robert.w.love@...el.com>
To: Sha Zhengju <handai.szj@...il.com>
CC: "torvalds@...ux-foundation.org" <torvalds@...ux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devel@...n-fcoe.org" <devel@...n-fcoe.org>,
Sha Zhengju <handai.szj@...bao.com>
Subject: Re: [PATCH] mainline 3.5, fcoe: remove the __exit annotation of
fcoe_transport_exit()
On 7/25/2012 8:02 PM, Sha Zhengju wrote:
From: Sha Zhengju <handai.szj@...bao.com><mailto:handai.szj@...bao.com>
While testing linux mainline v3.5, it comes out the following warning:
WARNING: drivers/scsi/fcoe/libfcoe.o(.init.text+0x21): Section mismatch in reference from the function
init_module() to the function .exit.text:fcoe_transport_exit()
The function __init init_module() references a function __exit fcoe_transport_exit().
This is often seen when error handling in the init function uses functionality in the exit path.
The fix is often to remove the __exit annotation of fcoe_transport_exit() so it may be used outside an exit section.
Hi Sha,
Thanks for the patch. I have seen this same change a few times. The warning has existed for the entirety of the 3.5 development cycle. It's currently in scsi.git/for-next. Take a look at this tread from linux-scsi for the discussion about it.
http://marc.info/?l=linux-scsi&m=134103414011479&w=2
Thanks, //Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists