|
Kmods SIG |
9e3ffb |
From 6778337a7a4e51ec9fa4a76846d34e8a66ca6418 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
9e3ffb |
From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali@kernel.org>
|
|
Kmods SIG |
9e3ffb |
Date: Tue, 17 Mar 2020 23:25:54 +0100
|
|
Kmods SIG |
9e3ffb |
Subject: [Backport 6778337a7a4e] exfat: Remove unused functions
|
|
Kmods SIG |
9e3ffb |
exfat_high_surrogate() and exfat_low_surrogate()
|
|
Kmods SIG |
9e3ffb |
MIME-Version: 1.0
|
|
Kmods SIG |
9e3ffb |
Content-Type: text/plain; charset=UTF-8
|
|
Kmods SIG |
9e3ffb |
Content-Transfer-Encoding: 8bit
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
After applying previous two patches, these functions are not used anymore.
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
Signed-off-by: Pali Rohár <pali@kernel.org>
|
|
Kmods SIG |
9e3ffb |
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
|
|
Kmods SIG |
9e3ffb |
---
|
|
Kmods SIG |
9e3ffb |
src/exfat_fs.h | 2 --
|
|
Kmods SIG |
9e3ffb |
src/nls.c | 13 -------------
|
|
Kmods SIG |
9e3ffb |
2 files changed, 15 deletions(-)
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
diff --git a/src/exfat_fs.h b/src/exfat_fs.h
|
|
Kmods SIG |
9e3ffb |
index 1ebfb9085f1f719180051ee87aea94962accd238..3862df6af7386bd5e54ed338cedcee64c3cb6ddd 100644
|
|
Kmods SIG |
9e3ffb |
--- a/src/exfat_fs.h
|
|
Kmods SIG |
9e3ffb |
+++ b/src/exfat_fs.h
|
|
Kmods SIG |
9e3ffb |
@@ -492,8 +492,6 @@ int exfat_nls_to_utf16(struct super_block *sb,
|
|
Kmods SIG |
9e3ffb |
struct exfat_uni_name *uniname, int *p_lossy);
|
|
Kmods SIG |
9e3ffb |
int exfat_create_upcase_table(struct super_block *sb);
|
|
Kmods SIG |
9e3ffb |
void exfat_free_upcase_table(struct exfat_sb_info *sbi);
|
|
Kmods SIG |
9e3ffb |
-unsigned short exfat_high_surrogate(unicode_t u);
|
|
Kmods SIG |
9e3ffb |
-unsigned short exfat_low_surrogate(unicode_t u);
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
/* exfat/misc.c */
|
|
Kmods SIG |
9e3ffb |
void __exfat_fs_error(struct super_block *sb, int report, const char *fmt, ...)
|
|
Kmods SIG |
9e3ffb |
diff --git a/src/nls.c b/src/nls.c
|
|
Kmods SIG |
9e3ffb |
index 2178786b708b577a385137994a41e078bedcb8b7..1ebda90cbdd7c81c507f662332a53eb52bf92606 100644
|
|
Kmods SIG |
9e3ffb |
--- a/src/nls.c
|
|
Kmods SIG |
9e3ffb |
+++ b/src/nls.c
|
|
Kmods SIG |
9e3ffb |
@@ -535,22 +535,9 @@ static int exfat_utf8_to_utf16(struct super_block *sb,
|
|
Kmods SIG |
9e3ffb |
return unilen;
|
|
Kmods SIG |
9e3ffb |
}
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
-#define PLANE_SIZE 0x00010000
|
|
Kmods SIG |
9e3ffb |
#define SURROGATE_MASK 0xfffff800
|
|
Kmods SIG |
9e3ffb |
#define SURROGATE_PAIR 0x0000d800
|
|
Kmods SIG |
9e3ffb |
#define SURROGATE_LOW 0x00000400
|
|
Kmods SIG |
9e3ffb |
-#define SURROGATE_BITS 0x000003ff
|
|
Kmods SIG |
9e3ffb |
-
|
|
Kmods SIG |
9e3ffb |
-unsigned short exfat_high_surrogate(unicode_t u)
|
|
Kmods SIG |
9e3ffb |
-{
|
|
Kmods SIG |
9e3ffb |
- return ((u - PLANE_SIZE) >> 10) + SURROGATE_PAIR;
|
|
Kmods SIG |
9e3ffb |
-}
|
|
Kmods SIG |
9e3ffb |
-
|
|
Kmods SIG |
9e3ffb |
-unsigned short exfat_low_surrogate(unicode_t u)
|
|
Kmods SIG |
9e3ffb |
-{
|
|
Kmods SIG |
9e3ffb |
- return ((u - PLANE_SIZE) & SURROGATE_BITS) | SURROGATE_PAIR |
|
|
Kmods SIG |
9e3ffb |
- SURROGATE_LOW;
|
|
Kmods SIG |
9e3ffb |
-}
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
static int __exfat_utf16_to_nls(struct super_block *sb,
|
|
Kmods SIG |
9e3ffb |
struct exfat_uni_name *p_uniname, unsigned char *p_cstring,
|
|
Kmods SIG |
9e3ffb |
--
|
|
Kmods SIG |
9e3ffb |
2.31.1
|
|
Kmods SIG |
9e3ffb |
|