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

   ## Summary
   Fix below build error when enable `SPI_SLAVE` and `ESP32S3_SPI_DMA` or 
enable `ESP32S3_SPI_IO_QIO`
   ```
   CC:  chip/esp32s3_spi_slave.c In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_spi_slave.c:30:
   chip/esp32s3_spi_slave.c: In function 'spislave_setup_rx_dma':
   chip/esp32s3_spi_slave.c:907:21: error: expected expression before '_Bool'
                        false);
                        ^~~~~
   chip/esp32s3_spi_slave.c:906:21: error: called object 'length' is not a 
function or function pointer
                        length
                        ^~~~~~
   chip/esp32s3_spi_slave.c:901:12: note: declared here
      uint32_t length = SPI_SLAVE_BUFSIZE - priv->rx_length;
               ^~~~~~
   In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_spi_slave.c:30:
   chip/esp32s3_spi_slave.c:907:21: error: expected ')' before numeric constant
                        false);
                        ^~~~~
   chip/esp32s3_spi_slave.c:903:3: error: too few arguments to function 
'esp32s3_dma_setup'
      esp32s3_dma_setup(priv->dma_rxdesc,
      ^~~~~~~~~~~~~~~~~
   In file included from chip/esp32s3_spi_slave.c:52:
   chip/esp32s3_dma.h:167:10: note: declared here
    uint32_t esp32s3_dma_setup(struct esp32s3_dmadesc_s *dmadesc, uint32_t num,
             ^~~~~~~~~~~~~~~~~
   In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_spi_slave.c:30:
   chip/esp32s3_spi_slave.c: In function 'spislave_setup_tx_dma':
   chip/esp32s3_spi_slave.c:951:21: error: expected expression before '_Bool'
                        true);
                        ^~~~
   chip/esp32s3_spi_slave.c:66:27: error: called object is not a function or 
function pointer
    #define SPI_SLAVE_BUFSIZE (CONFIG_ESP32S3_SPI_SLAVE_BUFSIZE)
                              ^
   chip/esp32s3_spi_slave.c:950:21: note: in expansion of macro 
'SPI_SLAVE_BUFSIZE'
                        SPI_SLAVE_BUFSIZE
                        ^~~~~~~~~~~~~~~~~
   In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_spi_slave.c:30:
   chip/esp32s3_spi_slave.c:951:21: error: expected ')' before numeric constant
                        true);
                        ^~~~
   chip/esp32s3_spi_slave.c:947:3: error: too few arguments to function 
'esp32s3_dma_setup'
      esp32s3_dma_setup(priv->dma_txdesc,
      ^~~~~~~~~~~~~~~~~
   In file included from chip/esp32s3_spi_slave.c:52:
   chip/esp32s3_dma.h:167:10: note: declared here
    uint32_t esp32s3_dma_setup(struct esp32s3_dmadesc_s *dmadesc, uint32_t num,
             ^~~~~~~~~~~~~~~~~
   make[1]: *** [Makefile:143: esp32s3_spi_slave.o] Error 1
   make: *** [tools/LibTargets.mk:164: arch/xtensa/src/libarch.a] Error 2
   
   
   CC:  chip/esp32s3_qspi.c In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_qspi.c:30:
   chip/esp32s3_qspi.c: In function 'esp32s3_qspi_memory':
   chip/esp32s3_qspi.c:982:25: error: expected expression before '_Bool'
                            true);
                            ^~~~
   chip/esp32s3_qspi.c:981:25: error: called object is not a function or 
function pointer
                            meminfo->buflen
                            ^~~~~~~
   In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_qspi.c:30:
   chip/esp32s3_qspi.c:982:25: error: expected ')' before numeric constant
                            true);
                            ^~~~
   chip/esp32s3_qspi.c:978:7: error: too few arguments to function 
'esp32s3_dma_setup'
          esp32s3_dma_setup(priv->dma_desc,
          ^~~~~~~~~~~~~~~~~
   In file included from chip/esp32s3_qspi.c:60:
   chip/esp32s3_dma.h:167:10: note: declared here
    uint32_t esp32s3_dma_setup(struct esp32s3_dmadesc_s *dmadesc, uint32_t num,
             ^~~~~~~~~~~~~~~~~
   In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_qspi.c:30:
   chip/esp32s3_qspi.c:998:25: error: expected expression before '_Bool'
                            false);
                            ^~~~~
   chip/esp32s3_qspi.c:997:25: error: called object is not a function or 
function pointer
                            meminfo->buflen
                            ^~~~~~~
   In file included from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/syslog.h:33,
                    from 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/include/debug.h:41,
                    from chip/esp32s3_qspi.c:30:
   chip/esp32s3_qspi.c:998:25: error: expected ')' before numeric constant
                            false);
                            ^~~~~
   chip/esp32s3_qspi.c:994:7: error: too few arguments to function 
'esp32s3_dma_setup'
          esp32s3_dma_setup(priv->dma_desc,
          ^~~~~~~~~~~~~~~~~
   In file included from chip/esp32s3_qspi.c:60:
   chip/esp32s3_dma.h:167:10: note: declared here
    uint32_t esp32s3_dma_setup(struct esp32s3_dmadesc_s *dmadesc, uint32_t num,
             ^~~~~~~~~~~~~~~~~
   ```
   
   
   ## Impact
   Fix build error, no impact
   
   ## Testing
   Pass the build
   


-- 
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-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to