From nobody Sun Feb 8 10:43:38 2026 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8BC0D35950 for ; Tue, 6 Jan 2026 01:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767664035; cv=none; b=AotEKtLW7yaGoIdp7PhfGyhGHlmrBNGaBHpExLD09bdndHe2TtZk6E5hW5rU/r22cLKbE45Nq9PmUqODY/s+SAfRohMxp/O/UYTSZKfPIKYXJBJiBDSRoJnQaG2zAtG1waPUa6xFr/AzS5wftZ/+gEpniyTgQDf4wM/JTMduac8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767664035; c=relaxed/simple; bh=t2hkEGP9rxD+U13I57jRA5coHlJE8lMJoiLL6u8veb0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rlbdaUfMzvWIOLcyE1cedoF8XhPY/xOXWpCNu39T+7Gn4yCEnhrv8aO2nCLnHoBAcl6+GnJPYEgUh1nmt1W+SLuq+8gyP1wIpc7Ys2KoyHdYwoc8a46PnPODa+/dqZi4tdPoqwWNIj6iypXEoQnxGFM03TAv48eADoS2Oi5NdjU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=HOGhJq39; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HOGhJq39" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=XdFtoFfPqOKIG37iFFcUGknoEB8BTZtUo5Yn/NnnW1k=; b=HOGhJq39y7M5kqHSY+rWyo0Nbq VzOqUyRuJjKB3SUlgNE4xvZqEs1bx3SUo4+axrJOxsJCl6UT8gji/utI4df5VLbHk3mgRTmw0xU21 mLC9Ps3+aeH+JAkI5dkO/jM1N5VO59lMnRWhGhJlwtzO6q/QjA/zs16J51pf8hCLm1DWdgk4KwWzf MLs1wVlIqnlHcKpGLH4lGNG4EawW3AbDi6GlStBys41bQaJFkDtG+LmR89PHu32aFzeIdDHdjHcEl kZjkhIixA35kjxg18fVtxatF7TCIaxWlfWbkg+CcRm0oTAEJ5t5TNu7yicx6LN1pcJVabLal4s5fQ K0t7M7LA==; Received: from [50.53.43.113] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vcwAA-0000000CKNH-0SbQ; Tue, 06 Jan 2026 01:47:10 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Nikolay Borisov , Arnd Bergmann , Ingo Molnar , Thomas Gleixner , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH v2] x86/cpu: drop unused Kconfig symbol X86_P6_NOP Date: Mon, 5 Jan 2026 17:47:08 -0800 Message-ID: <20260106014708.991447-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This symbol was removed in early 2025 but 2 dangling references to it were missed. Delete them now. It's safe to drop the -mtune=3Dgeneric32 option since gcc 4.3 doesn't cause the problem (see 28f7e66fc1da ("x86: prevent binutils from being "smart" and generating NOPLs for us")). Also, Arnd confirmed this with gcc-8 and gcc-15. Fixes: f388f60ca904 ("x86/cpu: Drop configuration options for early 64-bit = CPUs") Signed-off-by: Randy Dunlap Reviewed-by: Nikolay Borisov Acked-by: H. Peter Anvin (Intel) --- v2: add Reviewed-by Nikolay; add -mtune explanation (Dave, Arnd: thanks); add Cc to HPA; Cc: Arnd Bergmann Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: x86@kernel.org arch/x86/Kconfig.cpufeatures | 2 +- arch/x86/Makefile_32.cpu | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) --- linux-next-20251219.orig/arch/x86/Kconfig.cpufeatures +++ linux-next-20251219/arch/x86/Kconfig.cpufeatures @@ -38,7 +38,7 @@ config X86_REQUIRED_FEATURE_ALWAYS =20 config X86_REQUIRED_FEATURE_NOPL def_bool y - depends on X86_64 || X86_P6_NOP + depends on X86_64 =20 config X86_REQUIRED_FEATURE_CX8 def_bool y --- linux-next-20251219.orig/arch/x86/Makefile_32.cpu +++ linux-next-20251219/arch/x86/Makefile_32.cpu @@ -42,9 +42,3 @@ cflags-$(CONFIG_MGEODE_LX) +=3D $(call cc- # add at the end to overwrite eventual tuning options from earlier # cpu entries cflags-$(CONFIG_X86_GENERIC) +=3D $(call tune,generic,$(call tune,i686)) - -# Bug fix for binutils: this option is required in order to keep -# binutils from generating NOPL instructions against our will. -ifneq ($(CONFIG_X86_P6_NOP),y) -cflags-y +=3D $(call cc-option,-Wa$(comma)-mtune=3Dgeneric32,) -endif