[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-cb2200e967c65519ca6c5426644a49dca65f6294@git.kernel.org>
Date: Tue, 1 Aug 2017 13:48:06 -0700
From: tip-bot for Reinette Chatre <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hpa@...or.com, tglx@...utronix.de, reinette.chatre@...el.com,
linux-kernel@...r.kernel.org, vikas.shivappa@...ux.intel.com,
mingo@...nel.org
Subject: [tip:x86/cache] x86/intel_rdt: Mark rdt_root and closid_alloc as
static
Commit-ID: cb2200e967c65519ca6c5426644a49dca65f6294
Gitweb: http://git.kernel.org/tip/cb2200e967c65519ca6c5426644a49dca65f6294
Author: Reinette Chatre <reinette.chatre@...el.com>
AuthorDate: Tue, 25 Jul 2017 14:14:24 -0700
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Tue, 1 Aug 2017 22:41:20 +0200
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@...el.com>
Signed-off-by: Vikas Shivappa <vikas.shivappa@...ux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: ravi.v.shankar@...el.com
Cc: tony.luck@...el.com
Cc: fenghua.yu@...el.com
Cc: peterz@...radead.org
Cc: eranian@...gle.com
Cc: vikas.shivappa@...el.com
Cc: ak@...ux.intel.com
Cc: davidcc@...gle.com
Link: http://lkml.kernel.org/r/1501017287-28083-6-git-send-email-vikas.shivappa@linux.intel.com
---
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 4 ++--
1 file 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 fab8811..3273e88 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);
Powered by blists - more mailing lists