xiaoxiang781216 commented on PR #17545:
URL: https://github.com/apache/nuttx/pull/17545#issuecomment-3677277170
@anjiahao1 please remove the cast from:
```
====================================================================================
Configuration/Tool: esp32-devkitc/ble
2025-12-19 13:25:09
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Building NuttX...
common/espressif/esp_spiflash.c: In function
'spiflash_init_spi_flash_op_block_task':
Error: common/espressif/esp_spiflash.c:592:21: error: passing argument 1 of
'nxtask_init' from incompatible pointer type [-Wincompatible-pointer-types]
592 | ret = nxtask_init((FAR struct task_tcb_s *)tcb, "spiflash_op",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct task_tcb_s *
In file included from
/github/workspace/sources/nuttx/include/nuttx/arch.h:89,
from common/espressif/esp_spiflash.c:28:
/github/workspace/sources/nuttx/include/nuttx/sched.h:989:35: note: expected
'struct tcb_s *' but argument is of type 'struct task_tcb_s *'
989 | int nxtask_init(FAR struct tcb_s *tcb, const char *name, int
priority,
| ~~~~~~~~~~~~~~^~~
```
--
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]