Re: [PATCH v4 4/6] virtio: cmd: Depend on VIRTIO_BLK

Angelo Dureghello
2026-04-16T09:09:47Z

Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>

On 4/13/26 11:22, Daniel Palmer wrote:
> The virtio command is calling virtio blk functions but currently
> depends on CONFIG_VIRTIO only. This means disabling CONFIG_VIRTIO_BLK
> causes the final link to fail.
>
> Since CONFIG_VIRTIO_BLK depends on CONFIG_VIRTIO switch to depending
> on just CONFIG_VIRTIO_BLK
>
> Signed-off-by: Daniel Palmer <daniel@thingy.jp>
> ---
> cmd/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 7bbeaad04ff4..7c86164ddb20 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -1863,8 +1863,8 @@ config CMD_PVBLOCK
>
> config CMD_VIRTIO
> bool "virtio"
> - depends on VIRTIO
> - default y if VIRTIO
> + depends on VIRTIO_BLK
> + default y if VIRTIO_BLK
> help
> VirtIO block device support
>

-- Angelo