Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1691359lqt; Wed, 20 Mar 2024 11:03:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAadySeka7e7fCxKdr3yLcS4rZKBoWff5+W9ohoPfCQRnufX7qNDzYK/KD228stXP3FRpF1x1x02m5jl7uFSDesFfaWi8+DxgeFIW2Kg== X-Google-Smtp-Source: AGHT+IFcgcErObHBk9Xejr11I+A3Gp0Bw3mLVMVv71Utl7PibsFLCsX3lO8l8/y7HyjztonVIu45 X-Received: by 2002:a67:f246:0:b0:473:a00:faff with SMTP id y6-20020a67f246000000b004730a00faffmr14873891vsm.27.1710957796746; Wed, 20 Mar 2024 11:03:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710957796; cv=pass; d=google.com; s=arc-20160816; b=g+kKO69evBFl09Y/CRd/5gxXmc2R28MAa9fFcPZstDslUEqqCQmPFHOW1Zzw8/nWZc My7sAlELPtXSKaAyzXZLFvcj7C5wiOeHsdt6qW35Lc+Ew/ysKpWdsPQn70BvI5L5vAFe BVw4AiFfKN5VlNNvf08YKduwj8TJnFBNdshqqIxhXwQQYwF79MoAgGbz8SwephCyinYV mu22kMdqaMTgkV84q6PxXKA57k1jMdXvf/VqF+lWNCtBpww/BCb0Vk4Jx+t23IIXCpFM MckQlb49gdXMWZjxhpG+DZzFzYUWMWl3B4V6sXLkRvk+oa7FKJrfgc5wKEEjlvLaGCtj 6rYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=52soHBGMy5wWsWJCdgmTe8/3Q+QJmPS/JGhbTVuOIzk=; fh=SiXstfLjZL8RFtiphaNuBqh+9ug1jeyg75/9lX3D8cM=; b=kcQS8IC2xtyBq8sS4JQ1LM9cUrS85E6qIpHSDjqXg4hsvDpcF8AKuLE1wXIaLMKa6G d64kQ0GySaCE0dujKkmPL0xAhAhjYW/yfXa83SLWcdzsyN/MoYtskeNoG83Rf3MxshFw mtfwUZD+87emmY/g7YhAJ1zBGfkgKTWYLm4EL46PhYegB3Y5L2SLbdfuwdwU9sOU9/CO Mr2w8gAevYQvKe9orhXU2tpxigXvev6oaDdIAIoQbdaLWdtHjalf25JNiJQ/qmi27/1B qi1xH34f0P0+2w37Guq2nrtTLNbOYMW6U7FjAYt7oxzzc63PZXqJvXtCUtT5Msm0/k3S oR0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pxaYGgfw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bh16-20020a056102357000b00473206bb815si1683180vsb.644.2024.03.20.11.03.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 11:03:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pxaYGgfw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 480651C20A5E for ; Wed, 20 Mar 2024 18:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A41B6A8B6; Wed, 20 Mar 2024 18:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pxaYGgfw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 508756A327; Wed, 20 Mar 2024 18:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710957789; cv=none; b=HhRB3nb2l9RyFgy6nFtKQ/cKjuEtMhS+XsbJ5IEuS0yTy/jm5q56mzUpm/yO84ycK434TtosVs66UzKrETJATtDPIcKpvyQIFi9h4XSqRsEevFHaDqo2Wl6ObQ2dd0vf1vFUZU99evSiYFPZYRx9TmW0HSLjK4fvTSDjYcEMRMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710957789; c=relaxed/simple; bh=sQaZL7VLbnroXfvNjOJrzk5y7wEaU2H+hGDvuuVnmt4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RB3bX8qI8QXCek5TE6Xznzb11Da+GcGdWgqx4WAoVELvClNZd24+kzOBq6Qov7Omve5eZsKdtpTD19Ss42WqfpyLik3PV+qIY76pxC6La0tVolCmhs/FmSNWuSKLOlbYKT1JX/vewUTs3nJz2UgezdYs+ZGjqx4eNWhfJDbjfKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pxaYGgfw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E1E0C433C7; Wed, 20 Mar 2024 18:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710957788; bh=sQaZL7VLbnroXfvNjOJrzk5y7wEaU2H+hGDvuuVnmt4=; h=From:To:Cc:Subject:Date:From; b=pxaYGgfwM5gWfUwAIQVlvbsFIvuR9xWLbhy80E2Y1VaeUB7Errm0apfISDlmeqp/N Czc4TuEQ/cPtriXw/RWwCyWFz3ardBGSic0KeDlKpgROUVkYm1R3RUBoxUf9YTPOby fNHMzg7BJP374ArTFNYeGN9POxQeidOiMX4l3TYsX7Jvisgzdo9ifIZ4/OB94cQB4c GMFWBwAkJ39BRxDBArgDoiafbGvCD5LQjh75wIli3Npl1eHMPw/y4vb/xDRyL3BnmB 3jTA3TtH/dtAZ+GGEbyQoa68/PZCuaIKl95vUttTCKv9DHF1bne5TPsKOu9UaQ71fp cjqj3M79ewPng== From: Arnd Bergmann To: "Rafael J. Wysocki" , Dan Williams , Jonathan Cameron , Ben Cheatham Cc: Arnd Bergmann , Len Brown , James Morse , Tony Luck , Borislav Petkov , Avadhut Naik , Shuai Xue , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] acpi: EINJ: mark remove callback as non-__exit Date: Wed, 20 Mar 2024 19:02:50 +0100 Message-Id: <20240320180302.143707-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The remove callback of a device is called whenever it is unbound, which may happen during runtime e.g. through sysfs, so this is not allowed to be dropped from the binary: WARNING: modpost: vmlinux: section mismatch in reference: einj_driver+0x8 (section: .data) -> einj_remove (section: .exit.text) ERROR: modpost: Section mismatches detected. Remove that annotation. Fixes: 12fb28ea6b1c ("EINJ: Add CXL error type support") Signed-off-by: Arnd Bergmann --- drivers/acpi/apei/einj-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/apei/einj-core.c b/drivers/acpi/apei/einj-core.c index 66e7f529e92f..01faca3a238a 100644 --- a/drivers/acpi/apei/einj-core.c +++ b/drivers/acpi/apei/einj-core.c @@ -851,7 +851,7 @@ static int __init einj_probe(struct platform_device *pdev) return rc; } -static void __exit einj_remove(struct platform_device *pdev) +static void einj_remove(struct platform_device *pdev) { struct apei_exec_context ctx; -- 2.39.2