From 8feb03eb2155b5f86a40bac461098f6c77b5e3e1 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 30 Jun 2025 17:51:38 +0300 Subject: [PATCH] sched/headers: Move 'struct sched_param' out of uapi, to work around glibc/musl breakage --- 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 9fb6635f0bcd..ee54107144dd 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} */