Commit d37f1dea authored by Dmitry V. Levin's avatar Dmitry V. Levin Committed by Greg Kroah-Hartman

sched/headers/uapi: Fix linux/sched/types.h userspace compilation errors

commit 242fc352 upstream.

Consistently use types provided by <linux/types.h> to fix the following
linux/sched/types.h userspace compilation errors:

  /usr/include/linux/sched/types.h:57:2: error: unknown type name 'u32'
    u32 size;
  ...
  u64 sched_period;
Signed-off-by: default avatarDmitry V. Levin <ldv@altlinux.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: e2d1e2ae ("sched/headers: Move various ABI definitions to <uapi/linux/sched/types.h>")
Link: http://lkml.kernel.org/r/20170705162328.GA11026@altlinux.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24f40075
...@@ -54,21 +54,21 @@ struct sched_param { ...@@ -54,21 +54,21 @@ struct sched_param {
* available in the scheduling class file or in Documentation/. * available in the scheduling class file or in Documentation/.
*/ */
struct sched_attr { struct sched_attr {
u32 size; __u32 size;
u32 sched_policy; __u32 sched_policy;
u64 sched_flags; __u64 sched_flags;
/* SCHED_NORMAL, SCHED_BATCH */ /* SCHED_NORMAL, SCHED_BATCH */
s32 sched_nice; __s32 sched_nice;
/* SCHED_FIFO, SCHED_RR */ /* SCHED_FIFO, SCHED_RR */
u32 sched_priority; __u32 sched_priority;
/* SCHED_DEADLINE */ /* SCHED_DEADLINE */
u64 sched_runtime; __u64 sched_runtime;
u64 sched_deadline; __u64 sched_deadline;
u64 sched_period; __u64 sched_period;
}; };
#endif /* _UAPI_LINUX_SCHED_TYPES_H */ #endif /* _UAPI_LINUX_SCHED_TYPES_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment