Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1588420ybv; Thu, 20 Feb 2020 23:50:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzZGlAKis14zMbJKOBtLeeQPh4Gp7Bb+rf9j/Q1PQnCTTpOpzH9ePSc5EmxtFf9eoYF50Kk X-Received: by 2002:aca:4ad8:: with SMTP id x207mr881268oia.55.1582271405639; Thu, 20 Feb 2020 23:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582271405; cv=none; d=google.com; s=arc-20160816; b=I78Ge0UlFdxrUqEYS1BBr4B5X82GCs8IUBBxUt/iiW1vM/MKtjWegcZyN9Kn6hb1Q3 JQH1eB7cYdQy9GVI4VaJ/ToVWCgeJ2U23X0ZakOsOku0hoeIbUS7byXshIcqmmzYtImZ Jy9cjsbOGwAbOwof6zVxP337zv3DLRmK90xRTF715VcqHyVZfGKeETSoS2dyzViO3KIB x16xKO+H7v8q+ivte75cXVIotUqUjdUBOdWWpbGgReYy03OpEwzqgiaGjlWeKi1vKF6N ylNvYDFzTMCNSzLadsOHz4Zb3WmabJCEv5Nuw6kMbxv4ZV6QP1t8J1e/l1wPgegh59Cm IWgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E/qIYt0KK0MdPmbks0/wHmz8s28wM4VEVuDt0WjsTa8=; b=qpWMe/JPltB1ApaGHjiZ2ZjSvFWIdeG+BI0smUvdDMLQXskVARv82gkXnVbv4qsELR Hnj1JmmpsgNRhXYE9wfhx9teARJFmnGgrx0rFEINcVUT45Umd/e8h5xpeni9+u+jt9zN 3KeiKluwaQwLTygkUMzjECTpFrpbL7ZPocxlpRekS+9xy4QVbDqSZL9ZQ3a2f0YgcXqi hMUiDuDeLUeT02abkQI8WsP7nRy9nNeJl2EWFGcSp1gPIKfM7A+R+ESDQqzViZUexcll pgogP13mnSHUVymgxM8Fa45d2kZ5lFbkIlwsUdHYxAWjdU5XWermus+PHv36HAwS1sWs 9ESQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=atMznRDe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w187si395614oif.94.2020.02.20.23.49.53; Thu, 20 Feb 2020 23:50:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=atMznRDe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729437AbgBUHtu (ORCPT + 99 others); Fri, 21 Feb 2020 02:49:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:46446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729008AbgBUHtu (ORCPT ); Fri, 21 Feb 2020 02:49:50 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1E7F920801; Fri, 21 Feb 2020 07:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271389; bh=UHTF/KQOikrcVa58Jc+AI++DU1+I2cfHGw4+SZ/+l5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=atMznRDeXgQoh3Lq7bO7opQAI3sd8mqxp3fllSmJX4fW8jzvoUDnWqZoyNaPgeHJK 52QvvYoQHbk0dUEKFLuMzSGv3WEXK6XmaAgE+o9HXfDoGSiJiR9ssruxd5L3KLDpnb v94gPBEyAUG/SZTPtou3svtjed6Tj95j/2ps3NaQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , "kernelci.org bot" , Olofs autobuilder , Stephen Rothwell , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.5 146/399] isdn: dont mark kcapi_proc_exit as __exit Date: Fri, 21 Feb 2020 08:37:51 +0100 Message-Id: <20200221072416.700200716@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit b33bdf8020c94438269becc6dace9ed49257c4ba ] As everybody pointed out by now, my patch to clean up CAPI introduced a link time warning, as the two parts of the capi driver are now in one module and the exit function may need to be called in the error path of the init function: >> WARNING: drivers/isdn/capi/kernelcapi.o(.text+0xea4): Section mismatch in reference from the function kcapi_exit() to the function .exit.text:kcapi_proc_exit() The function kcapi_exit() references a function in an exit section. Often the function kcapi_proc_exit() has valid usage outside the exit section and the fix is to remove the __exit annotation of kcapi_proc_exit. Remove the incorrect __exit annotation. Reported-by: kbuild test robot Reported-by: kernelci.org bot Reported-by: Olof's autobuilder Reported-by: Stephen Rothwell Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20191216194909.1983639-1-arnd@arndb.de Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/isdn/capi/kcapi_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/capi/kcapi_proc.c b/drivers/isdn/capi/kcapi_proc.c index c94bd12c0f7c6..28cd051f1dfd9 100644 --- a/drivers/isdn/capi/kcapi_proc.c +++ b/drivers/isdn/capi/kcapi_proc.c @@ -239,7 +239,7 @@ kcapi_proc_init(void) proc_create_seq("capi/driver", 0, NULL, &seq_capi_driver_ops); } -void __exit +void kcapi_proc_exit(void) { remove_proc_entry("capi/driver", NULL); -- 2.20.1