forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 890e1df1bec891d9203724541e81f8fbe5183388
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 };