1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/x86/um/shared/sysdep
Jason A. Donenfeld 7ac73fbb54 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 <Jason@zx2c4.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2022-07-17 23:40:09 +02:00
..
archsetjmp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
archsetjmp_32.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
archsetjmp_64.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
faultinfo.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
faultinfo_32.h um: Remove SKAS3/4 support 2015-04-13 21:00:53 +02:00
faultinfo_64.h um: Remove SKAS3/4 support 2015-04-13 21:00:53 +02:00
kernel-offsets.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mcontext.h um: take arch/um/sys-x86 to arch/x86/um 2011-11-02 14:15:05 +01:00
ptrace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ptrace_32.h um: Remove update_debugregs() 2018-10-29 22:23:11 +01:00
ptrace_64.h um: add extended processor state save/restore support 2016-05-21 23:38:06 +02:00
ptrace_user.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stub.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stub_32.h um: fix stub location calculation 2021-08-26 22:28:03 +02:00
stub_64.h um: include linux/stddef.h for __always_inline 2022-07-17 23:40:09 +02:00
syscalls.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscalls_32.h sanitize rt_sigaction() situation a bit 2013-02-03 15:09:18 -05:00
syscalls_64.h um: Cleanup syscall_handler_t definition/cast, fix warning 2022-03-11 10:48:03 +01:00
tls.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00