]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: pata_cs5536: fix build on 32-bit UML
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Jun 2025 09:01:11 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:59:50 +0000 (15:59 +0200)
commiteb6fdc817ae396fa7ae8777ad0084d34c915251a
tree3346cd0ee255da4fabec97bfe2ce72e96528e20f
parentda9a5486c604c59b35d0bb347056f4fd58de5081
ata: pata_cs5536: fix build on 32-bit UML

[ 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 <arnd@arndb.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20250606090110.15784-2-johannes@sipsolutions.net
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/pata_cs5536.c