Skip to content

Commit 9cf7872

Browse files
author
Ingo Molnar
committed
accel/habanalabs: Don't build the driver on UML
The following commit: 288a4ff ("x86/msr: Move rdtsc{,_ordered}() to <asm/tsc.h>") removed the <asm/msr.h> include from the accel/habanalabs driver, which broke the build on UML: drivers/accel/habanalabs/common/habanalabs_ioctl.c:326:23: error: call to undeclared function 'rdtsc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Make the driver depend on 'X86 && X86_64', instead of just 'X86_64', thus it won't be built on UML. Suggested-by: Johannes Berg <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Cc: Ofir Bitton <[email protected]> Cc: Oded Gabbay <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 570d58b commit 9cf7872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/accel/habanalabs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
config DRM_ACCEL_HABANALABS
77
tristate "HabanaLabs AI accelerators"
88
depends on DRM_ACCEL
9-
depends on X86_64
9+
depends on X86 && X86_64
1010
depends on PCI && HAS_IOMEM
1111
select GENERIC_ALLOCATOR
1212
select HWMON

0 commit comments

Comments
 (0)