提交 cb2200e9 编写于 作者: R Reinette Chatre 提交者: Thomas Gleixner

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: NReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: NVikas Shivappa <vikas.shivappa@linux.intel.com>
Signed-off-by: NThomas 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
上级 05830204
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册