Skip to content

Commit

Permalink
sched/headers/uapi: Fix linux/sched/types.h userspace compilation errors
Browse files Browse the repository at this point in the history
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]>
Cc: [email protected] # v4.12
Fixes: e2d1e2a ("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]>
  • Loading branch information
ldv-alt authored and Ingo Molnar committed Jul 8, 2017
1 parent 65a4433 commit 242fc35
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/uapi/linux/sched/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 242fc35

Please sign in to comment.