diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2017-07-25 17:14:24 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-08-01 16:41:20 -0400 |
commit | cb2200e967c65519ca6c5426644a49dca65f6294 (patch) | |
tree | 64ba50ece14e2f1d65e26223aa8ec8d57d4eb23e | |
parent | 0583020456cea9fcf43b84bb13a41eab059ae0a8 (diff) |
x86/intel_rdt: Mark rdt_root and closid_alloc as static
Sparse reports that both of these can be static.
Make it so.
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: ravi.v.shankar@intel.com
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
Cc: peterz@infradead.org
Cc: eranian@google.com
Cc: vikas.shivappa@intel.com
Cc: ak@linux.intel.com
Cc: davidcc@google.com
Link: http://lkml.kernel.org/r/1501017287-28083-6-git-send-email-vikas.shivappa@linux.intel.com
-rw-r--r-- | arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index fab88117ae5f..3273e88ab29d 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "intel_rdt.h" | 36 | #include "intel_rdt.h" |
37 | 37 | ||
38 | DEFINE_STATIC_KEY_FALSE(rdt_enable_key); | 38 | DEFINE_STATIC_KEY_FALSE(rdt_enable_key); |
39 | struct kernfs_root *rdt_root; | 39 | static struct kernfs_root *rdt_root; |
40 | struct rdtgroup rdtgroup_default; | 40 | struct rdtgroup rdtgroup_default; |
41 | LIST_HEAD(rdt_all_groups); | 41 | LIST_HEAD(rdt_all_groups); |
42 | 42 | ||
@@ -75,7 +75,7 @@ static void closid_init(void) | |||
75 | closid_free_map &= ~1; | 75 | closid_free_map &= ~1; |
76 | } | 76 | } |
77 | 77 | ||
78 | int closid_alloc(void) | 78 | static int closid_alloc(void) |
79 | { | 79 | { |
80 | int closid = ffs(closid_free_map); | 80 | int closid = ffs(closid_free_map); |
81 | 81 | ||