drivers/flash: Use array instead of char for _ram_code_start
When defined as 'char', the compiler notices that the memcpy targeting that address will write more than one byte which generates a warning. Use an array instead so that the compiler doesn't assume a specific size. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
08d4dc90a1
commit
c4d71b3fc0
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
LOG_MODULE_REGISTER(flash_ite_it8xxx2);
|
||||
|
||||
/* RAM code start address */
|
||||
extern char _ram_code_start;
|
||||
extern char _ram_code_start[];
|
||||
#define FLASH_RAMCODE_START ((uint32_t)&_ram_code_start)
|
||||
#define FLASH_RAMCODE_START_BIT19 BIT(19)
|
||||
/* RAM code section */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue