diff options
| author | Mark Brown <broonie@kernel.org> | 2026-07-06 15:09:13 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-06 15:09:13 +0100 |
| commit | f846843ca3daaddbdb297647cb3254d401d15ab9 (patch) | |
| tree | 8c49316052c38cdcc61fed6148d42818e3c88928 | |
| parent | 80ac7d2a3d96c2f2b6f7990eddf9d1dcfbdc79c9 (diff) | |
| parent | bcfee135d584714c2130031c7e28aafa91057b9a (diff) | |
| download | linux-next-f846843ca3daaddbdb297647cb3254d401d15ab9.tar.gz linux-next-f846843ca3daaddbdb297647cb3254d401d15ab9.zip | |
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode.git
| -rw-r--r-- | fs/unicode/utf8-core.c | 22 | ||||
| -rw-r--r-- | include/linux/unicode.h | 3 |
2 files changed, 0 insertions, 25 deletions
diff --git a/fs/unicode/utf8-core.c b/fs/unicode/utf8-core.c index 543c60c12461..8c4b8e27e956 100644 --- a/fs/unicode/utf8-core.c +++ b/fs/unicode/utf8-core.c @@ -138,28 +138,6 @@ int utf8_casefold_hash(const struct unicode_map *um, const void *salt, } EXPORT_SYMBOL(utf8_casefold_hash); -int utf8_normalize(const struct unicode_map *um, const struct qstr *str, - unsigned char *dest, size_t dlen) -{ - struct utf8cursor cur; - ssize_t nlen = 0; - - if (utf8ncursor(&cur, um, UTF8_NFDI, str->name, str->len) < 0) - return -EINVAL; - - for (nlen = 0; nlen < dlen; nlen++) { - int c = utf8byte(&cur); - - dest[nlen] = c; - if (!c) - return nlen; - if (c == -1) - break; - } - return -EINVAL; -} -EXPORT_SYMBOL(utf8_normalize); - static const struct utf8data *find_table_version(const struct utf8data *table, size_t nr_entries, unsigned int version) { diff --git a/include/linux/unicode.h b/include/linux/unicode.h index 5e6b212a2aed..64fa44fe180c 100644 --- a/include/linux/unicode.h +++ b/include/linux/unicode.h @@ -66,9 +66,6 @@ int utf8_strncasecmp_folded(const struct unicode_map *um, const struct qstr *cf, const struct qstr *s1); -int utf8_normalize(const struct unicode_map *um, const struct qstr *str, - unsigned char *dest, size_t dlen); - int utf8_casefold(const struct unicode_map *um, const struct qstr *str, unsigned char *dest, size_t dlen); |
