[U-Boot] [PATCH v3.1 01/26] fs: fat: guard the content of include/fat.h

Alexander Graf agraf at suse.de
Sun Sep 23 14:42:17 UTC 2018



On 12.09.18 08:55, Akashi, Takahiro wrote:
> From: AKASHI Takahiro <takahiro.akashi at linaro.org>
> 
> The whole content of include/fat.h should be guarded with CONFIG_FS_FAT.
> 
> This is necessary specifically because fs/fs.c unconditionally includes
> fat.h, which refers to a config symbol, CONFIG_FS_FAT_MAX_CLUSTSIZE.
> So if CONFIG_FS_FAT, and thus CONFIG_FS_FAT_MAX_CLUSTSIZE, is not
> defined, fs/fs.c will fail to compile.

I don't see that define used anywhere outside of FAT code, so I still
don't understand why we need this patch.


Alex


More information about the U-Boot mailing list