* [PATCH] fcoe: fix compilation warnings of section mismatch @ 2012-06-26 12:17 Tony Zelenoff 2012-06-29 20:13 ` Love, Robert W 0 siblings, 1 reply; 5+ messages in thread From: Tony Zelenoff @ 2012-06-26 12:17 UTC (permalink / raw) To: linux-scsi; +Cc: antonz Fix this message: 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(). Signed-off-by: Tony Zelenoff <antonz@parallels.com> --- drivers/scsi/fcoe/fcoe_transport.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index b46f43d..71cc909 100644 --- a/drivers/scsi/fcoe/fcoe_transport.c +++ b/drivers/scsi/fcoe/fcoe_transport.c @@ -502,7 +502,7 @@ static int __init fcoe_transport_init(void) return 0; } -static int __exit fcoe_transport_exit(void) +static int fcoe_transport_exit(void) { struct fcoe_transport *ft; -- 1.7.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] fcoe: fix compilation warnings of section mismatch 2012-06-26 12:17 [PATCH] fcoe: fix compilation warnings of section mismatch Tony Zelenoff @ 2012-06-29 20:13 ` Love, Robert W 2012-06-29 20:20 ` James Bottomley 0 siblings, 1 reply; 5+ messages in thread From: Love, Robert W @ 2012-06-29 20:13 UTC (permalink / raw) To: Tony Zelenoff; +Cc: linux-scsi@vger.kernel.org On 12-06-26 05:17 AM, Tony Zelenoff wrote: Fix this message: 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(). Signed-off-by: Tony Zelenoff <antonz@parallels.com><mailto:antonz@parallels.com> Thank you for the patch. However, this was fixed a few weeks ago. The patch is in James' 'for-next' branch here: http://git.kernel.org/?p=linux/kernel/git/jejb/scsi.git;a=commit;h=43b8a1613a1c8707d0e86316a7d6999fd767a5cf I'm not sure if it's queue'd up for the current RC phase or not. I don't know how the scsi.git branches are managed. I think the patch should go for the current RC. //Rob ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fcoe: fix compilation warnings of section mismatch 2012-06-29 20:13 ` Love, Robert W @ 2012-06-29 20:20 ` James Bottomley 2012-06-30 5:25 ` Tony Zelenoff 0 siblings, 1 reply; 5+ messages in thread From: James Bottomley @ 2012-06-29 20:20 UTC (permalink / raw) To: Love, Robert W; +Cc: Tony Zelenoff, linux-scsi@vger.kernel.org On Fri, 2012-06-29 at 20:13 +0000, Love, Robert W wrote: > On 12-06-26 05:17 AM, Tony Zelenoff wrote: > > Fix this message: > 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(). > > Signed-off-by: Tony Zelenoff <antonz@parallels.com><mailto:antonz@parallels.com> > > > Thank you for the patch. However, this was fixed a few weeks ago. The patch is in James' 'for-next' branch here: http://git.kernel.org/?p=linux/kernel/git/jejb/scsi.git;a=commit;h=43b8a1613a1c8707d0e86316a7d6999fd767a5cf > > I'm not sure if it's queue'd up for the current RC phase or not. I don't know how the scsi.git branches are managed. I think the patch should go for the current RC. Show me the bug it actually produces and I'll queue it for -rc ... James ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fcoe: fix compilation warnings of section mismatch 2012-06-29 20:20 ` James Bottomley @ 2012-06-30 5:25 ` Tony Zelenoff 2012-07-02 16:22 ` Rustad, Mark D 0 siblings, 1 reply; 5+ messages in thread From: Tony Zelenoff @ 2012-06-30 5:25 UTC (permalink / raw) To: James Bottomley; +Cc: Love, Robert W, linux-scsi@vger.kernel.org 30/06/12 12:20 AM, James Bottomley пишет: > On Fri, 2012-06-29 at 20:13 +0000, Love, Robert W wrote: >> On 12-06-26 05:17 AM, Tony Zelenoff wrote: >> >> Fix this message: >> 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(). >> >> Signed-off-by: Tony Zelenoff <antonz@parallels.com><mailto:antonz@parallels.com> >> >> >> Thank you for the patch. However, this was fixed a few weeks ago. The patch is in James' 'for-next' branch here: http://git.kernel.org/?p=linux/kernel/git/jejb/scsi.git;a=commit;h=43b8a1613a1c8707d0e86316a7d6999fd767a5cf MAke this patch from linux branch is faster than cloning scsi-next. :) Anyway, if it fixed - it is nice. >> I'm not sure if it's queue'd up for the current RC phase or not. I don't know how the scsi.git branches are managed. I think the patch should go for the current RC. > > Show me the bug it actually produces and I'll queue it for -rc ... It mostly cosmetic issue, there is no reason to port it to RC branches. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fcoe: fix compilation warnings of section mismatch 2012-06-30 5:25 ` Tony Zelenoff @ 2012-07-02 16:22 ` Rustad, Mark D 0 siblings, 0 replies; 5+ messages in thread From: Rustad, Mark D @ 2012-07-02 16:22 UTC (permalink / raw) To: Tony Zelenoff; +Cc: James Bottomley, Love, Robert W, linux-scsi@vger.kernel.org On Jun 29, 2012, at 10:25 PM, Tony Zelenoff wrote: > 30/06/12 12:20 AM, James Bottomley пишет: >> On Fri, 2012-06-29 at 20:13 +0000, Love, Robert W wrote: >>> On 12-06-26 05:17 AM, Tony Zelenoff wrote: >>> >>> Fix this message: >>> 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(). >>> >>> Signed-off-by: Tony Zelenoff <antonz@parallels.com><mailto:antonz@parallels.com> >>> >>> >>> Thank you for the patch. However, this was fixed a few weeks ago. The patch is in James' 'for-next' branch here: http://git.kernel.org/?p=linux/kernel/git/jejb/scsi.git;a=commit;h=43b8a1613a1c8707d0e86316a7d6999fd767a5cf > MAke this patch from linux branch is faster than cloning scsi-next. :) Anyway, if it fixed - it is nice. > >>> I'm not sure if it's queue'd up for the current RC phase or not. I don't know how the scsi.git branches are managed. I think the patch should go for the current RC. >> >> Show me the bug it actually produces and I'll queue it for -rc ... > It mostly cosmetic issue, there is no reason to port it to RC branches. In some ways it is cosmetic, but the build warning results in people sending patches to fix it, because it is easy to fix (your patch is the third). It also could result in a crash, if someone built fcoe into the kernel and experienced the right kind of failure during initialization. That is because exit sections are discarded for entities built into the kernel since they can't be removed. I grant you, that is much less likely than seeing the build warnings simply because I expect that it is usually being built as a module. It could bite some embedded developer however. I am more concerned about the patch I sent on June 21st titled "scsi: Avoid NULL dereferences in scsi_cmd_to_driver" since it does fix a crashing kernel bug that is positively seen with a large number of luns. It was already discussed on the open-fcoe mailing list, but had no response on linux-scsi so far. -- Mark Rustad, LAN Access Division, Intel Corporation ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-02 16:22 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-06-26 12:17 [PATCH] fcoe: fix compilation warnings of section mismatch Tony Zelenoff 2012-06-29 20:13 ` Love, Robert W 2012-06-29 20:20 ` James Bottomley 2012-06-30 5:25 ` Tony Zelenoff 2012-07-02 16:22 ` Rustad, Mark D
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.