Fix romdisk_register prototype. Most ROMFS images actually lie in RAM. If moved to FLASH with const storage class, then changes are required to avoid warnings

This commit is contained in:
Gregory Nutt
2016-01-20 13:04:07 -06:00
parent 2bd27c856c
commit 3a59eb4340
4 changed files with 7 additions and 4 deletions
+1 -1
Submodule arch updated: 09b1721505...09d21fd8e0
+1 -1
Submodule configs updated: 9495be5119...36aec1e67d
+2 -2
View File
@@ -94,9 +94,9 @@ extern "C"
#ifdef CONFIG_FS_WRITABLE
int ramdisk_register(int minor, FAR uint8_t *buffer, uint32_t nsectors,
uint16_t sectize, uint8_t rdflags);
#define romdisk_register(m,b,n,s) ramdisk_register(m,b,n,s,0)
#define romdisk_register(m,b,n,s) ramdisk_register(m,(FAR uint8_t *)b,n,s,0)
#else
int romdisk_register(int minor, FAR uint8_t *buffer, uint32_t nsectors,
int romdisk_register(int minor, FAR const uint8_t *buffer, uint32_t nsectors,
uint16_t sectize);
#endif
+3
View File
@@ -393,6 +393,9 @@ mkromfsimg.sh
image. It accepts an rcS script "template" and generates and image that
may be mounted under /etc in the NuttX pseudo file system.
TIP: Edit the resulting header file and mark the generated data values
as 'const' so that they will be stored in FLASH.
mkdeps.c
cnvwindeps.c
mkwindeps.sh