Skip to content

Commit 7ac73fb

Browse files
zx2c4richardweinberger
authored andcommitted
um: include linux/stddef.h for __always_inline
When compiling against musl, their shipped <stddef.h> doesn't have __always_inline. So instead explicitly include the kernel uapi header, <linux/stddef.h>, which does. This prevents the following build error: In file included from arch/x86/um/shared/sysdep/stub.h:11, from arch/um/kernel/skas/clone.c:14: arch/x86/um/shared/sysdep/stub_64.h:111:23: error: expected ‘;’ before ‘void’ 111 | static __always_inline void *get_stub_page(void) | ^~~~~ | ; make[4]: *** [scripts/Makefile.build:249: arch/um/kernel/skas/clone.o] Error 1 Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 5b30140 commit 7ac73fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/um/shared/sysdep/stub_64.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <sysdep/ptrace_user.h>
1010
#include <generated/asm-offsets.h>
11+
#include <linux/stddef.h>
1112

1213
#define STUB_MMAP_NR __NR_mmap
1314
#define MMAP_OFFSET(o) (o)

0 commit comments

Comments
 (0)