Messages in this thread Patch in this message | | | From | Geliang Tang <> | Subject | [PATCH 2/2] perf/core: nop_txn_flags should be static | Date | Sun, 27 Sep 2015 23:25:51 +0800 |
| |
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@163.com> --- 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
| |