Skip to content

Commit 04dad6c

Browse files
andrealmeidbrauner
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Gabriel Krisman Bertazi <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 3f5ad0d commit 04dad6c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fs/unicode/utf8-selftest.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
static unsigned int failed_tests;
1818
static unsigned int total_tests;
1919

20-
/* Tests will be based on this version. */
21-
#define UTF8_LATEST UNICODE_AGE(12, 1, 0)
22-
2320
#define _test(cond, func, line, fmt, ...) do { \
2421
total_tests++; \
2522
if (!cond) { \

include/linux/unicode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ struct utf8data_table;
1616
((unsigned int)(MIN) << UNICODE_MIN_SHIFT) | \
1717
((unsigned int)(REV)))
1818

19+
#define UTF8_LATEST UNICODE_AGE(12, 1, 0)
20+
1921
static inline u8 unicode_major(unsigned int age)
2022
{
2123
return (age >> UNICODE_MAJ_SHIFT) & 0xff;

0 commit comments

Comments
 (0)