From mboxrd@z Thu Jan 1 00:00:00 1970 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 95890221DB3; Tue, 24 Jun 2025 04:11:30 +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=1750738290; cv=none; b=T7cM5IzWP47oZ2U87aixte+L+iXZg0NGygM0aWoZi9XHwEnj2s1BVhG589Wd1LnhYZikMJU0BkucF2oYadQEG+f6aMX/LgvxmQTkJKjP5wx28sNk0jMW7QtQsYurKrnGVZB4INfxg7zZD++7LD6HumvIRf/0fKDDyluEt/KEVNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750738290; c=relaxed/simple; bh=PUbBgl1S7yccJqzpc7ZYep/VMsO951so4rQQUqrHD5Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iRd85HIL24dVq2dhEOeYjU9V3xSGWyAQ2JoB0Ignc0wAP+8FFQuPjavmNxo08iXk7qyRbfPGtBP3I5uF6VfjC/opz5vG4rQclpfyHTYIhLasSR3dTZbTyE1feI/Tx5JHwUAnGjfHBN0H3N/Evzvsf3J4Z6dy6nBG2ESty0o+LHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hzay3SB5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hzay3SB5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7DE7C4CEF4; Tue, 24 Jun 2025 04:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750738290; bh=PUbBgl1S7yccJqzpc7ZYep/VMsO951so4rQQUqrHD5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hzay3SB5YmSQoJ/7jCboa/ZJEFtmUD2hfR/deJ1gAClLKFyXawKS0bsEYVMSdeG0S cC7FBVrsIsdi0a3t5m1qYpZV+HiVCptuEfNBs0D3ymoz5untT+dzZHOzISbFlxnNZU Uc3kBU02OoZvsUu1/okFg/pqSTjj5hge0iJMc33JCcYO9CfPVECf4kfq+C1n3PW/J3 dfdN0N/i7APhSVTj8hLZ0tb26jOIIIGpKHVzpHs+vnOHTJy4DyfgR7yuYWZVLM9rKD NI8X1DLnzeDJztVYOtV6grbuBXb7j4v58uF06xgNv6iLpBOmo5bzruUy7Eaw5xWD0G M9JEPgTKQ9ltw== From: Sasha Levin To: patches@lists.linux.dev, stable@vger.kernel.org Cc: Johannes Berg , Arnd Bergmann , Niklas Cassel , Sasha Levin , dlemoal@kernel.org, linux-ide@vger.kernel.org Subject: [PATCH AUTOSEL 6.15 07/20] ata: pata_cs5536: fix build on 32-bit UML Date: Tue, 24 Jun 2025 00:11:06 -0400 Message-Id: <20250624041120.83191-7-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250624041120.83191-1-sashal@kernel.org> References: <20250624041120.83191-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-ide@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.15.3 Content-Transfer-Encoding: 8bit From: Johannes Berg [ Upstream commit fe5b391fc56f77cf3c22a9dd4f0ce20db0e3533f ] On 32-bit ARCH=um, CONFIG_X86_32 is still defined, so it doesn't indicate building on real X86 machines. There's no MSR on UML though, so add a check for CONFIG_X86. Reported-by: Arnd Bergmann Signed-off-by: Johannes Berg Link: https://lore.kernel.org/r/20250606090110.15784-2-johannes@sipsolutions.net Signed-off-by: Niklas Cassel Signed-off-by: Sasha Levin --- **YES** This commit should be backported to stable kernel trees for the following reasons: 1. **It fixes a build failure**: The commit addresses a build breakage on 32-bit UML (User Mode Linux) where `CONFIG_X86_32` is defined but MSR (Machine Specific Register) support is not available. This prevents successful compilation when building for 32-bit UML. 2. **The fix is minimal and contained**: The change is a simple one-line modification that adds an additional check for `CONFIG_X86` alongside the existing `CONFIG_X86_32` check. The change from: ```c #ifdef CONFIG_X86_32 ``` to: ```c #if defined(CONFIG_X86) && defined(CONFIG_X86_32) ``` This ensures MSR usage is only enabled on real x86 hardware, not on UML. 3. **Similar pattern to other backported fixes**: Looking at the similar commits, we see that: - Commit #1 (pata_cs5535 + UML) was backported (YES) - it added `depends on !UML` to prevent build issues - Commit #2 (dmaengine: idxd + UML) was backported (YES) - similar UML build fix These show a pattern where UML build fixes are considered important for stable backporting. 4. **No functional changes for normal users**: The fix only affects build configurations and doesn't change any runtime behavior for users running on actual x86 hardware. This minimizes regression risk. 5. **Prevents allyesconfig/allmodconfig breakage**: As seen in similar commits, UML build failures can break comprehensive kernel build tests (allyesconfig/allmodconfig), which are important for continuous integration and testing. 6. **The issue affects a subsystem driver**: While pata_cs5536 is a specific driver for older AMD CS5536 hardware, build failures in any driver can impact kernel testing infrastructure and distributions that build comprehensive kernel packages. The commit follows the stable tree rules by being a minimal, focused fix for an actual bug (build failure) with very low risk of introducing new issues. drivers/ata/pata_cs5536.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c index b811efd2cc346..73e81e160c91f 100644 --- a/drivers/ata/pata_cs5536.c +++ b/drivers/ata/pata_cs5536.c @@ -27,7 +27,7 @@ #include #include -#ifdef CONFIG_X86_32 +#if defined(CONFIG_X86) && defined(CONFIG_X86_32) #include static int use_msr; module_param_named(msr, use_msr, int, 0644); -- 2.39.5