Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1205086

[PATCH xen-tip] xen/PMU: pmu_modes[] can be static

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject [PATCH xen-tip] xen/PMU: pmu_modes[] can be static
Date 2015-08-11 14:00 +0200
Message-ID <pWgnM-4co-11@gated-at.bofh.it> (permalink)
References <pWgnM-4co-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 sys-hypervisor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c
index 0907275..b5a7342 100644
--- a/drivers/xen/sys-hypervisor.c
+++ b/drivers/xen/sys-hypervisor.c
@@ -377,7 +377,7 @@ struct pmu_mode {
 	uint32_t mode;
 };
 
-struct pmu_mode pmu_modes[] = {
+static struct pmu_mode pmu_modes[] = {
 	{"off", XENPMU_MODE_OFF},
 	{"self", XENPMU_MODE_SELF},
 	{"hv", XENPMU_MODE_HV},
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[xen-tip:linux-next 18/23] drivers/xen/sys-hypervisor.c:380:17:  sparse: symbol 'pmu_modes' was not declared. Should it be static? kbuild test robot <fengguang.wu@intel.com> - 2015-08-11 14:00 +0200
  [PATCH xen-tip] xen/PMU: pmu_modes[] can be static kbuild test robot <fengguang.wu@intel.com> - 2015-08-11 14:00 +0200

csiph-web