Subject: Re: [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels References: <20210203070159.3610435-1-greg@embeddedgreg.com> <15001d4b-48ce-7192-d5e8-0e4dab9a55e0@siemens.com> <0bbdd664-2065-1680-313c-fcb7dbd6388e@siemens.com> From: Jan Kiszka Message-ID: <658ae869-e142-d2bf-f90a-d9df59c4d97d@siemens.com> Date: Fri, 5 Feb 2021 17:32:30 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Gallagher Cc: xenomai@xenomai.org On 05.02.21 15:47, Greg Gallagher wrote: > > > On Fri, Feb 5, 2021 at 9:45 AM Jan Kiszka > wrote: > > On 03.02.21 10:50, Jan Kiszka via Xenomai wrote: > > On 03.02.21 08:01, Greg Gallagher via Xenomai wrote: > >> 5.4 kernels do not have compiler.h, only include this header file > for kernels older then 5.4 > >> > >> Signed-off-by: Greg Gallagher > > >> --- > >>  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 > >> + > >> +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0) > >>  #include > >> +#endif > >> + > >>  #include > >>  #include > >>  #include > >> > > > > There is still arch/arm64/include/asm/compiler.h in today's master. > > > > What error exactly are you fixing? That we should rather including > > linux/compiler.h? Or is that header obsolete for us now, for all > kernels? > > > > OK, that file vanished in 4.20 and resurrected in 5.7. Given that we do > not head for ipipe over > 5.4, I will just merge this (ported to next). > > Jan > > -- > Siemens AG, T RDA IOT > Corporate Competence Center Embedded Linux > > > Sorry, I meant to look into that. I’m assuming this won’t impact the > port to dovetail? We could always add it back for kernels greater then > 5.6 and remove for 4.20 and above? > Yes, 5.4 is EOL for that machine.h, thus we can ignore the reintroduction later on. I left an according remark in the commit. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux