Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: exfat: stopusing CONFIG_FAT_DEFAULT_IOCHARSET

When CONFIG_VFAT_FS is disabled, the reference to CONFIG_FAT_DEFAULT_IOCHARSET
causes a link failure:

drivers/staging/exfat/exfat_super.c:46:41: error: use of undeclared identifier 'CONFIG_FAT_DEFAULT_IOCHARSET'
static char exfat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET;

I could not figure out why the correct code is commented
out, but using that fixes the problem.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20190906150917.1025250-1-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
26cf7660 f6897dee

+2 -5
+2 -5
drivers/staging/exfat/exfat_super.c
··· 37 37 38 38 static struct kmem_cache *exfat_inode_cachep; 39 39 40 - // FIXME use commented lines 41 - // static int exfat_default_codepage = CONFIG_EXFAT_DEFAULT_CODEPAGE; 42 - // static char exfat_default_iocharset[] = CONFIG_EXFAT_DEFAULT_IOCHARSET; 43 - static int exfat_default_codepage = CONFIG_FAT_DEFAULT_CODEPAGE; 44 - static char exfat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET; 40 + static int exfat_default_codepage = CONFIG_EXFAT_DEFAULT_CODEPAGE; 41 + static char exfat_default_iocharset[] = CONFIG_EXFAT_DEFAULT_IOCHARSET; 45 42 46 43 #define INC_IVERSION(x) (inode_inc_iversion(x)) 47 44 #define GET_IVERSION(x) (inode_peek_iversion_raw(x))