From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C3F53B2AA; Sun, 26 Apr 2026 00:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777161799; cv=none; b=On+e2MPueRgQCxngNvVsi6yhKt5NjYAoHd4cxEZbfGnWmzYOM2pORbpGHW8EsY5VpX+3wY7TBgi+FIm+phr7JhLJQv5QaC0Nthj7isBlaJEjZD/NgnlVoypPUDxNrrvd4tWuaLo2npiApjApBifxWtG+egOV3VgUKTeUsLHPhU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777161799; c=relaxed/simple; bh=fRUVeoN8uvXw7MHUq4fqZfehszDdVoUoVfxpW6ndWIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QrjhrnmIi+j5xU7Ct3k6qnfGb2mgWjGdlkGEY9BSYp02RUwEitpU+BCCOc7Hkoc3JS/bL76a0XRaosIgPo9696whAGktmsB09ak+wJ2x/syBAIj5JbcAUC7ark7lPDVGRLznZdfCaj38X60iq5xUoSdRRsbtc+/WhN9X4fP2wGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CJQp0/4O; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CJQp0/4O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62DA5C2BCB2; Sun, 26 Apr 2026 00:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777161799; bh=fRUVeoN8uvXw7MHUq4fqZfehszDdVoUoVfxpW6ndWIk=; h=From:To:Cc:Subject:Date:From; b=CJQp0/4OO4rWyi4pC9SdeJ/kgRi0DiG4k/ULR0Y6jZSwArk/Z9LC77E47ZGDpr1xV tLc2PQUcrzGejG6hvR5fW54tCy6m7mLQSSMqHaB7mAXWZpNJlAKrfAUZD4hAhW3aeL S8JFyhqvhkJe29AQKdS5pLHb8RXtWZ1KSblubfAhAZtPyKchRgCQpxdZJo37Xy3IXl Mm0I2yB/R5e9OFbWJgzfJn8uRHORaN2sQeblN7aBOf/OdyMxplGFET/45iRD27fS16 VZBQdhZiLr6LuYVCnixACEhpoHGg8SOk5mkwk0ttFI/M5gXzcvrbimwP+UXifh5OUY lcfhBUJz+KOFw== From: Sasha Levin To: Dmitry Osipenko Cc: Mauro Carvalho Chehab , Thierry Reding , Jonathan Hunter , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: tegra-vde: Add HAS_IOMEM dependency to match SRAM select Date: Sat, 25 Apr 2026 20:03:16 -0400 Message-ID: <20260426000317.55689-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit kconfiglint reports: K002: config VIDEO_TEGRA_VDE selects visible symbol SRAM which has dependencies VIDEO_TEGRA_VDE selects SRAM, which is defined in drivers/misc/Kconfig as: config SRAM bool "Generic on-chip SRAM driver" depends on HAS_IOMEM The NVIDIA Tegra video decoder driver was originally introduced in commit cd6c56feb591 ("media: staging: media: Introduce NVIDIA Tegra video decoder driver") as a staging driver with `depends on ARCH_TEGRA || COMPILE_TEST` and `select SRAM`. Since all Tegra SoCs have HAS_IOMEM, the SRAM dependency was implicitly satisfied for real hardware configurations. The driver was later de-staged in commit 8bd4aaf438e3 ("media: staging: tegra-vde: De-stage driver") and relocated to drivers/media/platform/nvidia/tegra-vde/ in commit 9b18ef7c9ff4 ("media: platform: rename tegra/vde/ to nvidia/tegra-vde/"). Throughout these moves, the `select SRAM` remained without a corresponding HAS_IOMEM dependency. Under COMPILE_TEST on a hypothetical architecture without HAS_IOMEM (such as UML in some configurations), the select would force SRAM on without its HAS_IOMEM dependency being met. Add an explicit `depends on HAS_IOMEM` to make the dependency chain complete and prevent this misconfiguration under COMPILE_TEST. Assisted-by: Claude:claude-opus-4-6 kconfiglint Signed-off-by: Sasha Levin --- drivers/media/platform/nvidia/tegra-vde/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/nvidia/tegra-vde/Kconfig b/drivers/media/platform/nvidia/tegra-vde/Kconfig index 2fe13f39c95bb..f05fcc94decaf 100644 --- a/drivers/media/platform/nvidia/tegra-vde/Kconfig +++ b/drivers/media/platform/nvidia/tegra-vde/Kconfig @@ -2,6 +2,7 @@ config VIDEO_TEGRA_VDE tristate "NVIDIA Tegra Video Decoder Engine driver" depends on V4L_MEM2MEM_DRIVERS depends on ARCH_TEGRA || COMPILE_TEST + depends on HAS_IOMEM depends on VIDEO_DEV select DMA_SHARED_BUFFER select IOMMU_IOVA -- 2.53.0