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)
committerNiklas Cassel <cassel@kernel.org>
Tue, 10 Jun 2025 12:26:27 +0000 (14:26 +0200)
commitfe5b391fc56f77cf3c22a9dd4f0ce20db0e3533f
tree6a0e953467e19c65df31ab8de8cd41efaafeb859
parent33877220b8641b4cde474a4229ea92c0e3637883
ata: pata_cs5536: fix build on 32-bit UML

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>
drivers/ata/pata_cs5536.c