Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1233688
| From | Geliang Tang <geliangtang@163.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] perf/core: nop_txn_flags should be static |
| Date | 2015-09-27 17:30 +0200 |
| Message-ID | <qdm3M-2EZ-23@gated-at.bofh.it> (permalink) |
| References | <qdm3M-2EZ-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
--
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 | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] perf/core: fix should it be static warnings Geliang Tang <geliangtang@163.com> - 2015-09-27 17:30 +0200 [PATCH 2/2] perf/core: nop_txn_flags should be static Geliang Tang <geliangtang@163.com> - 2015-09-27 17:30 +0200 [tip:perf/core] perf/core, perf/x86: Change needlessly global functions and a variable to static tip-bot for Geliang Tang <tipbot@zytor.com> - 2015-09-28 10:10 +0200
csiph-web