hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/fs/unicode/utf8-core.c
....@@ -138,7 +138,7 @@
138138
139139 while ((c = utf8byte(&cur))) {
140140 if (c < 0)
141
- return c;
141
+ return -EINVAL;
142142 hash = partial_name_hash((unsigned char)c, hash);
143143 }
144144 str->hash = end_name_hash(hash);
....@@ -175,7 +175,7 @@
175175 {
176176 substring_t args[3];
177177 char version_string[12];
178
- const struct match_token token[] = {
178
+ static const struct match_token token[] = {
179179 {1, "%d.%d.%d"},
180180 {0, NULL}
181181 };