mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:843:6: error: variable 'out' set but not used
@ 2024-03-26 18:04 Miguel Ojeda
  2024-03-26 18:19 ` Dmitry Baryshkov
  0 siblings, 1 reply; 10+ messages in thread
From: Miguel Ojeda @ 2024-03-26 18:04 UTC (permalink / raw)
  To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov
  Cc: Sean Paul, Marijn Suijten, David Airlie, Daniel Vetter,
	linux-arm-msm, dri-devel, freedreno, linux-kernel

Hi,

In today's next, I got:

    drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:843:6: error: variable
'out' set but not used [-Werror,-Wunused-but-set-variable]

`out` seems to be there since commit 64d6255650d4 ("drm/msm: More
fully implement devcoredump for a7xx").

Untested diff below assuming `dumper->iova` is constant -- if you want
a formal patch, please let me know.

Cheers,
Miguel

diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
index 1f5245fc2cdc..a847a0f7a73c 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
@@ -852,7 +852,7 @@ static void a6xx_get_shader_block(struct msm_gpu *gpu,
             (block->type << 8) | i);

         in += CRASHDUMP_READ(in, REG_A6XX_HLSQ_DBG_AHB_READ_APERTURE,
-            block->size, dumper->iova + A6XX_CD_DATA_OFFSET);
+            block->size, out);

         out += block->size * sizeof(u32);
     }

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-26 21:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 18:04 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:843:6: error: variable 'out' set but not used Miguel Ojeda
2024-03-26 18:19 ` Dmitry Baryshkov
2024-03-26 18:31   ` Abhinav Kumar
2024-03-26 18:34     ` Miguel Ojeda
2024-03-26 19:10     ` Dmitry Baryshkov
2024-03-26 19:32       ` Abhinav Kumar
2024-03-26 19:47         ` Dmitry Baryshkov
2024-03-26 19:51           ` Connor Abbott
2024-03-26 19:56           ` Abhinav Kumar
2024-03-26 21:30             ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®