lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 26 Jun 2023 22:54:56 +0800
From:   Sui Jingfeng <suijingfeng@...ngson.cn>
To:     Thierry Reding <thierry.reding@...il.com>,
        Mikko Perttunen <mperttunen@...dia.com>,
        David Airlie <airlied@...il.com>,
        Daniel Vetter <daniel@...ll.ch>,
        Jonathan Hunter <jonathanh@...dia.com>
Cc:     dri-devel@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH] drm/tegra: Kconfig: Express the dependency by using the depends on

Because using the 'depends on' is easy to understand and more obvious.

Signed-off-by: Sui Jingfeng <suijingfeng@...ngson.cn>
---
 drivers/gpu/drm/tegra/Kconfig | 6 ++----
 drivers/gpu/host1x/Kconfig    | 5 +----
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig
index 498313778175..e7e3856665b1 100644
--- a/drivers/gpu/drm/tegra/Kconfig
+++ b/drivers/gpu/drm/tegra/Kconfig
@@ -26,19 +26,17 @@ config DRM_TEGRA
 	  To compile this driver as a module, choose M here: the module
 	  will be called tegra-drm.
 
-if DRM_TEGRA
-
 config DRM_TEGRA_DEBUG
 	bool "NVIDIA Tegra DRM debug support"
+	depends on DRM_TEGRA
 	help
 	  Say yes here to enable debugging support.
 
 config DRM_TEGRA_STAGING
 	bool "Enable HOST1X interface"
+	depends on DRM_TEGRA
 	depends on STAGING
 	help
 	  Say yes if HOST1X should be available for userspace DRM users.
 
 	  If unsure, choose N.
-
-endif
diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig
index e6c78ae2003a..36eb98d93637 100644
--- a/drivers/gpu/host1x/Kconfig
+++ b/drivers/gpu/host1x/Kconfig
@@ -17,14 +17,11 @@ config TEGRA_HOST1X
 	  by host1x are referred to as clients. host1x includes some other
 	  functionality, such as synchronization.
 
-if TEGRA_HOST1X
-
 config TEGRA_HOST1X_FIREWALL
 	bool "Enable HOST1X security firewall"
+	depends on TEGRA_HOST1X
 	default y
 	help
 	  Say yes if kernel should protect command streams from tampering.
 
 	  If unsure, choose Y.
-
-endif
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ