From patchwork Thu Feb 15 14:15:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 201494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp428339dyb; Thu, 15 Feb 2024 06:16:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2/MLwklWQtctKO8OSlq8+rs9KPYDS1K6egdKOmLYUry6wJrpZAtoYTj38Qs0pmoqYeWpbAG/yv+vnm2HscDWLOAN1dQ== X-Google-Smtp-Source: AGHT+IFI85sfpNHaRdM1+5+UsPEt9FIMStuuVhs9CaJob8PjgZEisv8EZHVQudqsJ1/2mbaDw+Zz X-Received: by 2002:a17:906:6150:b0:a3d:a16c:f0b with SMTP id p16-20020a170906615000b00a3da16c0f0bmr1096330ejl.65.1708006568789; Thu, 15 Feb 2024 06:16:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708006568; cv=pass; d=google.com; s=arc-20160816; b=0xMqBLRIJ1LD4sMJgrC0Nx/UDJkqNAJTaMuZkmDuv/DRcT0XkOkJBxXIrgz60gAq9j Vq3Rp/hFYUmRUHg2f13j0o4AO6qpDsey8TAruQfrLH+XYBlXICnhySowF8GVHDShnnlg Bq9Pxr3kXJD7EtN2Xf01DeOUQMuCxo84s/MVeMMz7Y5nw+saSAjj2GiSJU9yWkEE8i3D XXCWnd6arG64piKaeUGb0F1tm9gPJM6Mwweo6bKsqTK62s7hNBj5YKKA7u2vGdxTpVyO fVlSXG7JKDe3548HP0fUozj7utUmM+/554yaT+As7oP4Vl5GpkItXBE66vMo31oIEK61 R/gQ== 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=cL8KoHqegHmnslNzU6BjHRtl8p5WurkQJB7Mr7bSvt0=; fh=3FVgVBaJsAo05UdGqwhTW68fIisz6BY5z78oIT2q+sQ=; b=g+F9CtYavnTULkELrYCyY8NU8u6cLoShEk3TbEkJxUcT1wTx11Px2+QScgxY3rpSLX PkPgA56XFGIzgL1gzUl/KS15sueXQT90+t6JO91iLVvJ2fmb3OYz7Ujz9n7O7Kc9bWf5 GANxa8tzaoPr8Hv/btSP2hDPbKDHf3dqdGQhROTYTZAJEOEgynk8uyM+MUrdvjzf9i0S W3PiE54SIuFf7nczvpOI4b95WJ+KL+Xhhh0poCslOcrR05dmGjYjwnK8Yo1mviYtdhT0 FTlyfXi1lZIpT16AWA6RnCdNcKB+AtHtjR9wdQf2HOleDFyOkKpiUuTFv/TL8LhtCngK 2Mdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ES6orXwm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67069-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67069-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id oz39-20020a170906cd2700b00a3cecae6a97si676736ejb.102.2024.02.15.06.16.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:16:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67069-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ES6orXwm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67069-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67069-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4B3771F21FA1 for ; Thu, 15 Feb 2024 14:16:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD3B213246A; Thu, 15 Feb 2024 14:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ES6orXwm" 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 2C12B12CD98; Thu, 15 Feb 2024 14:15:39 +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=1708006540; cv=none; b=iPw6VLAs76Ny6M9rgXoKdH4a+4iJ+znM1a1dOkCaI5bPX+y3wvQCkYbuWvmykViOd3SzxB0dLbLYKUCntS3Bcs1c/WopJw+u0IH5/d4/A18+HgIPc1+zxrcPUsMTPPR4ilRsnghcqYGpPARzpxpRURL5CFhF1CES2ayZjbpocFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006540; c=relaxed/simple; bh=wLMxSv93mDKkvte+a+sn4g8mROkVAPqpgv+OwkJJ3v8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HcmGsV4B517qNZS0dDyGqiSnCUHB0MEVhBnXyV0FHDXnxzZh3nVx6ivZamvpG10B0sxVdpfrRCYnMlZpnN5CE+94gCj1VXscgEYS6UM5Vo7FfT9U9cSP/XZmfDJq++b4jGL9yUfRnI12J8FOlDbgQTS3PdbwsDqZYJJitrX7xIo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ES6orXwm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F59BC433C7; Thu, 15 Feb 2024 14:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708006539; bh=wLMxSv93mDKkvte+a+sn4g8mROkVAPqpgv+OwkJJ3v8=; h=From:To:Cc:Subject:Date:From; b=ES6orXwmzWlo5VTAQyJhtm08NQ+Hd/RAw7H973POmzzls6fcA7So5/FD9c7DDEvWg X/ntXXftI7Q8YueZubXNnkLDYP3HWGy11M8QH4nsLeYUg7qZSK1n8wwk/QmrNEOuXm V7pJ4vaPC5kt1I7xurc+cJ8FsFBeE8E9WqCnfIuK/wpynb/oEX2g3CK60bwZnc3Rb/ zsHRf7UVxHU0eHxRio9tT9W0f46vO+lkO+Yw+AlJO6ABiaXgH0YbpJyHbTY2Pa1hIz tmEfegfAdlhK8UQt/rJ1nBhAe0DRKjaiFxWVP3/kRQDhruGX+WlkV0UbJ3LzcxXbOf P3p0XgYnE7rVg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Linus Torvalds , Masahiro Yamada , Luis Chamberlain , linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org Subject: [PATCH] kbuild: remove EXPERT and !COMPILE_TEST guarding from TRIM_UNUSED_KSYMS Date: Thu, 15 Feb 2024 23:15:01 +0900 Message-Id: <20240215141502.1911726-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790974695758557472 X-GMAIL-MSGID: 1790974695758557472 This reverts the following two commits: - a555bdd0c58c ("Kbuild: enable TRIM_UNUSED_KSYMS again, with some guarding") - 5cf0fd591f2e ("Kbuild: disable TRIM_UNUSED_KSYMS option") Commit 5e9e95cc9148 ("kbuild: implement CONFIG_TRIM_UNUSED_KSYMS without recursion") solved the build time issue. Signed-off-by: Masahiro Yamada --- kernel/module/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig index 0ea1b2970a23..c3ced519e14b 100644 --- a/kernel/module/Kconfig +++ b/kernel/module/Kconfig @@ -362,8 +362,7 @@ config MODPROBE_PATH userspace can still load modules explicitly). config TRIM_UNUSED_KSYMS - bool "Trim unused exported kernel symbols" if EXPERT - depends on !COMPILE_TEST + bool "Trim unused exported kernel symbols" help The kernel and some modules make many symbols available for other modules to use via EXPORT_SYMBOL() and variants. Depending