This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 41b68da9124cf83afed2e8a2647168193bd84d63 Author: zhangyuan29 <[email protected]> AuthorDate: Wed May 7 20:11:01 2025 +0800 nuttx: Adapt for Tasking compiler Tasking will add '/' for compiler flag, so use defconfig macro instead. Signed-off-by: zhangyuan29 <[email protected]> --- drivers/note/noteram_driver.c | 2 +- drivers/segger/serial_rtt.c | 3 ++- drivers/syslog/ramlog.c | 2 +- fs/fs_heap.c | 3 ++- mm/iob/iob_initialize.c | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/note/noteram_driver.c b/drivers/note/noteram_driver.c index ed12808508a..acd16affbe3 100644 --- a/drivers/note/noteram_driver.c +++ b/drivers/note/noteram_driver.c @@ -157,7 +157,7 @@ static const struct file_operations g_noteram_fops = static #ifdef DRIVERS_NOTERAM_SECTION -locate_data(DRIVERS_NOTERAM_SECTION) +locate_data(CONFIG_DRIVERS_NOTERAM_SECTION) #endif uint8_t g_ramnote_buffer[CONFIG_DRIVERS_NOTERAM_BUFSIZE]; diff --git a/drivers/segger/serial_rtt.c b/drivers/segger/serial_rtt.c index 5801455fc83..76f31026aa7 100644 --- a/drivers/segger/serial_rtt.c +++ b/drivers/segger/serial_rtt.c @@ -40,7 +40,8 @@ ****************************************************************************/ #ifdef SEGGER_RTT_BUFFER_SECTION -# define SERIAL_RTT_BUFFER_SECTION locate_data(SEGGER_RTT_BUFFER_SECTION) +# define SERIAL_RTT_BUFFER_SECTION \ + locate_data(CONFIG_SEGGER_RTT_BUFFER_SECTION) #else # define SERIAL_RTT_BUFFER_SECTION #endif diff --git a/drivers/syslog/ramlog.c b/drivers/syslog/ramlog.c index 74e2af67ef0..97f2e0b099e 100644 --- a/drivers/syslog/ramlog.c +++ b/drivers/syslog/ramlog.c @@ -161,7 +161,7 @@ static const struct file_operations g_ramlogfops = #ifdef CONFIG_RAMLOG_SYSLOG # ifdef RAMLOG_BUFFER_SECTION static uint32_t g_sysbuffer[CONFIG_RAMLOG_BUFSIZE / 4] - locate_data(RAMLOG_BUFFER_SECTION); + locate_data(CONFIG_RAMLOG_BUFFER_SECTION); # else static uint32_t g_sysbuffer[CONFIG_RAMLOG_BUFSIZE / 4]; # endif diff --git a/fs/fs_heap.c b/fs/fs_heap.c index f09321a933f..b46aa95ec03 100644 --- a/fs/fs_heap.c +++ b/fs/fs_heap.c @@ -44,7 +44,8 @@ void fs_heap_initialize(void) { struct mm_heap_config_s config; #ifdef FS_HEAPBUF_SECTION - static uint8_t buf[CONFIG_FS_HEAPSIZE] locate_data(FS_HEAPBUF_SECTION); + static uint8_t buf[CONFIG_FS_HEAPSIZE] + locate_data(CONFIG_FS_HEAPBUF_SECTION); #else FAR void *buf = kmm_malloc(CONFIG_FS_HEAPSIZE); #endif diff --git a/mm/iob/iob_initialize.c b/mm/iob/iob_initialize.c index 5cf146a7942..d4fb594d6d4 100644 --- a/mm/iob/iob_initialize.c +++ b/mm/iob/iob_initialize.c @@ -59,7 +59,8 @@ */ #ifdef IOB_SECTION -static uint8_t g_iob_buffer[IOB_BUFFER_SIZE] locate_data(IOB_SECTION); +static uint8_t g_iob_buffer[IOB_BUFFER_SIZE] + locate_data(CONFIG_IOB_SECTION); #else static uint8_t g_iob_buffer[IOB_BUFFER_SIZE]; #endif
