All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels
@ 2021-02-03  7:01 Greg Gallagher
  2021-02-03  7:01 ` [PATCH v2 2/2] kernel: cobalt: Fix up elf_hwcap Greg Gallagher
  2021-02-03  9:50 ` [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels Jan Kiszka
  0 siblings, 2 replies; 7+ messages in thread
From: Greg Gallagher @ 2021-02-03  7:01 UTC (permalink / raw)
  To: xenomai

5.4 kernels do not have compiler.h, only include this header file for kernels older then 5.4

Signed-off-by: Greg Gallagher <greg@embeddedgreg.com>
---
 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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-05 16:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03  7:01 [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels Greg Gallagher
2021-02-03  7:01 ` [PATCH v2 2/2] kernel: cobalt: Fix up elf_hwcap Greg Gallagher
2021-02-03  9:52   ` Jan Kiszka
2021-02-03  9:50 ` [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels Jan Kiszka
2021-02-05 14:45   ` Jan Kiszka
2021-02-05 14:47     ` Greg Gallagher
2021-02-05 16:32       ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.