Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1947776ybv; Fri, 14 Feb 2020 08:42:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwIaa/YYRh2QPZ0idkQIz2wA0M7jgIoi+HzKO3eM+Lam0XqDFuOwMZw1fo3vmXrRe5+T6Jn X-Received: by 2002:a9d:6452:: with SMTP id m18mr2920850otl.366.1581698533184; Fri, 14 Feb 2020 08:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698533; cv=none; d=google.com; s=arc-20160816; b=uIvxIF9C6gBElQu1qb/gQqGE/wY5wNoMON36plzdSXUuwe76Zcx4FZAgKZ5s0pxECt O6qPX+QCfxWTCoOYHbc0a4GFw0QJdCPFKbMXYtK/bY76GnijsDkowtaot6OaPRyfuldW KICaD0hPdVzu0zfQ0OwMhSMU+zP6cBKifxTtC10VpniD0jyvaUwXYgbY1DThETBvTK5a zS8ukH49Ni7E2gEzBmvpw+uW9pmmlFnLalEtKyop5tgwvGJ69egGMLR/0QouE4dqFUdN tzNZ58J/jqdX+01p3YOgUujkX5RFD1mQ4p9xEv3C9/TgL/hscE5GJ+jugA7F1ZTJFfoB jDOw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sJ4fQWesKZKrMD1HsAcnlvtXgBT51cv7pAme4L0u8HE=; b=w/tH5mmGMjYDqje3R8ZFiqqeae+wCtkFEXhTsANmrnaXgqXTqfwZOmhzTf8Mrq2Xb8 1eII4d91KVnnQR4l8WngqY7BjiwMVTb+8HNGK2laip8qXJmdsnhj5yystvGEzEu18bYd w8NK/L40hjoDSJrEuMOZjNt06WIo9dexvTHYtGwiCZedWsWFybi7dgt5DHz8q2OaN/1F 3Luomqgflf9amP/vV+zNiJKZMtDnCboKxHmzl/eM/1mahVY+mGKVHEdnRVe8z8/NXCGg MPscQXuBOeS73mHf6znTamkbtYYWJCIEK2C4tBQZ778c+DBP7au0qeNyH5lNobee6rYY MW7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t4ZAHzlH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si2803566oii.60.2020.02.14.08.42.01; Fri, 14 Feb 2020 08:42:13 -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=t4ZAHzlH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393974AbgBNQl1 (ORCPT + 99 others); Fri, 14 Feb 2020 11:41:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:58310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393222AbgBNQWg (ORCPT ); Fri, 14 Feb 2020 11:22:36 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 57AFB24758; Fri, 14 Feb 2020 16:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697356; bh=lhYkUkKhNIN5XzZ3oL3+l7aoO6QBE7b9lZ90yaiKQ40=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t4ZAHzlHmqwiCYcfl074cQv245fi1dNyiY6EOc7LiCJ9ZlOzTH4u5k6cAV0xlVCUB iSxbgAjQJfHxwAupyE5dt5CebmbQZqov5b2M8bAtinLXq5sxz4uXPPyN8Lu8+FRtyf 3Jm/6os2XbOHLANOrx8XX7+YEFnJwchfvQ+1MykY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , kbuild test robot , "kernelci . org bot" , Olof's autobuilder , Stephen Rothwell , Greg Kroah-Hartman , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 058/141] isdn: don't mark kcapi_proc_exit as __exit Date: Fri, 14 Feb 2020 11:19:58 -0500 Message-Id: <20200214162122.19794-58-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 68db3c5a10636..d6ca626219c93 100644 --- a/drivers/isdn/capi/kcapi_proc.c +++ b/drivers/isdn/capi/kcapi_proc.c @@ -309,7 +309,7 @@ kcapi_proc_init(void) proc_create("capi/driver", 0, NULL, &proc_driver_ops); } -void __exit +void kcapi_proc_exit(void) { remove_proc_entry("capi/driver", NULL); -- 2.20.1