system/test-kernel [WIP 5.15]: error: unknown type name __always_inline
This is on x86_64 testing the new patches and kernel config.
In file included from /usr/include/linux/byteorder/little_endian.h:13,
from /usr/include/asm/byteorder.h:5,
from /root/packages/system/test-kernel/src/linux-5.15/tools/arch/x86/include/asm/insn.h:10,
from arch/x86/decode.c:10:
/usr/include/linux/swab.h:136:23: error: expected ‘;’ before ‘unsigned’
static __always_inline unsigned long __swab(const unsigned long y)
^~~~~~~~~
;
/usr/include/linux/swab.h:171:8: error: unknown type name ‘__always_inline’
static __always_inline __u16 __swab16p(const __u16 *p)
^~~~~~~~~~~~~~~
/usr/include/linux/swab.h:171:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__swab16p’
static __always_inline __u16 __swab16p(const __u16 *p)
^~~~~~~~~
/usr/include/linux/swab.h:184:8: error: unknown type name ‘__always_inline’
static __always_inline __u32 __swab32p(const __u32 *p)
^~~~~~~~~~~~~~~
/usr/include/linux/swab.h:184:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__swab32p’
static __always_inline __u32 __swab32p(const __u32 *p)
^~~~~~~~~
/usr/include/linux/swab.h:197:8: error: unknown type name ‘__always_inline’
static __always_inline __u64 __swab64p(const __u64 *p)
^~~~~~~~~~~~~~~
/usr/include/linux/swab.h:197:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__swab64p’
static __always_inline __u64 __swab64p(const __u64 *p)
^~~~~~~~~
/usr/include/linux/swab.h:252:23: error: expected ‘;’ before ‘void’
static __always_inline void __swab32s(__u32 *p)
^~~~~
;
/usr/include/linux/swab.h:265:23: error: expected ‘;’ before ‘void’
static __always_inline void __swab64s(__u64 *p)
^~~~~
;
We really need a linux-headers
package since headers are required to build, and the ones installed are old.