You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "casaroli (via GitHub)" <gi...@apache.org> on 2026/10/15 05:51:34 UTC
[PR] arch/xtensa/espressif: Include nuttx/kmalloc.h in esp_temperature_sensor.c. [nuttx]
casaroli opened a new pull request, #20678:
URL: https://github.com/apache/nuttx/pull/20678
## Summary
`esp_temperature_sensor_initialize()` calls `kmm_free()`, but `arch/xtensa/src/common/espressif/esp_temperature_sensor.c` does not include `nuttx/kmalloc.h`. The declaration used to come in through `stdio.h`, which no longer includes it (#20565), so `esp32s3-ws-lcd128:imu-qmi8658` fails to build:
```
common/espressif/esp_temperature_sensor.c:871:7: error: implicit declaration of function 'kmm_free' [-Wimplicit-function-declaration]
```
This stops the `xtensa-03` CI job (found on apache/nuttx-apps#3850). The risc-v copy of the file already includes `nuttx/kmalloc.h`.
Two commits:
- Fix the old nxstyle error in the file (one line indented by eight spaces instead of six), so that checkpatch passes.
- Include `nuttx/kmalloc.h`.
## Impact
Build fix only. No change in behaviour.
## Testing
`esp32s3-ws-lcd128:imu-qmi8658` with xtensa-esp-elf 14.2.0, `-Werror`, apps master 467e22088 + apache/nuttx-apps#3850:
- master b3418f076a5: fails with the error above.
- with this PR: builds.
`tools/checkpatch.sh -c -u -m -g` passes.
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/xtensa/espressif: Include nuttx/kmalloc.h in esp_temperature_sensor.c. [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #20678:
URL: https://github.com/apache/nuttx/pull/20678
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/xtensa/espressif: Include nuttx/kmalloc.h in esp_temperature_sensor.c. [nuttx]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20678:
URL: https://github.com/apache/nuttx/pull/20678#issuecomment-6185567302
<!-- membrowse-pr-comment -->
## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
*No memory changes detected for:*
- [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
- [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=9895fcef96d749c573021bb7297170f49a0ff99b&base=b3418f076a557f1609bba1188c68cee620d9c534)
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org