Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbdHAUtQ (ORCPT ); Tue, 1 Aug 2017 16:49:16 -0400 Received: from terminus.zytor.com ([65.50.211.136]:52151 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752408AbdHAUtP (ORCPT ); Tue, 1 Aug 2017 16:49:15 -0400 Date: Tue, 1 Aug 2017 13:48:06 -0700 From: tip-bot for Reinette Chatre Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, reinette.chatre@intel.com, linux-kernel@vger.kernel.org, vikas.shivappa@linux.intel.com, mingo@kernel.org Reply-To: mingo@kernel.org, vikas.shivappa@linux.intel.com, reinette.chatre@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de In-Reply-To: <1501017287-28083-6-git-send-email-vikas.shivappa@linux.intel.com> References: <1501017287-28083-6-git-send-email-vikas.shivappa@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Mark rdt_root and closid_alloc as static Git-Commit-ID: cb2200e967c65519ca6c5426644a49dca65f6294 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1638 Lines: 52 Commit-ID: cb2200e967c65519ca6c5426644a49dca65f6294 Gitweb: http://git.kernel.org/tip/cb2200e967c65519ca6c5426644a49dca65f6294 Author: Reinette Chatre AuthorDate: Tue, 25 Jul 2017 14:14:24 -0700 Committer: Thomas Gleixner 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 Signed-off-by: Vikas Shivappa Signed-off-by: Thomas Gleixner 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 --- 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);