OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b5e385
)
libbpf: Simplify barrier_var()
author
Ilya Leoshkevich
<iii@linux.ibm.com>
Sat, 28 Jan 2023 00:06:40 +0000
(
01:06
+0100)
committer
Alexei Starovoitov
<ast@kernel.org>
Sat, 28 Jan 2023 20:45:14 +0000
(12:45 -0800)
Use a single "+r" constraint instead of the separate "=r" and "0".
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link:
https://lore.kernel.org/r/20230128000650.1516334-22-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/bpf_helpers.h
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/bpf_helpers.h
b/tools/lib/bpf/bpf_helpers.h
index
d37c4fe
..
5ec1871
100644
(file)
--- a/
tools/lib/bpf/bpf_helpers.h
+++ b/
tools/lib/bpf/bpf_helpers.h
@@
-109,7
+109,7
@@
* This is a variable-specific variant of more global barrier().
*/
#ifndef barrier_var
-#define barrier_var(var) asm volatile("" : "
=r"(var) : "0
"(var))
+#define barrier_var(var) asm volatile("" : "
+r
"(var))
#endif
/*