* [PATCH] libtracefs: Do not use "or" as function parameter name
@ 2021-07-27 13:50 Yordan Karadzhov (VMware)
0 siblings, 0 replies; only message in thread
From: Yordan Karadzhov (VMware) @ 2021-07-27 13:50 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Yordan Karadzhov (VMware)
"or" is a keyword in C++. Using it as a function argument name in
the public header of the library makes it impossible to include
this header from C++ code.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
Hi Steven,
This patch is optional. Us it only if it makes sense to you.
Note that this fix is not needed by KernelShark.
Thanks,
Yordan
include/tracefs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/tracefs.h b/include/tracefs.h
index 9cfd257..877e03a 100644
--- a/include/tracefs.h
+++ b/include/tracefs.h
@@ -355,12 +355,12 @@ int tracefs_synth_add_start_filter(struct tracefs_synth *synth,
const char *field,
enum tracefs_synth_compare compare,
const char *val,
- bool neg, bool or);
+ bool neg, bool do_OR);
int tracefs_synth_add_end_filter(struct tracefs_synth *synth,
const char *field,
enum tracefs_synth_compare compare,
const char *val,
- bool neg, bool or);
+ bool neg, bool do_OR);
int tracefs_synth_create(struct tracefs_instance *instance,
struct tracefs_synth *synth);
int tracefs_synth_destroy(struct tracefs_instance *instance,
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-27 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 13:50 [PATCH] libtracefs: Do not use "or" as function parameter name Yordan Karadzhov (VMware)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).