[LTP] [PATCH 2/4] lib: tst_device: Make find_stat_file() static

Cyril Hrubis chrubis@suse.cz
Tue Mar 28 15:19:33 CEST 2023


tst_device.c:486:5: warning: LTP-003: Symbol 'find_stat_file' is a public library function, but is missing the 'tst_' prefix

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 lib/tst_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tst_device.c b/lib/tst_device.c
index 0cdd8985e..1f5a95eb9 100644
--- a/lib/tst_device.c
+++ b/lib/tst_device.c
@@ -483,7 +483,7 @@ int tst_is_mounted_at_tmpdir(const char *path)
 	return tst_is_mounted(mpath);
 }
 
-int find_stat_file(const char *dev, char *path, size_t path_len)
+static int find_stat_file(const char *dev, char *path, size_t path_len)
 {
 	const char *devname = strrchr(dev, '/') + 1;
 
-- 
2.39.2



More information about the ltp mailing list