From patchwork Wed Aug 10 21:54:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9274267 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88835600CB for ; Wed, 10 Aug 2016 21:57:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76CBB28338 for ; Wed, 10 Aug 2016 21:57:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B5A82840F; Wed, 10 Aug 2016 21:57:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 15B8528338 for ; Wed, 10 Aug 2016 21:57:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bXbUv-0007We-0n; Wed, 10 Aug 2016 21:57:13 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bXbUe-0007NO-0p; Wed, 10 Aug 2016 21:56:57 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0M36tX-1bGDFw3mbf-00stZe; Wed, 10 Aug 2016 23:56:24 +0200 From: Arnd Bergmann To: David Airlie Subject: [PATCH 3/9] drm/mediatek: add COMMON_CLK dependency Date: Wed, 10 Aug 2016 23:54:09 +0200 Message-Id: <20160810215424.1926658-4-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160810215424.1926658-1-arnd@arndb.de> References: <20160810215424.1926658-1-arnd@arndb.de> X-Provags-ID: V03:K0:CQEVIpbZ4Rxj/MRAYZUmf1QWNiiP9KIhKIxnAgwJxugXbJEI8dj D7hJkHrQlglrExyaQyQu323EGpDI+Bx8J3Od28iOmREwDvZr3w+cmFoZw+4IaGrfmdJeQVB m8sU6B4DYz/zTke0iYk5P5boVeuBGt2Zk7hJrBr38W+eqXRNuK5IW6WXQc42ZyDcGp8Esy3 4NPQXBvhIRYbfH3H0gcJQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:xnLJZLZaoq4=:+XMkP96Yc6CDvGr/CxCaqI HghQp6vadSqeC50FIzWW98WQ90dk3AKTzUxoUuCGk3B6ypBpqsFe01SlRypUhdG2mqs1BTUVH KsVgkkGhkboMZDcOJ/jSoRCoXgf6CHYmV+mc6eddTZN1YUtL0/mSnJpvDdAKVpLjY8D3YIMzx gvh2O8MPoWCLgSK3mrBRW64EvJ/9QDYcNBkOtdajRt5H5VFeaYoiwumRi7ShM+h49jdYmQ2Iz 0t+dvAAlC0qa4/qjPAb44SHKoYsMKDAV4d1QyjygLxveGnv73yNKxFbdMzPGdBVmO8/Bv29Ln iae9UgNK2oFDrcc7RMUbTOeCkW8OxQPwH211E+3CxVT6l4/qUgkiLmd4m1dtttz5OZxzG7L8E wWwwlBfPxNq+m10OUMa+HfslhTNViT4LvMOk0pvFJF76uVQnBuCOXxGeYYH+2xT7j1CaxUvHT x21U2nvdId8YgPjh7aU0BUXOkpnZEImbB5TNzvcODAsqSz4aoHbqxpKgpuTHs2rLDEIl81+wx r09MJ3iHQ8sqkVSYLRTQtoObpc7C7QF9Ioga95QI9vOvfqEG1Zz78zAN/ffalwfGtGsbrJB8f REHPy9F3/iH6B4RiAmJRcPTnPTPcgtIQ4NUCX9XuR3hgj+DXp19jZpDL4eEYnpbMLuY8HJ+x2 8ahVEsjNjIq1csN5nGzCdauUUoXgMwTFXqvMgmOdVNddLZuXgxV6Vqa8c3d3ZR1/jbyA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160810_145656_479979_45C76267 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Philipp Zabel , Matthias Brugger , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On kernel builds without COMMON_CLK, the newly added mediatek drm driver fails to build: drivers/gpu/drm/mediatek/mtk_mipi_tx.c:130:16: error: field 'pll_hw' has incomplete type struct clk_hw pll_hw; ^~~~~~ In file included from ../include/linux/clk.h:16:0, from ../drivers/gpu/drm/mediatek/mtk_mipi_tx.c:14: drivers/gpu/drm/mediatek/mtk_mipi_tx.c: In function 'mtk_mipi_tx_from_clk_hw': include/linux/kernel.h:831:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] const typeof( ((type *)0)->member ) *__mptr = (ptr); \ ^ /drivers/gpu/drm/mediatek/mtk_mipi_tx.c:136:9: note: in expansion of macro 'container_of' return container_of(hw, struct mtk_mipi_tx, pll_hw); ^~~~~~~~~~~~ drivers/gpu/drm/mediatek/mtk_mipi_tx.c: At top level: drivers/gpu/drm/mediatek/mtk_mipi_tx.c:302:21: error: variable 'mtk_mipi_tx_pll_ops' has initializer but incomplete type static const struct clk_ops mtk_mipi_tx_pll_ops = { This adds the required Kconfig dependency. Signed-off-by: Arnd Bergmann Acked-by: Philipp Zabel Link: https://patchwork.kernel.org/patch/9069061/ --- I originally sent this on May 11 2016 after the driver was added with this bug, but my fix never made it in. --- drivers/gpu/drm/mediatek/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig index 23ac8041c562..5c2163737691 100644 --- a/drivers/gpu/drm/mediatek/Kconfig +++ b/drivers/gpu/drm/mediatek/Kconfig @@ -2,6 +2,7 @@ config DRM_MEDIATEK tristate "DRM Support for Mediatek SoCs" depends on DRM depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) + depends on COMMON_CLK select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER select DRM_MIPI_DSI