Skip to content

Commit 1043c9f

Browse files
kahjingl90Alif Zakuan Yuslaimi
authored andcommitted
env: fat: Fix warning for unused function get_env_filename
Commit <a5091a719e>: Fix warning for unused function get_env_filename when CONFIG_SOCFPGA_RSU_MULTIBOOT is not set. Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com>
1 parent 7df799a commit 1043c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

env/fat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ __weak char *env_fat_get_dev_part(void)
5959
#endif
6060
}
6161

62+
#if IS_ENABLED(CONFIG_SOCFPGA_RSU_MULTIBOOT)
6263
static int get_env_filename(char *env_file, bool redund)
6364
{
6465
int ret;
@@ -71,6 +72,7 @@ static int get_env_filename(char *env_file, bool redund)
7172

7273
return 0;
7374
}
75+
#endif
7476

7577
static int env_fat_save(void)
7678
{

0 commit comments

Comments
 (0)