4.12-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Dmitry V. Levin <[email protected]>

commit 242fc35290bd8cf0effc6e3474e3a417985de2f3 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: Dmitry V. Levin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Fixes: e2d1e2aec572 ("sched/headers: Move various ABI definitions to 
<uapi/linux/sched/types.h>")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 include/uapi/linux/sched/types.h |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

--- a/include/uapi/linux/sched/types.h
+++ b/include/uapi/linux/sched/types.h
@@ -54,21 +54,21 @@ struct sched_param {
  * available in the scheduling class file or in Documentation/.
  */
 struct sched_attr {
-       u32 size;
+       __u32 size;
 
-       u32 sched_policy;
-       u64 sched_flags;
+       __u32 sched_policy;
+       __u64 sched_flags;
 
        /* SCHED_NORMAL, SCHED_BATCH */
-       s32 sched_nice;
+       __s32 sched_nice;
 
        /* SCHED_FIFO, SCHED_RR */
-       u32 sched_priority;
+       __u32 sched_priority;
 
        /* SCHED_DEADLINE */
-       u64 sched_runtime;
-       u64 sched_deadline;
-       u64 sched_period;
+       __u64 sched_runtime;
+       __u64 sched_deadline;
+       __u64 sched_period;
 };
 
 #endif /* _UAPI_LINUX_SCHED_TYPES_H */


Reply via email to