Commit 8bad6cb176a0e92ac8e7771fb68e5e0713edbf8e
Committed by
Tom Rini
1 parent
e8df14d216
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
fs: fat: Drop CONFIG_SUPPORT_VFAT
fat.h unconditionally defines CONFIG_SUPPORT_VFAT (and has done since 2003), so as a result VFAT support is always enabled regardless of whether a board config defines it or not. Drop this unnecessary option. Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Showing 32 changed files with 2 additions and 100 deletions Side-by-side Diff
- fs/fat/fat.c
- fs/fat/fat_write.c
- include/configs/MPC8349ITX.h
- include/configs/apf27.h
- include/configs/clearfog.h
- include/configs/controlcenterdc.h
- include/configs/db-88f6720.h
- include/configs/db-88f6820-amc.h
- include/configs/db-88f6820-gp.h
- include/configs/db-mv784mp-gp.h
- include/configs/ds414.h
- include/configs/edminiv2.h
- include/configs/gplugd.h
- include/configs/mv-common.h
- include/configs/mvebu_armada-37xx.h
- include/configs/mvebu_armada-8k.h
- include/configs/nas220.h
- include/configs/pic32mzdask.h
- include/configs/rcar-gen2-common.h
- include/configs/rcar-gen3-common.h
- include/configs/rk3128_common.h
- include/configs/rk3328_common.h
- include/configs/rk3399_common.h
- include/configs/theadorable.h
- include/configs/turris_omnia.h
- include/configs/vct.h
- include/configs/x600.h
- include/configs/x86-common.h
- include/configs/zmx25.h
- include/configs/zynq-common.h
- include/fat.h
- scripts/config_whitelist.txt
fs/fat/fat.c
... | ... | @@ -22,12 +22,6 @@ |
22 | 22 | #include <linux/compiler.h> |
23 | 23 | #include <linux/ctype.h> |
24 | 24 | |
25 | -#ifdef CONFIG_SUPPORT_VFAT | |
26 | -static const int vfat_enabled = 1; | |
27 | -#else | |
28 | -static const int vfat_enabled = 0; | |
29 | -#endif | |
30 | - | |
31 | 25 | /* |
32 | 26 | * Convert a string to lowercase. Converts at most 'len' characters, |
33 | 27 | * 'len' may be larger than the length of 'str' if 'str' is NULL |
... | ... | @@ -605,9 +599,6 @@ |
605 | 599 | return -1; |
606 | 600 | } |
607 | 601 | |
608 | - if (vfat_enabled) | |
609 | - debug("VFAT Support enabled\n"); | |
610 | - | |
611 | 602 | debug("FAT%d, fat_sect: %d, fatlength: %d\n", |
612 | 603 | mydata->fatsize, mydata->fat_sect, mydata->fatlength); |
613 | 604 | debug("Rootdir begins at cluster: %d, sector: %d, offset: %x\n" |
... | ... | @@ -857,8 +848,7 @@ |
857 | 848 | continue; |
858 | 849 | |
859 | 850 | if (dent->attr & ATTR_VOLUME) { |
860 | - if (vfat_enabled && | |
861 | - (dent->attr & ATTR_VFAT) == ATTR_VFAT && | |
851 | + if ((dent->attr & ATTR_VFAT) == ATTR_VFAT && | |
862 | 852 | (dent->name[0] & LAST_LONG_ENTRY_MASK)) { |
863 | 853 | dent = extract_vfat_name(itr); |
864 | 854 | if (!dent) |
fs/fat/fat_write.c
... | ... | @@ -819,8 +819,7 @@ |
819 | 819 | continue; |
820 | 820 | } |
821 | 821 | if ((dentptr->attr & ATTR_VOLUME)) { |
822 | - if (vfat_enabled && | |
823 | - (dentptr->attr & ATTR_VFAT) && | |
822 | + if ((dentptr->attr & ATTR_VFAT) && | |
824 | 823 | (dentptr->name[0] & LAST_LONG_ENTRY_MASK)) { |
825 | 824 | get_long_file_name(mydata, curclust, |
826 | 825 | get_dentfromdir_block, |
include/configs/MPC8349ITX.h
... | ... | @@ -470,14 +470,6 @@ |
470 | 470 | #define CONFIG_BOOTP_GATEWAY |
471 | 471 | #define CONFIG_BOOTP_HOSTNAME |
472 | 472 | |
473 | -#if defined(CONFIG_COMPACT_FLASH) || defined(CONFIG_SATA_SIL3114) \ | |
474 | - || defined(CONFIG_USB_STORAGE) | |
475 | - #define CONFIG_SUPPORT_VFAT | |
476 | -#endif | |
477 | - | |
478 | -#if defined(CONFIG_SATA_SIL3114) || defined(CONFIG_USB_STORAGE) | |
479 | -#endif | |
480 | - | |
481 | 473 | /* Watchdog */ |
482 | 474 | #undef CONFIG_WATCHDOG /* watchdog disabled */ |
483 | 475 |
include/configs/apf27.h
include/configs/clearfog.h
include/configs/controlcenterdc.h
include/configs/db-88f6720.h
include/configs/db-88f6820-amc.h
... | ... | @@ -30,11 +30,6 @@ |
30 | 30 | #define CONFIG_SF_DEFAULT_SPEED 1000000 |
31 | 31 | #define CONFIG_SF_DEFAULT_MODE SPI_MODE_3 |
32 | 32 | |
33 | -/* Partition support */ | |
34 | - | |
35 | -/* Additional FS support/configuration */ | |
36 | -#define CONFIG_SUPPORT_VFAT | |
37 | - | |
38 | 33 | /* USB/EHCI configuration */ |
39 | 34 | #define CONFIG_EHCI_IS_TDI |
40 | 35 |
include/configs/db-88f6820-gp.h
... | ... | @@ -50,11 +50,6 @@ |
50 | 50 | #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ |
51 | 51 | CONFIG_SYS_SCSI_MAX_LUN) |
52 | 52 | |
53 | -/* Partition support */ | |
54 | - | |
55 | -/* Additional FS support/configuration */ | |
56 | -#define CONFIG_SUPPORT_VFAT | |
57 | - | |
58 | 53 | /* USB/EHCI configuration */ |
59 | 54 | #define CONFIG_EHCI_IS_TDI |
60 | 55 |
include/configs/db-mv784mp-gp.h
include/configs/ds414.h
include/configs/edminiv2.h
include/configs/gplugd.h
include/configs/mv-common.h
... | ... | @@ -116,13 +116,6 @@ |
116 | 116 | #endif |
117 | 117 | |
118 | 118 | /* |
119 | - * Common USB/EHCI configuration | |
120 | - */ | |
121 | -#if defined(CONFIG_CMD_USB) && !defined(CONFIG_DM) | |
122 | -#define CONFIG_SUPPORT_VFAT | |
123 | -#endif /* CONFIG_CMD_USB */ | |
124 | - | |
125 | -/* | |
126 | 119 | * File system |
127 | 120 | */ |
128 | 121 | #ifdef CONFIG_SYS_MVFS |
include/configs/mvebu_armada-37xx.h
include/configs/mvebu_armada-8k.h
include/configs/nas220.h
include/configs/pic32mzdask.h
... | ... | @@ -81,12 +81,6 @@ |
81 | 81 | * USB Configuration |
82 | 82 | */ |
83 | 83 | |
84 | -/*----------------------------------------------------------------------- | |
85 | - * File System Configuration | |
86 | - */ | |
87 | -/* FAT FS */ | |
88 | -#define CONFIG_SUPPORT_VFAT | |
89 | - | |
90 | 84 | /* ------------------------------------------------- |
91 | 85 | * Environment |
92 | 86 | */ |
include/configs/rcar-gen2-common.h
include/configs/rcar-gen3-common.h
include/configs/rk3128_common.h
include/configs/rk3328_common.h
include/configs/rk3399_common.h
include/configs/theadorable.h
include/configs/turris_omnia.h
include/configs/vct.h
include/configs/x600.h
include/configs/x86-common.h
include/configs/zmx25.h
include/configs/zynq-common.h
... | ... | @@ -124,10 +124,6 @@ |
124 | 124 | # define DFU_ALT_INFO |
125 | 125 | #endif |
126 | 126 | |
127 | -#if defined(CONFIG_MMC_SDHCI_ZYNQ) || defined(CONFIG_ZYNQ_USB) | |
128 | -# define CONFIG_SUPPORT_VFAT | |
129 | -#endif | |
130 | - | |
131 | 127 | #if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1) |
132 | 128 | #define CONFIG_SYS_I2C_ZYNQ |
133 | 129 | #endif |
include/fat.h
... | ... | @@ -13,7 +13,6 @@ |
13 | 13 | #include <asm/byteorder.h> |
14 | 14 | #include <fs.h> |
15 | 15 | |
16 | -#define CONFIG_SUPPORT_VFAT | |
17 | 16 | /* Maximum Long File Name length supported here is 128 UTF-16 code units */ |
18 | 17 | #define VFAT_MAXLEN_BYTES 256 /* Maximum LFN buffer in bytes */ |
19 | 18 | #define VFAT_MAXSEQ 9 /* Up to 9 of 13 2-byte UTF-16 entries */ |
scripts/config_whitelist.txt