summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imagination
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-12-04 08:32:10 +0100
committerMaxime Ripard <mripard@kernel.org>2023-12-06 14:07:50 +0100
commit4b83b783ad778f7e69312fa61d1bee8e76e2156f (patch)
tree3953984c15ec479d9e7ce005c4da168b754e095e /drivers/gpu/drm/imagination
parentdrm/imagination: Removed unused functions in pvr_fw_trace (diff)
downloadlinux-4b83b783ad778f7e69312fa61d1bee8e76e2156f.tar.xz
linux-4b83b783ad778f7e69312fa61d1bee8e76e2156f.zip
drm/imagination: move update_logtype() into ifdef section
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") Acked-by: Frank Binns <frank.binns@imgtec.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20231204073231.1164163-1-arnd@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/imagination')
-rw-r--r--drivers/gpu/drm/imagination/pvr_fw_trace.c4
1 files 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 30f41a10a0cf..7159fc479001 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 @@ err_up_read:
return err;
}
-#if defined(CONFIG_DEBUG_FS)
-
struct pvr_fw_trace_seq_data {
/** @buffer: Pointer to copy of trace data. */
u32 *buffer;