Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2541724rdb; Sun, 3 Dec 2023 23:32:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7O3pt21SLEbMF0VH9g+xDv6J0vDRGZCC4ip1ZuAlnYDC2cUhJj/EGPM1G2trgme5HfmHl X-Received: by 2002:a17:902:6848:b0:1d0:4b44:8590 with SMTP id f8-20020a170902684800b001d04b448590mr3507589pln.54.1701675172369; Sun, 03 Dec 2023 23:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701675172; cv=none; d=google.com; s=arc-20160816; b=kzOp+bQHotwJftm1EZKszPu7SyYpsPCQGhNd2ji3fRET0sihaqRw1VLGzzOCcx4zFN FsoY09iDAnPvkN7CC1GgCe4rQlZL1yWBp2NJJ7JJWFl/hQ8wY86mzp0Vb6i9fyQHi3AJ s7RwN5Twp9pA9rAg+lswo+W/MdrBsmUgL1bECRHQX7v2JK/4vjAGOvJW9pDw+k499XIk QDCCzlgi77EK3ppaUuzPEoFKUvycbZBZQ0nrBor3/pQvr52jG4aHat0SEdup5lpllkQg wgj+dfOx1OcNHP0A4hdA/D4P7FkSzz/6kA7Ow+L81vprkA6id9Hk5JPL/Fmklvfay8fn UT0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=k4j3FBkzSSFI3mmBOm7Sjg/hFK45Ldh80up4f8VwKFY=; fh=t1y/6Uj1MsDCuWgFViRDCnLOrkXu6dIkO/SkqvoNEhE=; b=mw/4uH1TdW7gpT45xZsYeJgUYmmG4tWk7ym5UfBwVrK14pRQRBZgFnCMkQGjIpZ38l 7fOEG0qjifphC4sBTCx1BEurOUpyUy8NBRNYfmtWzbkg1NZSlh9O/tUU/DgJkHDq92bG OdKEaXR/wejabhUjpe7UCbf8aTwVRcTD2BuWMNTskald46vvjd7Ir5ORUX7lkE2XtuFm XS8Gej5mqdF2H/btrdDm/+Qgp6j6mqTQZDota/2SWVdQQjGcM2fZr41iRjY/DTV2wf0v fRv39g4sXJMoy6/noGdZVT6e1SJYDzL3CNV4Fpz5yoG4c9y+JdtsJgS9h1qiTBa+MSQp rHog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FFsiU+7o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id iz9-20020a170902ef8900b001d068dfe6e5si4170541plb.31.2023.12.03.23.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 23:32:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FFsiU+7o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E1A96807C864; Sun, 3 Dec 2023 23:32:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230504AbjLDHcc (ORCPT + 99 others); Mon, 4 Dec 2023 02:32:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDHcb (ORCPT ); Mon, 4 Dec 2023 02:32:31 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 629FDD7 for ; Sun, 3 Dec 2023 23:32:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 592E1C433C8; Mon, 4 Dec 2023 07:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701675158; bh=9hl2sop5ZT4amnXOtIjTHzdm3Zn4QZwIyXAyL/yWEsQ=; h=From:To:Cc:Subject:Date:From; b=FFsiU+7oMtiyy5BCm6J9eBs/i2GCEb1D7k4bvpF/43a78mGeagTz8grpZVEQoZYz5 TSj9Y1fNQmGIEtXtGpa4txjCgiSgmrewKFzpLD5QMJCra+uaHUsf0Fqu3BNNqPfAM9 OoEust+e7v++8M2pn8lSpSCzDdnuJ4/dViJdhqhk4OI1OFdulyegEV/exAjlGkbb6v e1yJqX8994rgQQqtoGA3vXp0Iv1+XGXR9+hhVbBeBNNPxUDgL1D5enYWvQcy4BNuS8 J4EbCxXngweR9Z+KjkksznfzjnpQ6UqfaIXwnqXF3h/u3VLPUXItqgSUxz2GXyHM3I ogZzxkUL1PXHA== From: Arnd Bergmann To: Frank Binns , Donald Robson , Matt Coster , Maarten Lankhorst , Maxime Ripard , Sarah Walker Cc: Arnd Bergmann , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/imagination: move update_logtype() into ifdef section Date: Mon, 4 Dec 2023 08:32:10 +0100 Message-Id: <20231204073231.1164163-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 03 Dec 2023 23:32:50 -0800 (PST) From: Arnd Bergmann This function is only used when debugfs is enabled, and otherwise causes a build warning: drivers/gpu/drm/imagination/pvr_fw_trace.c:135:1: error: 'update_logtype' defined but not used [-Werror=unused-function] Move the #ifdef check to include this function as well. Fixes: cb56cd610866 ("drm/imagination: Add firmware trace to debugfs") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/imagination/pvr_fw_trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imagination/pvr_fw_trace.c b/drivers/gpu/drm/imagination/pvr_fw_trace.c index 87a42fb6ace6..8261fa4f7f83 100644 --- a/drivers/gpu/drm/imagination/pvr_fw_trace.c +++ b/drivers/gpu/drm/imagination/pvr_fw_trace.c @@ -121,6 +121,8 @@ void pvr_fw_trace_fini(struct pvr_device *pvr_dev) pvr_fw_object_unmap_and_destroy(fw_trace->tracebuf_ctrl_obj); } +#if defined(CONFIG_DEBUG_FS) + /** * update_logtype() - Send KCCB command to trigger FW to update logtype * @pvr_dev: Target PowerVR device @@ -165,8 +167,6 @@ update_logtype(struct pvr_device *pvr_dev, u32 group_mask) return err; } -#if defined(CONFIG_DEBUG_FS) - static int fw_trace_group_mask_show(struct seq_file *m, void *data) { struct pvr_device *pvr_dev = m->private; -- 2.39.2