aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Forshee <[email protected]>2019-09-17 09:18:53 +0200
committerChristian Brauner <[email protected]>2019-09-30 22:32:52 +0200
commit61129dd29f7962f278b618a2a3e8fdb986a66dc8 (patch)
tree7818d16df95dd778702b97e1e3d65a4bd6e96c33
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff)
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 <[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]>
-rw-r--r--include/uapi/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h
index b3105ac1381a..851ff1feadd5 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