tree:
https://github.com/thesofproject/linux pr/2703
head: 38a2cdd220ec09c85557ece34c1ef30bc22249b2
commit: c86509bfc24be4724ef3544ff34d2c03102a138e [4/5] ASoC: SOF: Make sof_period_elapsed
generic
config: x86_64-sof-customedconfig-sof-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/thesofproject/linux/commit/c86509bfc24be4724ef3544ff34...
git remote add linux-sof-driver
https://github.com/thesofproject/linux
git fetch --no-tags linux-sof-driver pr/2703
git checkout c86509bfc24be4724ef3544ff34d2c03102a138e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from sound/soc/sof/intel/hda.c:28:
> sound/soc/sof/intel/../sof-audio.h:212:1: warning:
'inline' is not at beginning of declaration [-Wold-style-declaration]
212 | static void inline snd_sof_period_elapsed(struct snd_sof_pcm_stream *sps)
| ^~~~~~
sound/soc/sof/intel/../sof-audio.h:225:1: warning: 'inline' is not at beginning
of declaration [-Wold-style-declaration]
225 | static void inline snd_sof_period_elapsed_work(struct work_struct *work)
| ^~~~~~
--
In file included from sound/soc/sof/intel/apl.c:20:
> sound/soc/sof/intel/../sof-audio.h:212:1: warning:
'inline' is not at beginning of declaration [-Wold-style-declaration]
212 | static void inline snd_sof_period_elapsed(struct snd_sof_pcm_stream *sps)
| ^~~~~~
sound/soc/sof/intel/../sof-audio.h:225:1: warning: 'inline' is not at beginning
of declaration [-Wold-style-declaration]
225 | static void inline snd_sof_period_elapsed_work(struct work_struct *work)
| ^~~~~~
sound/soc/sof/intel/apl.c:53:18: error: initialization of 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} from
incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
53 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/apl.c:53:18: note: (near initialization for
'sof_apl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
In file included from sound/soc/sof/intel/cnl.c:21:
> sound/soc/sof/intel/../sof-audio.h:212:1: warning:
'inline' is not at beginning of declaration [-Wold-style-declaration]
212 | static void inline snd_sof_period_elapsed(struct snd_sof_pcm_stream *sps)
| ^~~~~~
sound/soc/sof/intel/../sof-audio.h:225:1: warning: 'inline' is not at beginning
of declaration [-Wold-style-declaration]
225 | static void inline snd_sof_period_elapsed_work(struct work_struct *work)
| ^~~~~~
sound/soc/sof/intel/cnl.c:258:18: error: initialization of 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} from
incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
258 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/cnl.c:258:18: note: (near initialization for
'sof_cnl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
In file included from sound/soc/sof/intel/tgl.c:15:
> sound/soc/sof/intel/../sof-audio.h:212:1: warning:
'inline' is not at beginning of declaration [-Wold-style-declaration]
212 | static void inline snd_sof_period_elapsed(struct snd_sof_pcm_stream *sps)
| ^~~~~~
sound/soc/sof/intel/../sof-audio.h:225:1: warning: 'inline' is not at beginning
of declaration [-Wold-style-declaration]
225 | static void inline snd_sof_period_elapsed_work(struct work_struct *work)
| ^~~~~~
sound/soc/sof/intel/tgl.c:49:18: error: initialization of 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} from
incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
49 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/tgl.c:49:18: note: (near initialization for
'sof_tgl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
In file included from sound/soc/sof/intel/icl.c:19:
> sound/soc/sof/intel/../sof-audio.h:212:1: warning:
'inline' is not at beginning of declaration [-Wold-style-declaration]
212 | static void inline snd_sof_period_elapsed(struct snd_sof_pcm_stream *sps)
| ^~~~~~
sound/soc/sof/intel/../sof-audio.h:225:1: warning: 'inline' is not at beginning
of declaration [-Wold-style-declaration]
225 | static void inline snd_sof_period_elapsed_work(struct work_struct *work)
| ^~~~~~
sound/soc/sof/intel/icl.c:52:18: error: initialization of 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'void (*)(struct
snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} from
incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *,
void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
52 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/icl.c:52:18: note: (near initialization for
'sof_icl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
vim +/inline +212 sound/soc/sof/intel/../sof-audio.h
211
212 static void inline snd_sof_period_elapsed(struct
snd_sof_pcm_stream *sps)
213 {
214 if (sps->substream &&
!sps->substream->runtime->no_period_wakeup) {
215 snd_sof_pcm_period_elapsed(sps->substream);
216 return;
217 }
218
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org