From 422cafbdc57894b4f54f6e35174a2748fed4ce9f Mon Sep 17 00:00:00 2001 From: Johnlay Park Date: Fri, 23 Mar 2018 16:44:04 +0900 Subject: [PATCH] [COMMON] sched: sysctl: match the variable type for fixing the build error on clang Change-Id: I396d4f622018fcf2bd601b7c8405640896943493 Signed-off-by: Johnlay Park --- include/linux/sched/sysctl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index e076ff8179b2..5736801c209b 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h @@ -46,9 +46,11 @@ extern unsigned int sysctl_numa_balancing_scan_period_max; extern unsigned int sysctl_numa_balancing_scan_size; #ifdef CONFIG_SCHED_DEBUG -extern unsigned int sysctl_sched_migration_cost; -extern unsigned int sysctl_sched_nr_migrate; -extern unsigned int sysctl_sched_time_avg; +# include + +extern __read_mostly unsigned int sysctl_sched_migration_cost; +extern __read_mostly unsigned int sysctl_sched_nr_migrate; +extern __read_mostly unsigned int sysctl_sched_time_avg; int sched_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, -- 2.20.1