user_events: make data_file and status_file static
PATCH 1/1 user_events: make data_file and status_file static
Variables data_file and status_file are not used outside of example.c, so marks them static.
Signed-off-by sunliming <[email protected]>
--- samples/user_events/example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
samples/user_events/example.c +2 -2
@@ -15,8 +15,8 @@#include <linux/user_events.h> /* Assumes debugfs is mounted */ -const char *data_file ="/sys/kernel/debug/tracing/user_events_data" ; -const char *status_file ="/sys/kernel/debug/tracing/user_events_status" ; +static const char *data_file ="/sys/kernel/debug/tracing/user_events_data" ; +static const char *status_file ="/sys/kernel/debug/tracing/user_events_status" ;static int event_status (char **status) {
Signature · 1 line
2.25.1