diff options
| author | Dmitry V. Levin <ldv@altlinux.org> | 2017-07-05 12:23:28 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-07-08 05:17:55 -0400 |
| commit | 242fc35290bd8cf0effc6e3474e3a417985de2f3 (patch) | |
| tree | de6fed9ae06d700bef5edabe6d2182ba83fdf944 /include/uapi/linux | |
| parent | 65a4433aebe36c8c6abeb69b99ef00274b971c6c (diff) | |
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: e2d1e2aec572 ("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>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/sched/types.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/uapi/linux/sched/types.h b/include/uapi/linux/sched/types.h index 307acbc82d80..34b81aa1a2f7 100644 --- a/include/uapi/linux/sched/types.h +++ b/include/uapi/linux/sched/types.h | |||
| @@ -54,21 +54,21 @@ struct sched_param { | |||
| 54 | * available in the scheduling class file or in Documentation/. | 54 | * available in the scheduling class file or in Documentation/. |
| 55 | */ | 55 | */ |
| 56 | struct sched_attr { | 56 | struct sched_attr { |
| 57 | u32 size; | 57 | __u32 size; |
| 58 | 58 | ||
| 59 | u32 sched_policy; | 59 | __u32 sched_policy; |
| 60 | u64 sched_flags; | 60 | __u64 sched_flags; |
| 61 | 61 | ||
| 62 | /* SCHED_NORMAL, SCHED_BATCH */ | 62 | /* SCHED_NORMAL, SCHED_BATCH */ |
| 63 | s32 sched_nice; | 63 | __s32 sched_nice; |
| 64 | 64 | ||
| 65 | /* SCHED_FIFO, SCHED_RR */ | 65 | /* SCHED_FIFO, SCHED_RR */ |
| 66 | u32 sched_priority; | 66 | __u32 sched_priority; |
| 67 | 67 | ||
| 68 | /* SCHED_DEADLINE */ | 68 | /* SCHED_DEADLINE */ |
| 69 | u64 sched_runtime; | 69 | __u64 sched_runtime; |
| 70 | u64 sched_deadline; | 70 | __u64 sched_deadline; |
| 71 | u64 sched_period; | 71 | __u64 sched_period; |
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | #endif /* _UAPI_LINUX_SCHED_TYPES_H */ | 74 | #endif /* _UAPI_LINUX_SCHED_TYPES_H */ |
