fs/fat: Don't warn about the CONFIG_FAT_MAXFNAME being too large if long file name support is not implemented.

This commit is contained in:
Gregory Nutt 2017-12-17 16:41:26 -06:00
parent 0e6e05bf11
commit f96478bb99
1 changed files with 3 additions and 1 deletions

View File

@ -230,7 +230,9 @@
/* Sizes and limits */
# if CONFIG_FAT_MAXFNAME > CONFIG_NAME_MAX
# warning CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
# ifdef CONFIG_FAT_LFN
# warning CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
# endif
# undef CONFIG_FAT_MAXFNAME
# define CONFIG_FAT_MAXFNAME CONFIG_NAME_MAX
# endif