All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: sound/soc/qcom/lpass-platform.c:226 __lpass_get_id() error: uninitialized symbol 'id'.
Date: Mon, 09 May 2022 00:05:32 +0800	[thread overview]
Message-ID: <202205082317.9Dw0U3zx-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3515 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
CC: Mark Brown <broonie@kernel.org>
CC: Venkata Prasad Potturu <quic_potturu@quicinc.com>
CC: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   30c8e80f79329617012f07b09b70114592092ea4
commit: 16413d5c5a2ed81d8fece1c5fe0b85752ecdbdf2 ASoC: qcom: Add helper function to get dma control and lpaif handle
date:   2 months ago
:::::: branch date: 22 hours ago
:::::: commit date: 2 months ago
config: openrisc-randconfig-m031-20220506 (https://download.01.org/0day-ci/archive/20220508/202205082317.9Dw0U3zx-lkp(a)intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
sound/soc/qcom/lpass-platform.c:226 __lpass_get_id() error: uninitialized symbol 'id'.

vim +/id +226 sound/soc/qcom/lpass-platform.c

16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  202  
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  203  static int __lpass_get_id(const struct snd_pcm_substream *substream,
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  204  				     struct snd_soc_component *component)
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  205  {
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  206  	struct snd_soc_pcm_runtime *soc_runtime = asoc_substream_to_rtd(substream);
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  207  	struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(soc_runtime, 0);
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  208  	struct lpass_data *drvdata = snd_soc_component_get_drvdata(component);
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  209  	struct snd_pcm_runtime *rt = substream->runtime;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  210  	struct lpass_pcm_data *pcm_data = rt->private_data;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  211  	struct lpass_variant *v = drvdata->variant;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  212  	int id;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  213  
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  214  	switch (cpu_dai->driver->id) {
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  215  	case MI2S_PRIMARY ... MI2S_QUINARY:
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  216  		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  217  			id = pcm_data->dma_ch;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  218  		else
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  219  			id = pcm_data->dma_ch - v->wrdma_channel_start;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  220  		break;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  221  	case LPASS_DP_RX:
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  222  		id = pcm_data->dma_ch;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  223  		break;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  224  	}
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  225  
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 @226  	return id;
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  227  }
16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24  228  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

             reply	other threads:[~2022-05-08 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-08 16:05 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-26 15:56 sound/soc/qcom/lpass-platform.c:226 __lpass_get_id() error: uninitialized symbol 'id' kernel test robot
2022-03-28 10:53 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202205082317.9Dw0U3zx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.