aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinette Chatre <[email protected]>2017-07-25 14:14:24 -0700
committerThomas Gleixner <[email protected]>2017-08-01 22:41:20 +0200
commitcb2200e967c65519ca6c5426644a49dca65f6294 (patch)
tree64ba50ece14e2f1d65e26223aa8ec8d57d4eb23e
parent0583020456cea9fcf43b84bb13a41eab059ae0a8 (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 <[email protected]> Signed-off-by: Vikas Shivappa <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected]
-rw-r--r--arch/x86/kernel/cpu/intel_rdt_rdtgroup.c4
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 @@
#include "intel_rdt.h"
DEFINE_STATIC_KEY_FALSE(rdt_enable_key);
-struct kernfs_root *rdt_root;
+static struct kernfs_root *rdt_root;
struct rdtgroup rdtgroup_default;
LIST_HEAD(rdt_all_groups);
@@ -75,7 +75,7 @@ static void closid_init(void)
closid_free_map &= ~1;
}
-int closid_alloc(void)
+static int closid_alloc(void)
{
int closid = ffs(closid_free_map);