From: Seth Forshee Date: Tue, 17 Sep 2019 07:18:53 +0000 (+0200) Subject: sched: Add __ASSEMBLY__ guards around struct clone_args X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=61129dd29f7962f278b618a2a3e8fdb986a66dc8;p=linux.git sched: Add __ASSEMBLY__ guards around struct clone_args The addition of struct clone_args to uapi/linux/sched.h is not protected by __ASSEMBLY__ guards, causing a failure to build from source for glibc on RISC-V. Add the guards to fix this. Fixes: 7f192e3cd316 ("fork: add clone3") Signed-off-by: Seth Forshee Cc: Acked-by: Ingo Molnar Link: https://lore.kernel.org/r/20190917071853.12385-1-seth.forshee@canonical.com Signed-off-by: Christian Brauner --- diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h index b3105ac1381a8..851ff1feadd55 100644 --- a/include/uapi/linux/sched.h +++ b/include/uapi/linux/sched.h @@ -33,6 +33,7 @@ #define CLONE_NEWNET 0x40000000 /* New network namespace */ #define CLONE_IO 0x80000000 /* Clone io context */ +#ifndef __ASSEMBLY__ /* * Arguments for the clone3 syscall */ @@ -46,6 +47,7 @@ struct clone_args { __aligned_u64 stack_size; __aligned_u64 tls; }; +#endif /* * Scheduling policies