Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

unicode: Export latest available UTF-8 version number

Export latest available UTF-8 version number so filesystems can easily
load the newest one.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Link: https://lore.kernel.org/r/20241021-tonyk-tmpfs-v8-3-f443d5814194@igalia.com
Acked-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

André Almeida and committed by
Christian Brauner
04dad6c6 3f5ad0d2

+2 -3
-3
fs/unicode/utf8-selftest.c
··· 17 17 static unsigned int failed_tests; 18 18 static unsigned int total_tests; 19 19 20 - /* Tests will be based on this version. */ 21 - #define UTF8_LATEST UNICODE_AGE(12, 1, 0) 22 - 23 20 #define _test(cond, func, line, fmt, ...) do { \ 24 21 total_tests++; \ 25 22 if (!cond) { \
+2
include/linux/unicode.h
··· 16 16 ((unsigned int)(MIN) << UNICODE_MIN_SHIFT) | \ 17 17 ((unsigned int)(REV))) 18 18 19 + #define UTF8_LATEST UNICODE_AGE(12, 1, 0) 20 + 19 21 static inline u8 unicode_major(unsigned int age) 20 22 { 21 23 return (age >> UNICODE_MAJ_SHIFT) & 0xff;