lkml.org 
[lkml]   [2015]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH clk] sched: __pcpu_scope_sd_pack_buddy can be static
kernel/sched/fair.c:199:1: sparse: symbol '__pcpu_scope_sd_pack_buddy' was not declared. Should it be static?

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index d48d07c..7d8d5c4 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -196,7 +196,7 @@ struct sd_pack {
* Save per_cpu information about the optimal CPUs that should be used to pack
* tasks.
*/
-DEFINE_PER_CPU(struct sd_pack, sd_pack_buddy) = {
+static DEFINE_PER_CPU(struct sd_pack, sd_pack_buddy) = {
.packing = true,
};


\
 
 \ /
  Last update: 2015-01-24 04:01    [W:0.029 / U:1.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site