build/Kconfig: fix warnings detected by kconfiglib

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2023-02-09 16:01:01 +08:00
committed by Xiang Xiao
parent 3a0fdb019d
commit e942a7c55e
28 changed files with 46 additions and 67 deletions

View File

@@ -199,7 +199,7 @@ config TTY_LAUNCH_PRIORITY
default INIT_PRIORITY
config TTY_LAUNCH_STACKSIZE
hex "TTY launch program stack size"
int "TTY launch program stack size"
default INIT_STACKSIZE
choice

View File

@@ -7,27 +7,22 @@ menuconfig DRIVERS_VIRTIO
bool "Virtio Device Support"
depends on !OPENAMP
default n
---help---
if DRIVERS_VIRTIO
menuconfig DRIVERS_VIRTIO_MMIO_NUM
int "The number of virtio mmio devices"
default 1
---help---
if DRIVERS_VIRTIO_MMIO_NUM != 0
menuconfig DRIVERS_VIRTIO_MMIO_BASE
hex "Virtio-mmio base address"
---help---
menuconfig DRIVERS_VIRTIO_MMIO_REGSIZE
hex "Virtio-mmio register size"
default 0
---help---
menuconfig DRIVERS_VIRTIO_MMIO_IRQ
int "Virtio-mmio irq number"
---help---
endif
@@ -36,13 +31,11 @@ menuconfig DRIVERS_VIRTIO_NET
default n
depends on DRIVERS_VIRTIO_MMIO_NUM > 0
select ARCH_HAVE_NETDEV_STATISTICS
---help---
if DRIVERS_VIRTIO_NET
config DRIVERS_VIRTIO_NET_QUEUE_LEN
int "Queue length"
default 16
---help---
endif
endif