[PATCH 2/2] perf/core: nop_txn_flags should be static

From: Geliang Tang
Date: Sun Sep 27 2015 - 11:27:29 EST


Fixes the following sparse warning:

kernel/events/core.c:7393:1: warning: symbol 'nop_txn_flags' was not
declared. Should it be static?

Signed-off-by: Geliang Tang <geliangtang@xxxxxxx>
---
kernel/events/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index f88e4ad..ea02109 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -7390,7 +7390,7 @@ static int perf_pmu_nop_int(struct pmu *pmu)
return 0;
}

-DEFINE_PER_CPU(unsigned int, nop_txn_flags);
+static DEFINE_PER_CPU(unsigned int, nop_txn_flags);

static void perf_pmu_start_txn(struct pmu *pmu, unsigned int flags)
{
--
2.5.0


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/