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;
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -54,21 +54,21 @@ struct sched_param { · 53 unmodified lines | ||
| 54 | 54 | * available in the scheduling class file or in Documentation/. |
| 55 | 55 | */ |
| 56 | 56 | struct sched_attr { |
| 57 | − u32 size; | |
| 57 | + __u32 size; | |
| 58 | 58 | |
| 59 | − u32 sched_policy; | |
| 60 | − u64 sched_flags; | |
| 59 | + __u32 sched_policy; | |
| 60 | + __u64 sched_flags; | |
| 61 | 61 | |
| 62 | 62 | /* SCHED_NORMAL, SCHED_BATCH */ |
| 63 | − s32 sched_nice; | |
| 63 | + __s32 sched_nice; | |
| 64 | 64 | |
| 65 | 65 | /* SCHED_FIFO, SCHED_RR */ |
| 66 | − u32 sched_priority; | |
| 66 | + __u32 sched_priority; | |
| 67 | 67 | |
| 68 | 68 | /* 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; | |
| 72 | 72 | }; |
| 73 | 73 | |
| 74 | 74 | #endif /* _UAPI_LINUX_SCHED_TYPES_H */ |