unicode: mark the version field in struct unicode_map unsigned
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Sep 2021 06:59:59 +0000 (08:59 +0200)
committerGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 11 Oct 2021 20:01:40 +0000 (17:01 -0300)
unicode version tripplets are always unsigned.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
include/linux/unicode.h

index 6a392cd9f076d46f810d57a7111c6a80514a7044..0744f81c4b5fc264dc99e9736ce75a930af5e912 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/dcache.h>
 
 struct unicode_map {
-       int version;
+       unsigned int version;
 };
 
 int utf8_validate(const struct unicode_map *um, const struct qstr *str);