You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2023/09/12 02:02:55 UTC

[nuttx] branch master updated (4fef475825 -> c27b470d39)

This is an automated email from the ASF dual-hosted git repository.

archer pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


    from 4fef475825 sim/crypto: support MBEDTLS_MD5_ALT config
     new d4fd9f53cd Fix error: arch/sim/src/sim/posix/sim_alsa.c:290:18: error: 'flags' undeclared
     new 78728fc5eb Fix error: spi/qspi_flash.c:576:45: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
     new c27b470d39 Fix error: implicit declaration of function 'arc4random'; did you mean 'random'? [-Werror=implicit-function-declaration]

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/sim/src/sim/posix/sim_alsa.c | 2 --
 crypto/CMakeLists.txt             | 4 +++-
 crypto/Makefile                   | 4 +++-
 drivers/spi/qspi_flash.c          | 2 +-
 4 files changed, 7 insertions(+), 5 deletions(-)


[nuttx] 02/03: Fix error: spi/qspi_flash.c:576:45: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 78728fc5eb178fcc4f5a529e8c7dc1018836ebb3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Sep 11 17:31:56 2023 +0800

    Fix error: spi/qspi_flash.c:576:45: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 drivers/spi/qspi_flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/qspi_flash.c b/drivers/spi/qspi_flash.c
index 2c8aa23e20..67bd52a899 100644
--- a/drivers/spi/qspi_flash.c
+++ b/drivers/spi/qspi_flash.c
@@ -573,7 +573,7 @@ static int qspi_flash_command(FAR struct qspi_dev_s *dev,
  *
  ****************************************************************************/
 
-FAR struct qspi_dev_s *qspi_flash_initialize()
+FAR struct qspi_dev_s *qspi_flash_initialize(void)
 {
   FAR struct qspi_flashdev_s *priv = NULL;
 


[nuttx] 03/03: Fix error: implicit declaration of function 'arc4random'; did you mean 'random'? [-Werror=implicit-function-declaration]

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c27b470d396177e70af5fad3e70e7634092822c5
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Sep 11 18:19:18 2023 +0800

    Fix error: implicit declaration of function 'arc4random'; did you mean 'random'? [-Werror=implicit-function-declaration]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 crypto/CMakeLists.txt | 4 +++-
 crypto/Makefile       | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 68073b4836..744cfe8099 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -53,7 +53,9 @@ if(CONFIG_CRYPTO)
   list(APPEND SRCS gmac.c)
   list(APPEND SRCS cmac.c)
   list(APPEND SRCS hmac.c)
-  list(APPEND SRCS idgen.c)
+  if(CONFIG_CRYPTO_RANDOM_POOL)
+    list(APPEND SRCS idgen.c)
+  endif()
   list(APPEND SRCS key_wrap.c)
   list(APPEND SRCS siphash.c)
   list(APPEND SRCS hmac_buff.c)
diff --git a/crypto/Makefile b/crypto/Makefile
index b97e2f6b89..f666175b38 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -57,7 +57,9 @@ CRYPTO_CSRCS += sha2.c
 CRYPTO_CSRCS += gmac.c
 CRYPTO_CSRCS += cmac.c
 CRYPTO_CSRCS += hmac.c
-CRYPTO_CSRCS += idgen.c
+ifeq ($(CONFIG_CRYPTO_RANDOM_POOL),y)
+  CRYPTO_CSRCS += idgen.c
+endif
 CRYPTO_CSRCS += key_wrap.c
 CRYPTO_CSRCS += siphash.c
 CRYPTO_CSRCS += hmac_buff.c


[nuttx] 01/03: Fix error: arch/sim/src/sim/posix/sim_alsa.c:290:18: error: 'flags' undeclared

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit d4fd9f53cd53bba0fed403beecb300691a35e3eb
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Sep 11 16:56:42 2023 +0800

    Fix error: arch/sim/src/sim/posix/sim_alsa.c:290:18: error: 'flags' undeclared
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/sim/src/sim/posix/sim_alsa.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/sim/src/sim/posix/sim_alsa.c b/arch/sim/src/sim/posix/sim_alsa.c
index 9fc1e148b4..a7c7450d40 100644
--- a/arch/sim/src/sim/posix/sim_alsa.c
+++ b/arch/sim/src/sim/posix/sim_alsa.c
@@ -286,8 +286,6 @@ static int sim_audio_open(struct sim_audio_s *priv)
   return 0;
 
 fail:
-  snd_pcm_close(pcm);
-  up_irq_restore(flags);
   host_uninterruptible(snd_pcm_close, pcm);
   return ret;
 }