diff options
author | Arnaldo Carvalho de Melo | 2017-06-16 17:18:27 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2017-06-19 20:27:06 +0200 |
commit | 0353631aa73e5e468fae1cd699bf860b59ba100d (patch) | |
tree | 8d09691b34da6d496c7a648aec19e5b1a4a6caca /tools/perf/jvmti/libjvmti.c | |
parent | tools: Adopt __scanf from kernel sources (diff) | |
download | kernel-qcow2-linux-0353631aa73e5e468fae1cd699bf860b59ba100d.tar.gz kernel-qcow2-linux-0353631aa73e5e468fae1cd699bf860b59ba100d.tar.xz kernel-qcow2-linux-0353631aa73e5e468fae1cd699bf860b59ba100d.zip |
perf tools: Use __maybe_unused consistently
Instead of defining __unused or redefining __maybe_unused.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-4eleto5pih31jw1q4dypm9pf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/jvmti/libjvmti.c')
-rw-r--r-- | tools/perf/jvmti/libjvmti.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/jvmti/libjvmti.c b/tools/perf/jvmti/libjvmti.c index 5612641c69b4..6d710904c837 100644 --- a/tools/perf/jvmti/libjvmti.c +++ b/tools/perf/jvmti/libjvmti.c @@ -1,3 +1,4 @@ +#include <linux/compiler.h> #include <sys/types.h> #include <stdio.h> #include <string.h> @@ -238,7 +239,7 @@ code_generated_cb(jvmtiEnv *jvmti, } JNIEXPORT jint JNICALL -Agent_OnLoad(JavaVM *jvm, char *options, void *reserved __unused) +Agent_OnLoad(JavaVM *jvm, char *options, void *reserved __maybe_unused) { jvmtiEventCallbacks cb; jvmtiCapabilities caps1; @@ -313,7 +314,7 @@ Agent_OnLoad(JavaVM *jvm, char *options, void *reserved __unused) } JNIEXPORT void JNICALL -Agent_OnUnload(JavaVM *jvm __unused) +Agent_OnUnload(JavaVM *jvm __maybe_unused) { int ret; |