Skip to content

Commit 242fc35

Browse files
ldv-altingomolnar
authored andcommitted
sched/headers/uapi: Fix linux/sched/types.h userspace compilation errors
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 <ldv@altlinux.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org # v4.12 Fixes: e2d1e2a ("sched/headers: Move various ABI definitions to <uapi/linux/sched/types.h>") Link: http://lkml.kernel.org/r/20170705162328.GA11026@altlinux.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 65a4433 commit 242fc35

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎include/uapi/linux/sched/types.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ struct sched_param {
5454
* available in the scheduling class file or in Documentation/.
5555
*/
5656
struct sched_attr {
57-
u32 size;
57+
__u32 size;
5858

59-
u32 sched_policy;
60-
u64 sched_flags;
59+
__u32 sched_policy;
60+
__u64 sched_flags;
6161

6262
/* SCHED_NORMAL, SCHED_BATCH */
63-
s32 sched_nice;
63+
__s32 sched_nice;
6464

6565
/* SCHED_FIFO, SCHED_RR */
66-
u32 sched_priority;
66+
__u32 sched_priority;
6767

6868
/* SCHED_DEADLINE */
69-
u64 sched_runtime;
70-
u64 sched_deadline;
71-
u64 sched_period;
69+
__u64 sched_runtime;
70+
__u64 sched_deadline;
71+
__u64 sched_period;
7272
};
7373

7474
#endif /* _UAPI_LINUX_SCHED_TYPES_H */

0 commit comments

Comments
 (0)