From 093a6c67005148ae32a5c9e4553491b9f5c2457b Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:40:51 +0000
Subject: [PATCH] disable kernel build waring

---
 kernel/fs/unicode/utf8-core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/fs/unicode/utf8-core.c b/kernel/fs/unicode/utf8-core.c
index d18789f..dc25823 100644
--- a/kernel/fs/unicode/utf8-core.c
+++ b/kernel/fs/unicode/utf8-core.c
@@ -138,7 +138,7 @@
 
 	while ((c = utf8byte(&cur))) {
 		if (c < 0)
-			return c;
+			return -EINVAL;
 		hash = partial_name_hash((unsigned char)c, hash);
 	}
 	str->hash = end_name_hash(hash);
@@ -175,7 +175,7 @@
 {
 	substring_t args[3];
 	char version_string[12];
-	const struct match_token token[] = {
+	static const struct match_token token[] = {
 		{1, "%d.%d.%d"},
 		{0, NULL}
 	};

--
Gitblit v1.6.2