Re: [PATCH v7 13/13] ASoC: qcom: q6apm: Add support for early buffer mapping on DSP

From: Srinivas Kandagatla

Date: Wed Mar 25 2026 - 08:15:45 EST




On 3/24/26 8:25 PM, kernel test robot wrote:
> Hi Srinivas,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on broonie-sound/for-next]
> [also build test WARNING on next-20260324]
> [cannot apply to robh/for-next tiwai-sound/for-next tiwai-sound/for-linus linus/master v7.0-rc5]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Srinivas-Kandagatla/ASoC-qcom-q6apm-move-component-registration-to-unmanaged-version/20260324-160527
> base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
> patch link: https://lore.kernel.org/r/20260323223845.2126142-14-srinivas.kandagatla%40oss.qualcomm.com
> patch subject: [PATCH v7 13/13] ASoC: qcom: q6apm: Add support for early buffer mapping on DSP
> config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260325/202603250417.fEMbsde2-lkp@xxxxxxxxx/config)
> compiler: m68k-linux-gcc (GCC) 15.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603250417.fEMbsde2-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202603250417.fEMbsde2-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> sound/soc/qcom/qdsp6/q6apm.c: In function 'q6apm_free_fragments':
>>> sound/soc/qcom/qdsp6/q6apm.c:321:39: warning: variable 'data' set but not used [-Wunused-but-set-variable]

Looks like some last minute cleanup added this warning, will fix this in
next spin, thanks for reporting this.

--srini
> 321 | struct audioreach_graph_data *data;
> | ^~~~
>
>
> vim +/data +321 sound/soc/qcom/qdsp6/q6apm.c
>
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 318
> ab4c5c6ed2ed1e Srinivas Kandagatla 2026-03-23 319 int q6apm_free_fragments(struct q6apm_graph *graph, unsigned int dir)
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 320 {
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 @321 struct audioreach_graph_data *data;
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 322
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 323 if (dir == SNDRV_PCM_STREAM_PLAYBACK)
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 324 data = &graph->rx_data;
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 325 else
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 326 data = &graph->tx_data;
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 327
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 328 audioreach_graph_free_buf(graph);
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 329
> ab4c5c6ed2ed1e Srinivas Kandagatla 2026-03-23 330 return 0;
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 331 }
> ab4c5c6ed2ed1e Srinivas Kandagatla 2026-03-23 332 EXPORT_SYMBOL_GPL(q6apm_free_fragments);
> 25ab80db6b133c Srinivas Kandagatla 2021-10-26 333
>