More red fixes

Change-Id: If22cdb286edac47b08b158bee6910ba7a539b041
This commit is contained in:
Solomon Peachy 2024-07-07 14:36:55 -04:00
parent 520875ff00
commit 1528b44349
5 changed files with 8 additions and 10 deletions

View file

@ -893,7 +893,7 @@ Lyre prototype 1 */
#endif #endif
/* Bootloaders don't need multivolume awareness */ /* Bootloaders don't need multivolume awareness */
#if defined(BOOTLOADER) && defined(HAVE_MULTIVOLUME) #if defined(BOOTLOADER) && defined(HAVE_MULTIVOLUME) && !(CONFIG_PLATFORM & PLATFORM_HOSTED)
#undef HAVE_MULTIVOLUME #undef HAVE_MULTIVOLUME
#endif #endif

View file

@ -25,11 +25,6 @@
#undef AMS_OF_SIZE #undef AMS_OF_SIZE
/* Simulator core requires hotswap */
#ifndef HAVE_HOTSWAP
#define HAVE_HOTSWAP
#endif
#undef HAVE_HOTSWAP_STORAGE_AS_MAIN #undef HAVE_HOTSWAP_STORAGE_AS_MAIN
#undef HAVE_STORAGE_FLUSH #undef HAVE_STORAGE_FLUSH

View file

@ -120,6 +120,9 @@ bool volume_ismounted(IF_MV_NONVOID(int volume));
#ifdef HAVE_HOTSWAP #ifdef HAVE_HOTSWAP
bool volume_removable(int volume); bool volume_removable(int volume);
bool volume_present(int volume); bool volume_present(int volume);
#else
#define volume_present(x) 1
#define volueme_removeable(x) 0
#endif /* HAVE_HOTSWAP */ #endif /* HAVE_HOTSWAP */
#ifdef HAVE_MULTIDRIVE #ifdef HAVE_MULTIDRIVE

View file

@ -563,7 +563,7 @@ static inline int write_sector(unsigned long start, unsigned int count,
return ret; return ret;
} }
int nand_read_sectors(IF_MV(int drive,) unsigned long start, int count, void* buf) int nand_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf)
{ {
#ifdef HAVE_MULTIVOLUME #ifdef HAVE_MULTIVOLUME
(void)drive; (void)drive;
@ -590,7 +590,7 @@ int nand_read_sectors(IF_MV(int drive,) unsigned long start, int count, void* bu
return ret; return ret;
} }
int nand_write_sectors(IF_MV(int drive,) unsigned long start, int count, const void* buf) int nand_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf)
{ {
#ifdef HAVE_MULTIVOLUME #ifdef HAVE_MULTIVOLUME
(void)drive; (void)drive;
@ -662,7 +662,7 @@ void nand_sleepnow(void)
} }
#ifdef STORAGE_GET_INFO #ifdef STORAGE_GET_INFO
void nand_get_info(IF_MV(int drive,) struct storage_info *info) void nand_get_info(IF_MD(int drive,) struct storage_info *info)
{ {
#ifdef HAVE_MULTIVOLUME #ifdef HAVE_MULTIVOLUME
(void)drive; (void)drive;