[I-PIPE] ipipe-core-5.4.119-arm-2 released

Michael Opdenacker michael.opdenacker at bootlin.com
Fri May 21 11:22:52 CEST 2021


Greetings,

After downloading this new patch and patching the 5.4.119 kernel sources
for arm through "./scripts/prepare-kernel.sh", I'm facing kernel
compiling issues with the "sama5_defconfig" configuration:

  CC      kernel/xenomai/intr.o
In file included from include/xenomai/cobalt/kernel/thread.h:26:0,
                 from include/xenomai/cobalt/kernel/sched.h:24,
                 from kernel/xenomai/intr.c:24:
kernel/xenomai/intr.c: In function ‘inc_irqstats’:
include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  __prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
                                                 ^
include/xenomai/cobalt/kernel/stat.h:147:2: note: in expansion of macro ‘xnstat_exectime_set_current’
  xnstat_exectime_set_current(sched, new_account); \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/xenomai/intr.c:123:2: note: in expansion of macro ‘xnstat_exectime_lazy_switch’
  xnstat_exectime_lazy_switch(sched, &statp->account, start);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/atomic.h:76:0,
                 from ./include/asm-generic/bitops/lock.h:5,
                 from ./arch/arm/include/asm/bitops.h:243,
                 from ./include/linux/bitops.h:26,
                 from ./include/linux/kernel.h:12,
                 from ./include/asm-generic/bug.h:19,
                 from ./arch/arm/include/asm/bug.h:60,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/thread_info.h:12,
                 from ./include/asm-generic/current.h:5,
                 from ./arch/arm/include/generated/asm/current.h:1,
                 from ./include/linux/mutex.h:14,
                 from kernel/xenomai/intr.c:21:
...
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:262: kernel/xenomai/intr.o] Error 1
make[1]: *** [scripts/Makefile.build:496: kernel/xenomai] Error 2
make: *** [Makefile:1734: kernel] Error 2

I'm using the Linaro ARM 2018.05 toolchain (Linaro GCC 7.3-2018.05), but
I also tried with another toolchain (gcc 10.2), and getting the same issue.

I don't have any trouble with ipipe-core-4.19.144-arm-10.patch on
sama5_defconfig.

Does it ring a bell to anyone?

Cheers,

Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com




More information about the Xenomai mailing list