Hi Kuninori,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20200519]
[cannot apply to sound/for-next v5.7-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-soc-l...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: parisc-randconfig-r011-20200521 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/sound/soc.h:18,
from sound/soc/soc-link.c:8:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro
'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:202:2: note: in expansion of macro 'pte_clear'
202 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
include/asm-generic/pgtable.h:641:2: note: in expansion of macro 'set_pte_at'
641 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
sound/soc/soc-link.c: At top level:
sound/soc/soc-link.c:28:5: warning: no previous prototype for 'snd_soc_link_init'
[-Wmissing-prototypes]
28 | int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
| ^~~~~~~~~~~~~~~~~
<< from sound/soc/soc-link.c:8:
> sound/soc/soc-link.c:38:5: warning: no previous prototype for
'snd_soc_link_startup' [-Wmissing-prototypes]
38 | int
snd_soc_link_startup(struct snd_soc_pcm_runtime *rtd,
| ^~~~~~~~~~~~~~~~~~~~
<< from sound/soc/soc-link.c:8:
> sound/soc/soc-link.c:50:6: warning: no previous prototype for
'snd_soc_link_shutdown' [-Wmissing-prototypes]
50 | void
snd_soc_link_shutdown(struct snd_soc_pcm_runtime *rtd,
| ^~~~~~~~~~~~~~~~~~~~~
<< from sound/soc/soc-link.c:8:
> sound/soc/soc-link.c:58:5: warning: no previous prototype for
'snd_soc_link_prepare' [-Wmissing-prototypes]
58 | int
snd_soc_link_prepare(struct snd_soc_pcm_runtime *rtd,
| ^~~~~~~~~~~~~~~~~~~~
<< from sound/soc/soc-link.c:8:
> sound/soc/soc-link.c:70:5: warning: no previous prototype for
'snd_soc_link_hw_params' [-Wmissing-prototypes]
70 | int
snd_soc_link_hw_params(struct snd_soc_pcm_runtime *rtd,
| ^~~~~~~~~~~~~~~~~~~~~~
<< from sound/soc/soc-link.c:8:
> sound/soc/soc-link.c:83:6: warning: no previous prototype for
'snd_soc_link_hw_free' [-Wmissing-prototypes]
83 | void
snd_soc_link_hw_free(struct snd_soc_pcm_runtime *rtd,
| ^~~~~~~~~~~~~~~~~~~~
<< from sound/soc/soc-link.c:8:
> sound/soc/soc-link.c:91:5: warning: no previous prototype for
'snd_soc_link_trigger' [-Wmissing-prototypes]
91 | int
snd_soc_link_trigger(struct snd_soc_pcm_runtime *rtd,
| ^~~~~~~~~~~~~~~~~~~~
vim +/snd_soc_link_startup +38 sound/soc/soc-link.c
37
38 int snd_soc_link_startup(struct snd_soc_pcm_runtime *rtd,
39 struct snd_pcm_substream *substream)
40 {
41 int ret = 0;
42
43 if (rtd->dai_link->ops &&
44 rtd->dai_link->ops->startup)
45 ret = rtd->dai_link->ops->startup(substream);
46
47 return soc_link_ret(rtd, ret);
48 }
49
50 void snd_soc_link_shutdown(struct snd_soc_pcm_runtime *rtd,
51 struct snd_pcm_substream *substream)
52 {
53 if (rtd->dai_link->ops &&
54 rtd->dai_link->ops->shutdown)
55 rtd->dai_link->ops->shutdown(substream);
56 }
57
58 int snd_soc_link_prepare(struct snd_soc_pcm_runtime *rtd,
59 struct snd_pcm_substream *substream)
60 {
61 int ret = 0;
62
63 if (rtd->dai_link->ops &&
64 rtd->dai_link->ops->prepare)
65 ret = rtd->dai_link->ops->prepare(substream);
66
67 return soc_link_ret(rtd, ret);
68 }
69
70 int snd_soc_link_hw_params(struct snd_soc_pcm_runtime *rtd,
71 struct snd_pcm_substream *substream,
72 struct snd_pcm_hw_params *params)
73 {
74 int ret = 0;
75
76 if (rtd->dai_link->ops &&
77 rtd->dai_link->ops->hw_params)
78 ret = rtd->dai_link->ops->hw_params(substream, params);
79
80 return soc_link_ret(rtd, ret);
81 }
82
83 void snd_soc_link_hw_free(struct snd_soc_pcm_runtime *rtd,
84 struct snd_pcm_substream *substream)
85 {
86 if (rtd->dai_link->ops &&
87 rtd->dai_link->ops->hw_free)
88 rtd->dai_link->ops->hw_free(substream);
89 }
90
91 int snd_soc_link_trigger(struct snd_soc_pcm_runtime *rtd,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org