From: Vincent Legoll <vincent.legoll@gmail.com>
To: linux-kernel@vger.kernel.org, sumit.semwal@linaro.org,
daniel.vetter@intel.com, jani.nikula@linux.intel.com,
seanpaul@chromium.org, airlied@linux.ie, robdclark@gmail.com,
linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
linaro-mm-sig@lists.linaro.org, linux-arm-msm@vger.kernel.org,
freedreno@lists.freedesktop.org
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] Make DMABUF a menuconfig to ease disabling it all
Date: Mon, 17 Apr 2017 12:22:21 +0200 [thread overview]
Message-ID: <20170417102221.5096-1-vincent.legoll@gmail.com> (raw)
No need to get into the submenu to disable all DMABUF-related config entries
Make the selecters also select the new DMABUF menuconfig
Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
drivers/dma-buf/Kconfig | 7 ++++---
drivers/gpu/drm/Kconfig | 1 +
drivers/gpu/drm/msm/Kconfig | 1 +
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig
index ed3b785..ad5075f 100644
--- a/drivers/dma-buf/Kconfig
+++ b/drivers/dma-buf/Kconfig
@@ -1,8 +1,10 @@
-menu "DMABUF options"
+menuconfig DMABUF
+ bool "DMABUF options"
config SYNC_FILE
bool "Explicit Synchronization Framework"
default n
+ depends on DMABUF
select ANON_INODES
select DMA_SHARED_BUFFER
---help---
@@ -20,6 +22,7 @@ config SYNC_FILE
config SW_SYNC
bool "Sync File Validation Framework"
default n
+ depends on DMABUF
depends on SYNC_FILE
depends on DEBUG_FS
---help---
@@ -29,5 +32,3 @@ config SW_SYNC
WARNING: improper use of this can result in deadlocking kernel
drivers from userspace. Intended for test and debug only.
-
-endmenu
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 88e01e08e..c9c21c8 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -12,6 +12,7 @@ menuconfig DRM
select I2C
select I2C_ALGOBIT
select DMA_SHARED_BUFFER
+ select DMABUF
select SYNC_FILE
help
Kernel-level support for the Direct Rendering Infrastructure (DRI)
diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig
index 5b8e23d..fdc621b 100644
--- a/drivers/gpu/drm/msm/Kconfig
+++ b/drivers/gpu/drm/msm/Kconfig
@@ -12,6 +12,7 @@ config DRM_MSM
select TMPFS
select QCOM_SCM
select SND_SOC_HDMI_CODEC if SND_SOC
+ select DMABUF
select SYNC_FILE
default y
help
--
2.9.3
reply other threads:[~2017-04-17 10:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170417102221.5096-1-vincent.legoll@gmail.com \
--to=vincent.legoll@gmail.com \
--cc=airlied@linux.ie \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=robdclark@gmail.com \
--cc=seanpaul@chromium.org \
--cc=sumit.semwal@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®