projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf tools: Use __maybe_used for unused variables
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
tools
/
perf
/
util
/
include
/
linux
/
compiler.h
diff --git
a/tools/perf/util/include/linux/compiler.h
b/tools/perf/util/include/linux/compiler.h
index ce2367b7b3f6e72ec8260f795a72290b5117b2f7..96b919dae11c27bbbae7e14f1c6eb7cb0cd91a89 100644
(file)
--- a/
tools/perf/util/include/linux/compiler.h
+++ b/
tools/perf/util/include/linux/compiler.h
@@
-9,7
+9,9
@@
#define __attribute_const__
#endif
-#define __used __attribute__((__unused__))
+#ifndef __maybe_unused
+#define __maybe_unused __attribute__((unused))
+#endif
#define __packed __attribute__((__packed__))
#ifndef __force