lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220715085015.248932-1-sunliming@kylinos.cn>
Date:   Fri, 15 Jul 2022 16:50:15 +0800
From:   sunliming <sunliming@...inos.cn>
To:     rostedt@...dmis.org, mhiramat@...nel.org, beaub@...ux.microsoft.com
Cc:     linux-kernel@...r.kernel.org, kelulanainsley@...il.com,
        sunliming <sunliming@...inos.cn>
Subject: [PATCH] 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 <sunliming@...inos.cn>
---
 samples/user_events/example.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/samples/user_events/example.c b/samples/user_events/example.c
index 4f5778e441c0..13b514bc03e9 100644
--- a/samples/user_events/example.c
+++ b/samples/user_events/example.c
@@ -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)
 {
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ