Re: [PATCH v3 4/9] unicode: Export latest available UTF-8 version number

From: Gabriel Krisman Bertazi
Date: Thu Sep 05 2024 - 15:58:12 EST


André Almeida <andrealmeid@xxxxxxxxxx> writes:

> Export latest available UTF-8 version number so filesystems can easily
> load the newest one.
>
> Signed-off-by: André Almeida <andrealmeid@xxxxxxxxxx>
> ---
>
> If this is the accepted way of doing that, I will also add something to
> checkpatch to warn that modifications at fs/unicode/utf8data.c likely
> need to change this define.

I'd do it by special casing version == 0 or -1 to utf8_load. But the
way you've done is just fine.

Acked-by: Gabriel Krisman Bertazi <krisman@xxxxxxx>

--
Gabriel Krisman Bertazi