Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C39431C6A1 for ; Fri, 6 Oct 2023 11:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HIENQ8v+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696591839; x=1728127839; h=date:from:to:cc:subject:message-id:mime-version; bh=H+IszHYM1esXLku7KOJni0bDrQ8n5hgTZEjMQefVctE=; b=HIENQ8v+2OZoRGYN4+hYPLqLrwC7YQhyfw5fVwlVuyFHQ/7xpVz/TMNd 1p33Rtg5PrrBXx5CdQTFVPCzvm1fd5KZfzuL7ax8VzaNGV7aV0Q05vL0O dFAzz+bHsirSj2LJjwsrDZfs6ZX1sMOZGw7wjxiokk1FUJdQUQROwLmv5 xj0IJef/2S2QBKw4DNOcg+W99jbSDny/pEwb364T9hWjxb9slfQ0BXO5V qDiEoUKiClhY2zUj4tQo+bFis/GGoghWuHMNVol3GUn49eM+7LNesDv67 ic1q1V4bg5Jy3Yfrcw6tEkOq4zevDx2lSWez5Kk1uDKShOM1nEPhIl+Hq g==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="2336686" X-IronPort-AV: E=Sophos;i="6.03,204,1694761200"; d="scan'208";a="2336686" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2023 04:30:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="875911093" X-IronPort-AV: E=Sophos;i="6.03,204,1694761200"; d="scan'208";a="875911093" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 06 Oct 2023 04:30:34 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qoj2N-000MYI-2m; Fri, 06 Oct 2023 11:30:31 +0000 Date: Fri, 6 Oct 2023 19:29:58 +0800 From: kernel test robot To: Kuninori Morimoto Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Mark Brown Subject: sound/soc/fsl/mpc5200_dma.c:116: warning: Function parameter or member 'component' not described in 'psc_dma_trigger' Message-ID: <202310061914.jJuekdHs-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b78b18fb8ee19f7a05f20c3abc865b3bfe182884 commit: 6d1048bc115259bb2664b8ef363351428a4aef30 ASoC: fsl: mpc5200_dma: remove snd_pcm_ops date: 4 years ago config: powerpc-randconfig-r005-20210929 (https://download.01.org/0day-ci/archive/20231006/202310061914.jJuekdHs-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231006/202310061914.jJuekdHs-lkp@intel.com/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 | Closes: https://lore.kernel.org/oe-kbuild-all/202310061914.jJuekdHs-lkp@intel.com/ All warnings (new ones prefixed by >>): >> sound/soc/fsl/mpc5200_dma.c:116: warning: Function parameter or member 'component' not described in 'psc_dma_trigger' sound/soc/fsl/mpc5200_dma.c:116: warning: Function parameter or member 'substream' not described in 'psc_dma_trigger' sound/soc/fsl/mpc5200_dma.c:116: warning: Function parameter or member 'cmd' not described in 'psc_dma_trigger' vim +116 sound/soc/fsl/mpc5200_dma.c 89dd0842527377 Jon Smirl 2009-05-23 107 89dd0842527377 Jon Smirl 2009-05-23 108 /** cebe77674cab51 Jon Smirl 2009-05-23 109 * psc_dma_trigger: start and stop the DMA transfer. 89dd0842527377 Jon Smirl 2009-05-23 110 * 89dd0842527377 Jon Smirl 2009-05-23 111 * This function is called by ALSA to start, stop, pause, and resume the DMA 89dd0842527377 Jon Smirl 2009-05-23 112 * transfer of data. 89dd0842527377 Jon Smirl 2009-05-23 113 */ 6d1048bc115259 Kuninori Morimoto 2019-10-02 114 static int psc_dma_trigger(struct snd_soc_component *component, 6d1048bc115259 Kuninori Morimoto 2019-10-02 115 struct snd_pcm_substream *substream, int cmd) 89dd0842527377 Jon Smirl 2009-05-23 @116 { 89dd0842527377 Jon Smirl 2009-05-23 117 struct snd_soc_pcm_runtime *rtd = substream->private_data; f0fba2ad1b6b53 Liam Girdwood 2010-03-17 118 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); 89dd0842527377 Jon Smirl 2009-05-23 119 struct snd_pcm_runtime *runtime = substream->runtime; 1d8222e8df07ce Grant Likely 2009-11-07 120 struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma); cebe77674cab51 Jon Smirl 2009-05-23 121 struct mpc52xx_psc __iomem *regs = psc_dma->psc_regs; 89dd0842527377 Jon Smirl 2009-05-23 122 u16 imr; 89dd0842527377 Jon Smirl 2009-05-23 123 unsigned long flags; dbcc3475623459 Jon Smirl 2009-05-26 124 int i; 89dd0842527377 Jon Smirl 2009-05-23 125 89dd0842527377 Jon Smirl 2009-05-23 126 switch (cmd) { 89dd0842527377 Jon Smirl 2009-05-23 127 case SNDRV_PCM_TRIGGER_START: c4878274750ae0 Grant Likely 2009-11-07 128 dev_dbg(psc_dma->dev, "START: stream=%i fbits=%u ps=%u #p=%u\n", c4878274750ae0 Grant Likely 2009-11-07 129 substream->pstr->stream, runtime->frame_bits, c4878274750ae0 Grant Likely 2009-11-07 130 (int)runtime->period_size, runtime->periods); 89dd0842527377 Jon Smirl 2009-05-23 131 s->period_bytes = frames_to_bytes(runtime, 89dd0842527377 Jon Smirl 2009-05-23 132 runtime->period_size); 8f159d720b89f2 Grant Likely 2009-11-07 133 s->period_next = 0; 8f159d720b89f2 Grant Likely 2009-11-07 134 s->period_current = 0; 89dd0842527377 Jon Smirl 2009-05-23 135 s->active = 1; c4878274750ae0 Grant Likely 2009-11-07 136 s->period_count = 0; dbcc3475623459 Jon Smirl 2009-05-26 137 s->runtime = runtime; dbcc3475623459 Jon Smirl 2009-05-26 138 dbcc3475623459 Jon Smirl 2009-05-26 139 /* Fill up the bestcomm bd queue and enable DMA. dbcc3475623459 Jon Smirl 2009-05-26 140 * This will begin filling the PSC's fifo. dbcc3475623459 Jon Smirl 2009-05-26 141 */ dbcc3475623459 Jon Smirl 2009-05-26 142 spin_lock_irqsave(&psc_dma->lock, flags); dbcc3475623459 Jon Smirl 2009-05-26 143 d56b6eb6df7f6f Grant Likely 2009-11-07 144 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) dbcc3475623459 Jon Smirl 2009-05-26 145 bcom_gen_bd_rx_reset(s->bcom_task); d56b6eb6df7f6f Grant Likely 2009-11-07 146 else d56b6eb6df7f6f Grant Likely 2009-11-07 147 bcom_gen_bd_tx_reset(s->bcom_task); d56b6eb6df7f6f Grant Likely 2009-11-07 148 dbcc3475623459 Jon Smirl 2009-05-26 149 for (i = 0; i < runtime->periods; i++) dbcc3475623459 Jon Smirl 2009-05-26 150 if (!bcom_queue_full(s->bcom_task)) dbcc3475623459 Jon Smirl 2009-05-26 151 psc_dma_bcom_enqueue_next_buffer(s); 89dd0842527377 Jon Smirl 2009-05-23 152 89dd0842527377 Jon Smirl 2009-05-23 153 bcom_enable(s->bcom_task); cebe77674cab51 Jon Smirl 2009-05-23 154 spin_unlock_irqrestore(&psc_dma->lock, flags); 89dd0842527377 Jon Smirl 2009-05-23 155 dbcc3475623459 Jon Smirl 2009-05-26 156 out_8(®s->command, MPC52xx_PSC_RST_ERR_STAT); dbcc3475623459 Jon Smirl 2009-05-26 157 89dd0842527377 Jon Smirl 2009-05-23 158 break; 89dd0842527377 Jon Smirl 2009-05-23 159 89dd0842527377 Jon Smirl 2009-05-23 160 case SNDRV_PCM_TRIGGER_STOP: c4878274750ae0 Grant Likely 2009-11-07 161 dev_dbg(psc_dma->dev, "STOP: stream=%i periods_count=%i\n", c4878274750ae0 Grant Likely 2009-11-07 162 substream->pstr->stream, s->period_count); 89dd0842527377 Jon Smirl 2009-05-23 163 s->active = 0; 89dd0842527377 Jon Smirl 2009-05-23 164 dbcc3475623459 Jon Smirl 2009-05-26 165 spin_lock_irqsave(&psc_dma->lock, flags); 89dd0842527377 Jon Smirl 2009-05-23 166 bcom_disable(s->bcom_task); dbcc3475623459 Jon Smirl 2009-05-26 167 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) dbcc3475623459 Jon Smirl 2009-05-26 168 bcom_gen_bd_rx_reset(s->bcom_task); dbcc3475623459 Jon Smirl 2009-05-26 169 else dbcc3475623459 Jon Smirl 2009-05-26 170 bcom_gen_bd_tx_reset(s->bcom_task); dbcc3475623459 Jon Smirl 2009-05-26 171 spin_unlock_irqrestore(&psc_dma->lock, flags); 89dd0842527377 Jon Smirl 2009-05-23 172 89dd0842527377 Jon Smirl 2009-05-23 173 break; 89dd0842527377 Jon Smirl 2009-05-23 174 89dd0842527377 Jon Smirl 2009-05-23 175 default: c4878274750ae0 Grant Likely 2009-11-07 176 dev_dbg(psc_dma->dev, "unhandled trigger: stream=%i cmd=%i\n", c4878274750ae0 Grant Likely 2009-11-07 177 substream->pstr->stream, cmd); 89dd0842527377 Jon Smirl 2009-05-23 178 return -EINVAL; 89dd0842527377 Jon Smirl 2009-05-23 179 } 89dd0842527377 Jon Smirl 2009-05-23 180 89dd0842527377 Jon Smirl 2009-05-23 181 /* Update interrupt enable settings */ 89dd0842527377 Jon Smirl 2009-05-23 182 imr = 0; cebe77674cab51 Jon Smirl 2009-05-23 183 if (psc_dma->playback.active) 89dd0842527377 Jon Smirl 2009-05-23 184 imr |= MPC52xx_PSC_IMR_TXEMP; cebe77674cab51 Jon Smirl 2009-05-23 185 if (psc_dma->capture.active) 89dd0842527377 Jon Smirl 2009-05-23 186 imr |= MPC52xx_PSC_IMR_ORERR; dbcc3475623459 Jon Smirl 2009-05-26 187 out_be16(®s->isr_imr.imr, psc_dma->imr | imr); 89dd0842527377 Jon Smirl 2009-05-23 188 89dd0842527377 Jon Smirl 2009-05-23 189 return 0; 89dd0842527377 Jon Smirl 2009-05-23 190 } 89dd0842527377 Jon Smirl 2009-05-23 191 :::::: The code at line 116 was first introduced by commit :::::: 89dd08425273773fd33fc85d48d152c5679b2fb4 ASoC: Basic split of mpc5200 DMA code out of mpc5200_psc_i2s :::::: TO: Jon Smirl :::::: CC: Mark Brown -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki