Skip to contentSkip to conversation

fs: Allow to compile FS_FAT only for proper U-Boot

PATCH In review Pali Rohár 2 participants 2 messages Apr 5, 2022 – Apr 15, 2022 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: Allow to compile FS_FAT only for proper U-Boot

CONFIG_SPL_FS_FAT cannot be disabled when CONFIG_FS_FAT is enabled. Fix it.

---
 fs/fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fs.c +1 -1
index 023f89cafec2..5c3b1ac09e53 100644
@@ -175,7 +175,7 @@ struct fstype_info {
 };
 
 static struct fstype_info fstypes[] = {
-#ifdef CONFIG_FS_FAT
+#if CONFIG_IS_ENABLED(FS_FAT)
 	{
 		.fstype = FS_TYPE_FAT,
 		.name = "fat",
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · Pali Rohár

CONFIG_SPL_FS_FAT cannot be disabled when CONFIG_FS_FAT is enabled. Fix it.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom