[U-Boot] [PATCH v3.1 01/26] fs: fat: guard the content of include/fat.h
Akashi, Takahiro
takahiro.akashi at linaro.org
Tue Sep 25 04:54:47 UTC 2018
On Sun, Sep 23, 2018 at 04:42:17PM +0200, Alexander Graf wrote:
>
>
> 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.
Try to compile u-boot without CONFIG_FS_FAT.
You will find out what I (and originally Heinrich) meant.
Thanks,
-Takahiro Akashi
>
> Alex
More information about the U-Boot
mailing list