From patchwork Mon May 22 15:20:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 100307 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp296557qge; Mon, 22 May 2017 08:21:42 -0700 (PDT) X-Received: by 10.84.218.133 with SMTP id r5mr30349736pli.19.1495466502065; Mon, 22 May 2017 08:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495466502; cv=none; d=google.com; s=arc-20160816; b=kJDYZ3p58U2q/twexxtC77OXVQ71ZqE28SDRR9LNscc3dGONvJgsz3q0p+P2MeVS3z pRrPRpKDHtHAL3KZyMWkPJLdQRUKaSalQX2ZtmS+RGbYr3r87GCGbvyhwDCqroLb/2nZ oqKbNjrKoLLalHDgLpORoxTjGF8z3TK1eWW+2n3kxqakG0X8+eQ8+vRbSqQDLpdC/he8 fU7Xh4YAlFqP2xNrs9m+tlD7YJyxLPfzv0elRn0IYHe5Wp5NV3Rz0c6Wd2LYYq4vscR9 a3nEq842Ms4t1JSY3meP/X4w4DzHb/C8kT6YFZ1myg0yvSCluXlzBfUie10WscH7eMiV SOSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=fmIXrSRWGCt7g5hWOhIX07scpT1iwXH3cDYjKsVQcNY=; b=uFeEjs1/+R5GoivJfhnETRz3m9nFMSB4wBzYc9qH3z31WwEt5exn6AC64sETL2nn2t OxEGHcOoBWWm1GlWjav1gEcRCcB537xmFiNsOYlp6QcnNRYZziylrHKbbOJ/fqTsslqa Z573mHxrVFdJf9OOdMylgG3ArExg52ylDEfQpHRUYyhfXYAZpBR/QdjJ7UGeD0upHr9v U4UwVIkw1zO7VKZfK4D9cbZb50DomPbzQm4enutFx0Hil8DvaQElbBScb5Fv+8K63Hjm pHjPfzXOPU96UmP07md0Oe6974t4x6uhxNcj0o8p8l1CSPzMpXXnvWPaKG6pWpLty5ax yiyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id c196si4319773pga.152.2017.05.22.08.21.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 08:21:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C194E89DCF; Mon, 22 May 2017 15:21:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F78B89DCF for ; Mon, 22 May 2017 15:21:08 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lw14n-1e2VxA2ip3-017pui; Mon, 22 May 2017 17:21:01 +0200 From: Arnd Bergmann To: Eric Anholt , David Airlie Subject: [PATCH] drm/pl111: add ARM_AMBA dependency Date: Mon, 22 May 2017 17:20:08 +0200 Message-Id: <20170522152058.3346428-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.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vger.kernel.org, Krzysztof Kozlowski , Kukjin Kim , dri-devel@lists.freedesktop.org, Colin Ian King , linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The driver is written in a way to enable compile-testing without CONFIG_ARM_AMBA, but it just causes needless warnings: drivers/gpu/drm/pl111/pl111_drv.c:149:26: error: 'pl111_drm_driver' defined but not used [-Werror=unused-variable] drivers/gpu/drm/pl111/pl111_drv.c:81:12: error: 'pl111_modeset_init' defined but not used [-Werror=unused-function] This removes the #ifdef instead, and adds a dependency on ARM_AMBA to only let us build the driver when the base support is enabled. Unfortunately, this requires removing one redundant 'select ARM_AMBA' line from mach-s3c64xx to avoid a circular dependency. It might be good to allow manually enabling ARM_AMBA when COMPILE_TEST is turned on, but that should be a separate patch and may cause other build regressions. Fixes: bed41005e617 ("drm/pl111: Initial drm/kms driver for pl111") Signed-off-by: Arnd Bergmann --- arch/arm/mach-s3c64xx/Kconfig | 1 - drivers/gpu/drm/pl111/Kconfig | 1 + drivers/gpu/drm/pl111/pl111_drv.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 459214fa20b4..5ee5ad74a3d6 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig @@ -40,7 +40,6 @@ config CPU_S3C6410 config S3C64XX_PL080 def_bool DMADEVICES - select ARM_AMBA select AMBA_PL08X config S3C64XX_SETUP_SDHCI diff --git a/drivers/gpu/drm/pl111/Kconfig b/drivers/gpu/drm/pl111/Kconfig index 309f4fd52de7..e2f393fcc4bf 100644 --- a/drivers/gpu/drm/pl111/Kconfig +++ b/drivers/gpu/drm/pl111/Kconfig @@ -2,6 +2,7 @@ config DRM_PL111 tristate "DRM Support for PL111 CLCD Controller" depends on DRM depends on ARM || ARM64 || COMPILE_TEST + depends on ARM_AMBA depends on COMMON_CLK select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c index 97095b1aa961..dce382f97f8c 100644 --- a/drivers/gpu/drm/pl111/pl111_drv.c +++ b/drivers/gpu/drm/pl111/pl111_drv.c @@ -179,7 +179,6 @@ static struct drm_driver pl111_drm_driver = { #endif }; -#ifdef CONFIG_ARM_AMBA static int pl111_amba_probe(struct amba_device *amba_dev, const struct amba_id *id) { @@ -262,7 +261,6 @@ static struct amba_driver pl111_amba_driver = { }; module_amba_driver(pl111_amba_driver); -#endif /* CONFIG_ARM_AMBA */ MODULE_DESCRIPTION(DRIVER_DESC); MODULE_AUTHOR("ARM Ltd.");