All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto-linux:fw-cleanup-2020-07-28-v1 39/81] sound/soc/soc-dai.c:599:30: sparse: sparse: macro "soc_dai_mark_match" passed 4 arguments, but takes just 3
@ 2020-08-05  9:47 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-05  9:47 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

tree:   https://github.com/morimoto/linux fw-cleanup-2020-07-28-v1
head:   92678e01a0ba154ff221e81a9b861aa8e8f98e0f
commit: 07f5d42989decfcafb837844ee7abd89e738291d [39/81] ASoC: soc-pcm: care trigger rollback
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: x86_64-randconfig-s021-20200805 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-117-g8c7aee71-dirty
        git checkout 07f5d42989decfcafb837844ee7abd89e738291d
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> sound/soc/soc-dai.c:599:30: sparse: sparse: macro "soc_dai_mark_match" passed 4 arguments, but takes just 3
   sound/soc/soc-dai.c:599:30: sparse: sparse: undefined identifier 'soc_dai_mark_match'

# https://github.com/morimoto/linux/commit/07f5d42989decfcafb837844ee7abd89e738291d
git remote add morimoto-linux https://github.com/morimoto/linux
git remote update morimoto-linux
git checkout 07f5d42989decfcafb837844ee7abd89e738291d
vim +/soc_dai_mark_match +599 sound/soc/soc-dai.c

07f5d42989decf Kuninori Morimoto 2020-07-10  576  
42f2472d4689c0 Kuninori Morimoto 2020-04-24  577  int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream,
07f5d42989decf Kuninori Morimoto 2020-07-10  578  			    int cmd, int rollback)
42f2472d4689c0 Kuninori Morimoto 2020-04-24  579  {
0ceef681e34a61 Kuninori Morimoto 2020-07-20  580  	struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
42f2472d4689c0 Kuninori Morimoto 2020-04-24  581  	struct snd_soc_dai *dai;
07f5d42989decf Kuninori Morimoto 2020-07-10  582  	int i, r, ret = 0;
42f2472d4689c0 Kuninori Morimoto 2020-04-24  583  
07f5d42989decf Kuninori Morimoto 2020-07-10  584  	switch (cmd) {
07f5d42989decf Kuninori Morimoto 2020-07-10  585  	case SNDRV_PCM_TRIGGER_START:
07f5d42989decf Kuninori Morimoto 2020-07-10  586  	case SNDRV_PCM_TRIGGER_RESUME:
07f5d42989decf Kuninori Morimoto 2020-07-10  587  	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
42f2472d4689c0 Kuninori Morimoto 2020-04-24  588  		for_each_rtd_dais(rtd, i, dai) {
07f5d42989decf Kuninori Morimoto 2020-07-10  589  			ret = soc_dai_trigger(dai, substream, cmd);
42f2472d4689c0 Kuninori Morimoto 2020-04-24  590  			if (ret < 0)
07f5d42989decf Kuninori Morimoto 2020-07-10  591  				break;
07f5d42989decf Kuninori Morimoto 2020-07-10  592  			soc_dai_mark_push(dai, substream, trigger);
07f5d42989decf Kuninori Morimoto 2020-07-10  593  		}
07f5d42989decf Kuninori Morimoto 2020-07-10  594  		break;
07f5d42989decf Kuninori Morimoto 2020-07-10  595  	case SNDRV_PCM_TRIGGER_STOP:
07f5d42989decf Kuninori Morimoto 2020-07-10  596  	case SNDRV_PCM_TRIGGER_SUSPEND:
07f5d42989decf Kuninori Morimoto 2020-07-10  597  	case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
07f5d42989decf Kuninori Morimoto 2020-07-10  598  		for_each_rtd_dais(rtd, i, dai) {
07f5d42989decf Kuninori Morimoto 2020-07-10 @599  			if (!soc_dai_mark_match(dai, substream, trigger, rollback))
07f5d42989decf Kuninori Morimoto 2020-07-10  600  				continue;
07f5d42989decf Kuninori Morimoto 2020-07-10  601  
07f5d42989decf Kuninori Morimoto 2020-07-10  602  			r = soc_dai_trigger(dai, substream, cmd);
07f5d42989decf Kuninori Morimoto 2020-07-10  603  			if (r < 0)
07f5d42989decf Kuninori Morimoto 2020-07-10  604  				ret = r; /* use last ret */
07f5d42989decf Kuninori Morimoto 2020-07-10  605  			soc_dai_mark_pop(dai, substream, trigger);
42f2472d4689c0 Kuninori Morimoto 2020-04-24  606  		}
42f2472d4689c0 Kuninori Morimoto 2020-04-24  607  	}
42f2472d4689c0 Kuninori Morimoto 2020-04-24  608  
07f5d42989decf Kuninori Morimoto 2020-07-10  609  	return ret;
42f2472d4689c0 Kuninori Morimoto 2020-04-24  610  }
30819358ae7332 Kuninori Morimoto 2020-04-24  611  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36658 bytes --]

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

* [morimoto-linux:fw-cleanup-2020-07-28-v1 39/81] sound/soc/soc-dai.c:599:30: sparse: sparse: macro "soc_dai_mark_match" passed 4 arguments, but takes just 3
@ 2020-08-06  2:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-06  2:05 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/morimoto/linux fw-cleanup-2020-07-28-v1
head:   92678e01a0ba154ff221e81a9b861aa8e8f98e0f
commit: 07f5d42989decfcafb837844ee7abd89e738291d [39/81] ASoC: soc-pcm: care trigger rollback
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: x86_64-randconfig-s021-20200805 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-117-g8c7aee71-dirty
        git checkout 07f5d42989decfcafb837844ee7abd89e738291d
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)

>> sound/soc/soc-dai.c:599:30: sparse: sparse: macro "soc_dai_mark_match" passed 4 arguments, but takes just 3
   sound/soc/soc-dai.c:599:30: sparse: sparse: undefined identifier 'soc_dai_mark_match'

# https://github.com/morimoto/linux/commit/07f5d42989decfcafb837844ee7abd89e738291d
git remote add morimoto-linux https://github.com/morimoto/linux
git remote update morimoto-linux
git checkout 07f5d42989decfcafb837844ee7abd89e738291d
vim +/soc_dai_mark_match +599 sound/soc/soc-dai.c

07f5d42989decf Kuninori Morimoto 2020-07-10  576  
42f2472d4689c0 Kuninori Morimoto 2020-04-24  577  int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream,
07f5d42989decf Kuninori Morimoto 2020-07-10  578  			    int cmd, int rollback)
42f2472d4689c0 Kuninori Morimoto 2020-04-24  579  {
0ceef681e34a61 Kuninori Morimoto 2020-07-20  580  	struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
42f2472d4689c0 Kuninori Morimoto 2020-04-24  581  	struct snd_soc_dai *dai;
07f5d42989decf Kuninori Morimoto 2020-07-10  582  	int i, r, ret = 0;
42f2472d4689c0 Kuninori Morimoto 2020-04-24  583  
07f5d42989decf Kuninori Morimoto 2020-07-10  584  	switch (cmd) {
07f5d42989decf Kuninori Morimoto 2020-07-10  585  	case SNDRV_PCM_TRIGGER_START:
07f5d42989decf Kuninori Morimoto 2020-07-10  586  	case SNDRV_PCM_TRIGGER_RESUME:
07f5d42989decf Kuninori Morimoto 2020-07-10  587  	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
42f2472d4689c0 Kuninori Morimoto 2020-04-24  588  		for_each_rtd_dais(rtd, i, dai) {
07f5d42989decf Kuninori Morimoto 2020-07-10  589  			ret = soc_dai_trigger(dai, substream, cmd);
42f2472d4689c0 Kuninori Morimoto 2020-04-24  590  			if (ret < 0)
07f5d42989decf Kuninori Morimoto 2020-07-10  591  				break;
07f5d42989decf Kuninori Morimoto 2020-07-10  592  			soc_dai_mark_push(dai, substream, trigger);
07f5d42989decf Kuninori Morimoto 2020-07-10  593  		}
07f5d42989decf Kuninori Morimoto 2020-07-10  594  		break;
07f5d42989decf Kuninori Morimoto 2020-07-10  595  	case SNDRV_PCM_TRIGGER_STOP:
07f5d42989decf Kuninori Morimoto 2020-07-10  596  	case SNDRV_PCM_TRIGGER_SUSPEND:
07f5d42989decf Kuninori Morimoto 2020-07-10  597  	case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
07f5d42989decf Kuninori Morimoto 2020-07-10  598  		for_each_rtd_dais(rtd, i, dai) {
07f5d42989decf Kuninori Morimoto 2020-07-10 @599  			if (!soc_dai_mark_match(dai, substream, trigger, rollback))
07f5d42989decf Kuninori Morimoto 2020-07-10  600  				continue;
07f5d42989decf Kuninori Morimoto 2020-07-10  601  
07f5d42989decf Kuninori Morimoto 2020-07-10  602  			r = soc_dai_trigger(dai, substream, cmd);
07f5d42989decf Kuninori Morimoto 2020-07-10  603  			if (r < 0)
07f5d42989decf Kuninori Morimoto 2020-07-10  604  				ret = r; /* use last ret */
07f5d42989decf Kuninori Morimoto 2020-07-10  605  			soc_dai_mark_pop(dai, substream, trigger);
42f2472d4689c0 Kuninori Morimoto 2020-04-24  606  		}
42f2472d4689c0 Kuninori Morimoto 2020-04-24  607  	}
42f2472d4689c0 Kuninori Morimoto 2020-04-24  608  
07f5d42989decf Kuninori Morimoto 2020-07-10  609  	return ret;
42f2472d4689c0 Kuninori Morimoto 2020-04-24  610  }
30819358ae7332 Kuninori Morimoto 2020-04-24  611  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36658 bytes --]

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

end of thread, other threads:[~2020-08-06  2:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05  9:47 [morimoto-linux:fw-cleanup-2020-07-28-v1 39/81] sound/soc/soc-dai.c:599:30: sparse: sparse: macro "soc_dai_mark_match" passed 4 arguments, but takes just 3 kernel test robot
2020-08-06  2:05 kernel test robot

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.