fs/smb: Swing unicode common code from smb->NLS
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 17 Aug 2023 00:22:30 +0000 (01:22 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 30 Aug 2023 13:55:51 +0000 (08:55 -0500)
commit089f7f591348ca3325639f541fa4f78d9540dab5
treec93e2cbef2728217c8789dfbf4cc0acff58386f8
parent9e74938954749ecc3e0da63d0e211238ad4b2425
fs/smb: Swing unicode common code from smb->NLS

Swing most of the inline functions and unicode tables into nls
from the copy in smb/server.  This is UCS-2 rather than most
of the rest of the code in NLS, but it currently seems like the
best place for it.

The actual unicode.c implementations vary much more between server
and client so they're unmoved.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/nls/Kconfig
fs/nls/Makefile
fs/nls/nls_ucs2_utils.c [moved from fs/smb/server/uniupr.h with 91% similarity]
fs/nls/nls_ucs2_utils.h [new file with mode: 0644]
fs/smb/server/Kconfig
fs/smb/server/unicode.c
fs/smb/server/unicode.h