5.4 kernels do not have compiler.h, only include this header file for kernels older then 5.4
Signed-off-by: Greg Gallagher <[email protected]> --- kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h b/kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h index 7444cc823..17be10339 100644 --- a/kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/arm64/include/asm/xenomai/machine.h @@ -29,7 +29,11 @@ #define XNARCH_HOST_TICK_IRQ __ipipe_hrtimer_irq #include <asm/barrier.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0) #include <asm/compiler.h> +#endif + #include <asm/cmpxchg.h> #include <asm/switch_to.h> #include <asm/system_misc.h> -- 2.25.1
