From 43116d6e3bfb00a95e8906d1cfbea8180c89c417 Mon Sep 17 00:00:00 2001 From: Richard Carvalho Date: Thu, 24 Jul 2025 20:37:06 -0300 Subject: [PATCH] sched/headers: Move 'struct sched_param' out of uapi, to work around glibc/musl breakage Change-Id: I3943f8f4a11a9007ccc392de3ece9e62841e8fcb --- include/linux/sched.h | 5 ++++- include/uapi/linux/sched/types.h | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index bf634ca21017..3e53235d701d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -56,7 +56,6 @@ struct robust_list_head; struct root_domain; struct rq; struct sched_attr; -struct sched_param; struct seq_file; struct sighand_struct; struct signal_struct; @@ -328,6 +327,10 @@ extern struct root_domain def_root_domain; extern struct mutex sched_domains_mutex; #endif +struct sched_param { + int sched_priority; +}; + struct sched_info { #ifdef CONFIG_SCHED_INFO /* Cumulative counters: */ diff --git a/include/uapi/linux/sched/types.h b/include/uapi/linux/sched/types.h index c852153ddb0d..f863e747ff5f 100644 --- a/include/uapi/linux/sched/types.h +++ b/include/uapi/linux/sched/types.h @@ -4,10 +4,6 @@ #include -struct sched_param { - int sched_priority; -}; - #define SCHED_ATTR_SIZE_VER0 48 /* sizeof first published struct */ #define SCHED_ATTR_SIZE_VER1 56 /* add: util_{min,max} */