diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2021-09-22 11:57:35 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-05 16:52:07 +0300 |
commit | d07b2eee4501c393cbf5bfcad36143310cfd72f9 (patch) | |
tree | 9ba56021193d470bfd73e9b87d0b0f16897ad2be /kernel/sched/core_sched.c | |
parent | 4006a72bdd93b1ffedc2bd8646dee18c822a2c26 (diff) | |
download | linux-d07b2eee4501c393cbf5bfcad36143310cfd72f9.tar.xz |
sched: Make cookie functions static
Make cookie functions static as these are no longer invoked directly
by other code.
No functional change intended.
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210922085735.52812-1-zhangshaokun@hisilicon.com
Diffstat (limited to 'kernel/sched/core_sched.c')
-rw-r--r-- | kernel/sched/core_sched.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/sched/core_sched.c b/kernel/sched/core_sched.c index 9a80e9a474c0..48ac72696012 100644 --- a/kernel/sched/core_sched.c +++ b/kernel/sched/core_sched.c @@ -11,7 +11,7 @@ struct sched_core_cookie { refcount_t refcnt; }; -unsigned long sched_core_alloc_cookie(void) +static unsigned long sched_core_alloc_cookie(void) { struct sched_core_cookie *ck = kmalloc(sizeof(*ck), GFP_KERNEL); if (!ck) @@ -23,7 +23,7 @@ unsigned long sched_core_alloc_cookie(void) return (unsigned long)ck; } -void sched_core_put_cookie(unsigned long cookie) +static void sched_core_put_cookie(unsigned long cookie) { struct sched_core_cookie *ptr = (void *)cookie; @@ -33,7 +33,7 @@ void sched_core_put_cookie(unsigned long cookie) } } -unsigned long sched_core_get_cookie(unsigned long cookie) +static unsigned long sched_core_get_cookie(unsigned long cookie) { struct sched_core_cookie *ptr = (void *)cookie; @@ -53,7 +53,8 @@ unsigned long sched_core_get_cookie(unsigned long cookie) * * Returns: the old cookie */ -unsigned long sched_core_update_cookie(struct task_struct *p, unsigned long cookie) +static unsigned long sched_core_update_cookie(struct task_struct *p, + unsigned long cookie) { unsigned long old_cookie; struct rq_flags rf; |