From f3d45c746be11415a04fbd3500a7e925faeafe58 Mon Sep 17 00:00:00 2001 From: maosql Date: Wed, 27 Aug 2025 20:40:01 +0800 Subject: [PATCH] fix: warnings generated by Kconfig. --- components/dfs/Kconfig | 6 +++--- components/drivers/serial/Kconfig | 4 ++-- components/drivers/usb/cherryusb/Kconfig | 8 ++++---- components/drivers/virtio/Kconfig | 2 +- components/legacy/usb/Kconfig | 2 +- components/net/lwip/Kconfig | 2 +- components/utilities/Kconfig | 4 ++-- components/utilities/rt-link/Kconfig | 2 +- libcpu/Kconfig | 2 +- src/Kconfig | 8 ++++---- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/components/dfs/Kconfig b/components/dfs/Kconfig index 17052fe2a48..23799d1b44e 100644 --- a/components/dfs/Kconfig +++ b/components/dfs/Kconfig @@ -34,7 +34,7 @@ endif int "The maximal number of opened files" default 16 - choice + choice RT_USING_DFS_VERSION prompt "The version of DFS" default RT_USING_DFS_V1 default RT_USING_DFS_V2 if RT_USING_SMART @@ -74,7 +74,7 @@ endif bool "Using RT_DFS_ELM_WORD_ACCESS" default y - choice + choice RT_DFS_ELM_USE_LFN_NAME prompt "Support long file name" default RT_DFS_ELM_USE_LFN_3 @@ -98,7 +98,7 @@ endif default 2 if RT_DFS_ELM_USE_LFN_2 default 3 if RT_DFS_ELM_USE_LFN_3 - choice + choice RT_DFS_ELM_LFN_UNICODE_NAME prompt "Support unicode for long file name" default RT_DFS_ELM_LFN_UNICODE_0 diff --git a/components/drivers/serial/Kconfig b/components/drivers/serial/Kconfig index cd6cf3f3592..b031c68b6c9 100644 --- a/components/drivers/serial/Kconfig +++ b/components/drivers/serial/Kconfig @@ -5,7 +5,7 @@ menuconfig RT_USING_SERIAL default y if RT_USING_SERIAL - choice + choice RT_USING_SERIAL_VERSION prompt "Choice Serial version" default RT_USING_SERIAL_V1 config RT_USING_SERIAL_V1 @@ -14,7 +14,7 @@ menuconfig RT_USING_SERIAL bool "RT_USING_SERIAL_V2" endchoice - choice + choice RT_USING_SERIAL_MODE prompt "Choice Serial version" depends on RT_USING_SERIAL_V2 default RT_SERIAL_BUF_STRATEGY_OVERWRITE diff --git a/components/drivers/usb/cherryusb/Kconfig b/components/drivers/usb/cherryusb/Kconfig index cd593c296ca..4c3c655ceb1 100644 --- a/components/drivers/usb/cherryusb/Kconfig +++ b/components/drivers/usb/cherryusb/Kconfig @@ -10,7 +10,7 @@ if CHERRYUSB default n if CHERRYUSB_DEVICE - choice + choice CHERRYUSB_DEVICE_SPEED prompt "Select usb device speed" default CHERRYUSB_DEVICE_SPEED_FS config CHERRYUSB_DEVICE_SPEED_FS @@ -21,7 +21,7 @@ if CHERRYUSB bool "AUTO" endchoice - choice + choice CHERRYUSB_DEVICE_IP prompt "Select usb device ip, and some ip need config in usb_config.h, please check" default CHERRYUSB_DEVICE_CUSTOM config CHERRYUSB_DEVICE_CUSTOM @@ -158,7 +158,7 @@ if CHERRYUSB prompt "Enable usb cdc ecm device with lwip for lan" default n - choice + choice CHERRYUSB_DEVICE_TEMPLATE prompt "Select usb device template, please select class driver first" default CHERRYUSB_DEVICE_TEMPLATE_NONE config CHERRYUSB_DEVICE_TEMPLATE_NONE @@ -235,7 +235,7 @@ if CHERRYUSB default n if CHERRYUSB_HOST - choice + choice CHERRYUSB_HOST_IP prompt "Select usb host ip, and some ip need config in usb_config.h, please check" default CHERRYUSB_HOST_CUSTOM config CHERRYUSB_HOST_CUSTOM diff --git a/components/drivers/virtio/Kconfig b/components/drivers/virtio/Kconfig index c23d2da27fc..8298ff75beb 100644 --- a/components/drivers/virtio/Kconfig +++ b/components/drivers/virtio/Kconfig @@ -3,7 +3,7 @@ menuconfig RT_USING_VIRTIO default n if RT_USING_VIRTIO - choice + choice RT_USING_VIRTIO_VERSION prompt "VirtIO Version" default RT_USING_VIRTIO10 diff --git a/components/legacy/usb/Kconfig b/components/legacy/usb/Kconfig index d20c0f92f93..c942960495b 100644 --- a/components/legacy/usb/Kconfig +++ b/components/legacy/usb/Kconfig @@ -50,7 +50,7 @@ menu "Using USB legacy version" config RT_USB_DEVICE_COMPOSITE bool "Enable composite device" default n - choice + choice RT_USING_COMPOSITE_DEVICE prompt "Device type" default _RT_USB_DEVICE_NONE depends on !RT_USB_DEVICE_COMPOSITE diff --git a/components/net/lwip/Kconfig b/components/net/lwip/Kconfig index 48f2a1d86a6..fe019a3f724 100644 --- a/components/net/lwip/Kconfig +++ b/components/net/lwip/Kconfig @@ -13,7 +13,7 @@ if RT_USING_LWIP If don't select this option, both local version and upstream version can be selected. If select this option, only local version can be selected. - choice + choice RT_USING_LWIP_VERSION prompt "lwIP version" default RT_USING_LWIP203 help diff --git a/components/utilities/Kconfig b/components/utilities/Kconfig index 74e16cc7e43..b5eff9bee47 100644 --- a/components/utilities/Kconfig +++ b/components/utilities/Kconfig @@ -21,7 +21,7 @@ menuconfig RT_USING_ULOG if RT_USING_ULOG if !ULOG_USING_SYSLOG - choice + choice ULOG_OUTPUT_LOG_LEVEL prompt "The static output log level." default ULOG_OUTPUT_LVL_D help @@ -42,7 +42,7 @@ menuconfig RT_USING_ULOG endif if ULOG_USING_SYSLOG - choice + choice ULOG_OUTPUT_LOG_LEVEL prompt "The static output log level." default ULOG_OUTPUT_LVL_DEBUG help diff --git a/components/utilities/rt-link/Kconfig b/components/utilities/rt-link/Kconfig index 29ef4be81fe..51703478542 100644 --- a/components/utilities/rt-link/Kconfig +++ b/components/utilities/rt-link/Kconfig @@ -4,7 +4,7 @@ menuconfig RT_USING_RT_LINK default n if RT_USING_RT_LINK - choice + choice RT_LINK_USING_CRC prompt"use hw crc device or not" default RT_LINK_USING_SF_CRC diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 1edace109a7..b089b61725c 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -228,7 +228,7 @@ config ARCH_RISCV_VECTOR bool if ARCH_RISCV_VECTOR - choice + choice ARCH_VECTOR_VLEN prompt "RISCV Vector Vlen" default ARCH_VECTOR_VLEN_128 diff --git a/src/Kconfig b/src/Kconfig index 099f95e9cfa..73d0a6837c9 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -55,7 +55,7 @@ config RT_USING_AMP bool "Enable AMP (Asymmetric Multi-Processing)" default n if RT_USING_AMP - choice + choice RT_USING_AMP_ROLE prompt "Select the AMP role" default RT_AMP_SLAVE @@ -89,7 +89,7 @@ config RT_ALIGN_SIZE help Alignment size for CPU architecture data access -choice +choice RT_THREAD_PRIORITY_VAL_MAX prompt "The maximal level value of priority of thread" default RT_THREAD_PRIORITY_32 @@ -312,7 +312,7 @@ menu "Memory Management" default n if RT_USING_MEMHEAP - choice + choice RT_MEMHEAP_MODE prompt "Memheap memory allocation mode" default RT_MEMHEAP_FAST_MODE @@ -330,7 +330,7 @@ menu "Memory Management" endchoice endif - choice + choice RT_USING_HEAP_TYPE prompt "System Heap Memory Management" default RT_USING_SMALL_MEM_AS_HEAP