All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] uapi: fix linux/sched/types.h userspace compilation errors
@ 2017-07-05 16:23 Dmitry V. Levin
  2017-07-08 11:11 ` [tip:sched/urgent] sched/headers/uapi: Fix " tip-bot for Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2017-07-05 16:23 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel

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;
/usr/include/linux/sched/types.h:59:2: error: unknown type name 'u32'
  u32 sched_policy;
/usr/include/linux/sched/types.h:60:2: error: unknown type name 'u64'
  u64 sched_flags;
/usr/include/linux/sched/types.h:63:2: error: unknown type name 's32'
  s32 sched_nice;
/usr/include/linux/sched/types.h:66:2: error: unknown type name 'u32'
  u32 sched_priority;
/usr/include/linux/sched/types.h:69:2: error: unknown type name 'u64'
  u64 sched_runtime;
/usr/include/linux/sched/types.h:70:2: error: unknown type name 'u64'
  u64 sched_deadline;
/usr/include/linux/sched/types.h:71:2: error: unknown type name 'u64'
  u64 sched_period;

Fixes: e2d1e2aec572 ("sched/headers: Move various ABI definitions to <uapi/linux/sched/types.h>")
Cc: stable@vger.kernel.org # v4.12
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 include/uapi/linux/sched/types.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/uapi/linux/sched/types.h b/include/uapi/linux/sched/types.h
index 307acbc..34b81aa 100644
--- 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 */

-- 
ldv

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:sched/urgent] sched/headers/uapi: Fix linux/sched/types.h userspace compilation errors
  2017-07-05 16:23 [PATCH] uapi: fix linux/sched/types.h userspace compilation errors Dmitry V. Levin
@ 2017-07-08 11:11 ` tip-bot for Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Dmitry V. Levin @ 2017-07-08 11:11 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: tglx, linux-kernel, mingo, torvalds, ldv, hpa, peterz

Commit-ID:  242fc35290bd8cf0effc6e3474e3a417985de2f3
Gitweb:     http://git.kernel.org/tip/242fc35290bd8cf0effc6e3474e3a417985de2f3
Author:     Dmitry V. Levin <ldv@altlinux.org>
AuthorDate: Wed, 5 Jul 2017 19:23:28 +0300
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Sat, 8 Jul 2017 11:17:55 +0200

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>
---
 include/uapi/linux/sched/types.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/uapi/linux/sched/types.h b/include/uapi/linux/sched/types.h
index 307acbc..34b81aa 100644
--- 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 */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-08 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-05 16:23 [PATCH] uapi: fix linux/sched/types.h userspace compilation errors Dmitry V. Levin
2017-07-08 11:11 ` [tip:sched/urgent] sched/headers/uapi: Fix " tip-bot for Dmitry V. Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.