hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
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 };