aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2024-03-08 18:32:15 +0000
committerGabriel Krisman Bertazi <krisman@suse.de>2024-03-08 14:01:32 -0500
commit0131c1f3cce7c01b0eb657a9e9e1a5e42c09a68b (patch)
treed11b1953db40fd409fc3e98050aa6f4e7d0e3037
parent101c3fad29d7a0a90ff063b1aad586a0211911ec (diff)
downloadunicode-for-next.tar.gz
unicode: make utf8 test count staticfor-next
The variables failed_tests and total_tests are not used outside of the utf8-selftest.c file so make them static to avoid the following warnings: fs/unicode/utf8-selftest.c:17:14: warning: symbol 'failed_tests' was not declared. Should it be static? fs/unicode/utf8-selftest.c:18:14: warning: symbol 'total_tests' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Link: https://lore.kernel.org/r/20240308183215.1924331-1-ben.dooks@codethink.co.uk Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
-rw-r--r--fs/unicode/utf8-selftest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/unicode/utf8-selftest.c b/fs/unicode/utf8-selftest.c
index eb2bbdd688d71..c928e6007356d 100644
--- a/fs/unicode/utf8-selftest.c
+++ b/fs/unicode/utf8-selftest.c
@@ -14,8 +14,8 @@
#include "utf8n.h"
-unsigned int failed_tests;
-unsigned int total_tests;
+static unsigned int failed_tests;
+static unsigned int total_tests;
/* Tests will be based on this version. */
#define UTF8_LATEST UNICODE_AGE(12, 1, 0)