From patchwork Wed Nov 30 21:06:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9454927 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 17DDC60585 for ; Wed, 30 Nov 2016 21:07:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B2F92849A for ; Wed, 30 Nov 2016 21:07:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2740284A1; Wed, 30 Nov 2016 21:07:22 +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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D3482849A for ; Wed, 30 Nov 2016 21:07:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2412C6E569; Wed, 30 Nov 2016 21:07:17 +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.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 867CE6E569 for ; Wed, 30 Nov 2016 21:07:14 +0000 (UTC) Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0M6mZQ-1cxfyK2bHo-00wVDz; Wed, 30 Nov 2016 22:07:08 +0100 From: Arnd Bergmann To: Jordan Crouse Subject: [PATCH] drm/msm: adreno: fix build error without debugfs Date: Wed, 30 Nov 2016 22:06:25 +0100 Message-Id: <20161130210707.1768567-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:QLC8iXEp/FlhnZsPLgZ3hd6Ji7jdb8QfGnvP4Ha1JeoMdovlnA8 XUqke8ogNbgAy+ta8mcTvZI6g3Xz8Ej3HunJ6ZN4zOs9xbExtPgoN1N8mzLeGzXAOaGfeqn /VuLGwg0OgYZ+WT79gRSv93FnKm3WL56hS/lWzfLIbjci5G0ppuH8nREH8rbKgrDWRGEO49 i0YUINmxebaB7WT2XFK0g== X-UI-Out-Filterresults: notjunk:1; V01:K0:wrop5kwTwyY=:IyEVbl56AAm9SlY8ZmPk7x 8r6GIzTHrBvz9gbjKZdObbqlg5MNs9s1gypz/Rv2cTkuvOL/VRHcZBFZvlI3gzlIhb6rS33bd ZlMOtr9VzHYCWitvfI0spHYqinIofq6B0uUR7KfkD0D5F6lwSzxERkWqXxZl+xudr0gLtwg70 7NilIRWEnXmapZ2IKOr5vaiOYRpPZHHcCOiU8OZeuRLfIkaJFvu8udZqZairDWly+SH4Ysdbz 3hrKbArD/ZPi7CzZ9d+a6BtC1GIISj3QjPiZtg9f8gTI+bI9wm9rXldVF5Ea2JBrq/ENy2Dfc VK5TUrJuh0QfxXyXD4qSHF4QIvA2LwpLeuWsKtwDyWj5JHlcwuME7IZ/f5horuoWb83pHD8Xq /5ZyE9qA4LdSM+9Z5Hx3DVEpEKlZWI611Y4oTxCHMXpk9OkbwzEjJOaPlKTiE31WqyJqAVXyA pfXYne13nPoEjn6MYMiFHGn4xFJvt4g+A5uqbXuzcZJO+N4HRUS6KxuJc6J7Xk3xDMr+A6Afh NHrn8RnjQBJe20UIhLE6wx7aA49gL4+HPclJLyoKpovaeTJvcf999+lT6tMXs6LI86tLDoU6I SBqaECBMPKmS0vdcyvafkZVR63ez0ak3LgnxdJv6gAM0t1sscbI0v1ZNCWx8VRMmKsxfn/hE1 7zedsxF4w6xEOjFHmq14jW3kFzXl+0h/LIRfZRjeowtDipmvs/IHjphqhdWS+lvHkhcY= Cc: Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.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" X-Virus-Scanned: ClamAV using ClamSMTP The newly added a5xx support fails to build when debugfs is diabled: drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:4: error: 'struct msm_gpu_funcs' has no member named 'show' drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:11: error: 'a5xx_show' undeclared here (not in a function); did you mean 'a5xx_irq'? This adds a missing #ifdef. Fixes: b5f103ab98c7 ("drm/msm: gpu: Add A5XX target support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index b8647198c11c..657874077400 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -846,7 +846,9 @@ static const struct adreno_gpu_funcs funcs = { .idle = a5xx_idle, .irq = a5xx_irq, .destroy = a5xx_destroy, +#ifdef CONFIG_DEBUG_FS .show = a5xx_show, +#endif }, .get_timestamp = a5xx_get_timestamp, };