Shanks0224 opened a new pull request, #22613:
URL: https://github.com/apache/nuttx/pull/22613

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   Some ESP32, ESP32-S2 and ESP32-S3 files use declarations from a header
   they do not include, and build only because another header happens to
   include it:
   
   - `esp32_spiflash.c` uses `struct work_s` and `work_queue()` without
     `<nuttx/wqueue.h>`.
   - `esp32_libc_stubs.c`, `esp32s2_libc_stubs.c` and `esp32s3_libc_stubs.c`
     call the `kmm_*()` allocator without `<nuttx/kmalloc.h>`.
   
   Include the headers directly, one commit per file.  The existing nxstyle
   errors in these files (missing blank lines after declarations) are fixed
   too, as nxstyle checks the whole file.
   
   ## Impact
   
   None at run time: the added headers were already included indirectly.
   
   ## Testing
   
   xtensa-esp-elf 14.2.0, no warnings:
   
   - esp32-devkitc:nsh, esp32s2-saola-1:nsh and esp32s3-devkit:smp, each
     commit; esp32-devkitc:smp and esp32s3-devkit:nsh.
   
   `esp32_spiflash.c` could not be built: it is compiled only with
   `CONFIG_ESP32_PARTITION_TABLE`, which needs `CONFIG_ESP32_SPIFLASH`, and
   `CONFIG_ESP32_SPIFLASH` selects `CONFIG_ESPRESSIF_SPIFLASH`, which depends
   on `!ESP32_PARTITION_TABLE`, so `make olddefconfig` fails with an unmet
   dependency (on master as well).  The change to that file only adds the
   include and blank lines.
   
   The same missing include in `esp32s3_spiflash_mtd.c` is added by #22283.
   
   Not tested on 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]

  • [PR] arch/xtensa/esp32[|s2|s3... Shanks0224 (via GitHub) via commits

Reply via email to