diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2024-03-08 19:32:15 +0100 |
---|---|---|
committer | Gabriel Krisman Bertazi <krisman@suse.de> | 2024-06-21 01:28:05 +0200 |
commit | 7bd3d76a1f9fb38c8234cfadb7131e0b26deb919 (patch) | |
tree | 7ee37392b9cb3f73683f1df8a1425bbdaf2eed03 | |
parent | Linux 6.10-rc4 (diff) | |
download | linux-7bd3d76a1f9fb38c8234cfadb7131e0b26deb919.tar.xz linux-7bd3d76a1f9fb38c8234cfadb7131e0b26deb919.zip |
unicode: make utf8 test count static
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/unicode/utf8-selftest.c b/fs/unicode/utf8-selftest.c index eb2bbdd688d7..c928e6007356 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) |