sched: Add __ASSEMBLY__ guards around struct clone_args
PATCH 1/1 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 FTBFS for glibc on RISC-V. Add the guards to fix this.
--- include/uapi/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+)
include/uapi/linux/sched.h +2 -0
@@ -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
Signature · 1 line
2.20.1
Quoted 6 lines · Seth Forshee
The addition of struct
clone_argstouapi/linux/sched.his not protected by__ASSEMBLY__guards, causing a FTBFS for glibc on RISC-V. Add the guards to fix this.Fixes 7f192e3cd316 ("fork: add clone3")Signed-off-by Seth Forshee <[email protected]>
Applied to:
https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=fixes
Just replaced FTBS with "failure to build from source" since I had to search for this and also added Cc: <[email protected]> for 5.3.
Thanks!
Christian
Quoted 23 lines · Seth Forshee
The addition of struct
clone_argstouapi/linux/sched.his not protected by__ASSEMBLY__guards, causing a FTBFS for glibc on RISC-V. Add the guards to fix this.Fixes 7f192e3cd316 ("fork: add clone3")Signed-off-by Seth Forshee <[email protected]>--- include/uapi/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+)include/uapi/linux/sched.h +1
-0@@ -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 */
include/uapi/linux/sched.h struct clone_args { · line 50
Quoted 4 lines
include/uapi/linux/sched.h +1
-0@@ -46,6 +47,7 @@ struct clone_args {__aligned_u64 stack_size; __aligned_u64 tls; }; +#endif
Thanks,
Ingo