huojianchaoyy opened a new pull request, #22282: URL: https://github.com/apache/nuttx/pull/22282
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary From Xiaomi Vela, split out of #22206 as asked in its review. - **fs/fs_heap: add the missing blank lines after declarations** (first): existing nxstyle errors in `fs/fs_heap.c`, which the next commit touches. No functional change. - **nuttx: Adapt for Tasking compiler**: Tasking adds a '/' to these compiler flags, so `noteram_driver.c`, `serial_rtt.c`, `ramlog.c`, `fs_heap.c` and `iob_initialize.c` take the section name from the Kconfig symbol (`CONFIG_*_SECTION`); the `-D` macro only tells whether a section is set. Master already has the `syslog_rpmsg.c` part. ## Impact - No change with GCC: the buffers stay in the same sections (see Testing). ## Testing Host: Ubuntu 22.04 x86_64, GCC 13.4.0, CMake 3.23 + Ninja 1.10. Base: master 25b649e1c08. `./tools/checkpatch.sh -c -u -m -g HEAD~2..HEAD` passes. `sim:nsh` with the IOB, RAMLOG syslog, FS heap and noteram sections set (`CONFIG_IOB_SECTION=".bss.iob"`, `CONFIG_RAMLOG_BUFFER_SECTION=".bss.ramlog"`, `CONFIG_FS_HEAPBUF_SECTION=".bss.fsheap"`, `CONFIG_DRIVERS_NOTERAM_SECTION=".bss.noteram"`), the objects have the same sections as on master: - Make: `.bss.iob`, `.bss.ramlog`, `.bss.fsheap` and `.bss.noteram`. - CMake: `.bss.iob`, `.bss.ramlog` and `.bss.fsheap`. The CMake build does not pass `DRIVERS_NOTERAM_SECTION`, on master either, so noteram gets no section there. Not tested: a Tasking build, `serial_rtt.c` with an RTT buffer section, real hardware. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
