From patchwork Mon Mar 6 20:27:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9607537 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 CBD63602B4 for ; Mon, 6 Mar 2017 20:28:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B87D528418 for ; Mon, 6 Mar 2017 20:28:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD1422840E; Mon, 6 Mar 2017 20:28:30 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 405E02840E for ; Mon, 6 Mar 2017 20:28:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B770E6E19A; Mon, 6 Mar 2017 20:28:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 998146E195 for ; Mon, 6 Mar 2017 20:28:28 +0000 (UTC) Received: by mail-qk0-x22f.google.com with SMTP id y76so42649313qkb.0 for ; Mon, 06 Mar 2017 12:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=POguAB9zL1MNxL403/KfsV4ADMx3HLLm+nkJz2XIAAg=; b=gcU5Xdqdlf3YadoJOU+kWzxQrOTiNOK+bLI2VBMPRFc+X5ec7w0t2LVTVYaM+U2on2 y75VSAj/V8zW78ULBvHpuzGCd8mwpfE9pWaqm10qdwMP16urXQO56/QNkcnudpwFdzvl a3Xfq91/dYDI0H4ORgT4sl3r055cYOJXOCPoE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=POguAB9zL1MNxL403/KfsV4ADMx3HLLm+nkJz2XIAAg=; b=Z/8+6RECBexgMq+nnJXfZdItKkXYoZkAnIBGirJm1+xBufDxtUFQZ9CeKdQ99U2ovc HgqP/508BtNFcRiFu7N5WQZxfQLzwHvUIiHvOYr0W5q+rkFOjzX+TuJJOnhwEFGPh15S JKih4XoCGdfZ8U4tTZFpDkk4349bw4ikz0HjfvmWaP80WL6mfFfzP+DlzJ1zz0uCKmoy KNHTozz3VGUz9EbKdlOK9kmWec1GVB4H6MFmp6aFwxY7kaIEs2RoAnp5yVA9cVgcY/R6 rs7REjjPwdZLSXuwYyThdoV1TiKyC7oeVunSbLBeOOFFGd/IaSrg0ukrKQavGDsl0RUh kJnQ== X-Gm-Message-State: AMke39nvmaoXIRJIv8C5UspIiHzL/F8zJNX74Y55wz+HUfDiEQ8giA5vqEe9k41vnLB6Jubz X-Received: by 10.55.140.134 with SMTP id o128mr17184042qkd.206.1488832107806; Mon, 06 Mar 2017 12:28:27 -0800 (PST) Received: from boxwood.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id t30sm14084837qtt.56.2017.03.06.12.28.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Mar 2017 12:28:26 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] drm/msm: Fix compilation error when CONFIG_DEBUG_FS undefined Date: Mon, 6 Mar 2017 15:27:15 -0500 Message-Id: <20170306202722.9301-4-seanpaul@chromium.org> X-Mailer: git-send-email 2.12.0.rc1.440.g5b76565f74-goog In-Reply-To: <20170306202722.9301-1-seanpaul@chromium.org> References: <20170306202722.9301-1-seanpaul@chromium.org> MIME-Version: 1.0 Cc: linux-arm-msm@vger.kernel.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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following compilation error when CONFIG_DEBUG_FS undefined: CC [M] drivers/gpu/drm/msm/adreno/a5xx_gpu.o ../drivers/gpu/drm/msm/adreno/a5xx_gpu.c:863:3: error: unknown field ‘show’ specified in initializer ../drivers/gpu/drm/msm/adreno/a5xx_gpu.c:863:11: error: ‘a5xx_show’ undeclared here (not in a function) ../drivers/gpu/drm/msm/adreno/a5xx_gpu.c:863:3: warning: excess elements in struct initializer [enabled by default] ../drivers/gpu/drm/msm/adreno/a5xx_gpu.c:863:3: warning: (near initialization for ‘funcs.base’) [enabled by default] make[5]: *** [drivers/gpu/drm/msm/adreno/a5xx_gpu.o] Error 1 make[4]: *** [drivers/gpu/drm/msm] Error 2 make[4]: *** Waiting for unfinished jobs.... Fixes: b5f103ab98c7 ("drm/msm: gpu: Add A5XX target support") Cc: Jordan Crouse Cc: Rob Clark Signed-off-by: Sean Paul Acked-by: Jordan Crouse --- 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 4414cf73735d..f0c8bd74ca91 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -860,7 +860,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, };