Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761048Ab2FDWdp (ORCPT ); Mon, 4 Jun 2012 18:33:45 -0400 Received: from smtp.snhosting.dk ([87.238.248.203]:29617 "EHLO smtp.domainteam.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756083Ab2FDWdn (ORCPT ); Mon, 4 Jun 2012 18:33:43 -0400 Date: Tue, 5 Jun 2012 00:33:41 +0200 From: Sam Ravnborg To: "Zou, Yi" Cc: Witold Baryluk , "Love, Robert W" , "linux-kernel@vger.kernel.org" , "James E.J. Bottomley" , "devel@open-fcoe.org" , "linux-scsi@vger.kernel.org" Subject: Re: 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() Message-ID: <20120604223341.GA28585@merkur.ravnborg.org> References: <20120602161502.GW16584@smp.if.uj.edu.pl> <20120604143643.GJ32472@redhat.com> <20120604163556.GA12303@merkur.ravnborg.org> <20120604190857.GB16584@smp.if.uj.edu.pl> <20120604191757.GA21821@merkur.ravnborg.org> <138EA028228D124A900F5E6746F3C216286EA866@ORSMSX102.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <138EA028228D124A900F5E6746F3C216286EA866@ORSMSX102.amr.corp.intel.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1005 Lines: 40 > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/