Skip to content

Commit 61129dd

Browse files
Seth ForsheeChristian Brauner
authored andcommitted
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: 7f192e3 ("fork: add clone3") Signed-off-by: Seth Forshee <[email protected]> Cc: <[email protected]> Acked-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 54ecb8f commit 61129dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/sched.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#define CLONE_NEWNET 0x40000000 /* New network namespace */
3434
#define CLONE_IO 0x80000000 /* Clone io context */
3535

36+
#ifndef __ASSEMBLY__
3637
/*
3738
* Arguments for the clone3 syscall
3839
*/
@@ -46,6 +47,7 @@ struct clone_args {
4647
__aligned_u64 stack_size;
4748
__aligned_u64 tls;
4849
};
50+
#endif
4951

5052
/*
5153
* Scheduling policies

0 commit comments

Comments
 (0)