tree:
https://github.com/thesofproject/linux pr/2371
head: caaa61b2dbc327075d31dce1e30c5be6e9271c3e
commit: caaa61b2dbc327075d31dce1e30c5be6e9271c3e [4/4] ASoC: SOF: sof-audio: Add helpers
to set up and destroy a pipeline
config: arm64-sof-customedconfig-sof-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout caaa61b2dbc327075d31dce1e30c5be6e9271c3e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>):
sound/soc/sof/sof-audio.c: In function 'sof_restore_pipelines':
sound/soc/sof/sof-audio.c:518:9: warning: unused variable 'ipc_size'
[-Wunused-variable]
518 | size_t ipc_size;
| ^~~~~~~~
sound/soc/sof/sof-audio.c: In function 'sof_pcm_pipeline_set_up':
> sound/soc/sof/sof-audio.c:139:1: warning: control reaches end of
non-void function [-Wreturn-type]
139 | }
| ^
sound/soc/sof/sof-audio.c: In function 'sof_pcm_pipeline_destroy':
sound/soc/sof/sof-audio.c:206:1: warning: control reaches end of non-void function
[-Wreturn-type]
206 | }
| ^
#
https://github.com/thesofproject/linux/commit/caaa61b2dbc327075d31dce1e30...
git remote add linux-sof-driver
https://github.com/thesofproject/linux
git fetch --no-tags linux-sof-driver pr/2371
git checkout caaa61b2dbc327075d31dce1e30c5be6e9271c3e
vim +139 sound/soc/sof/sof-audio.c
96
97 int sof_pcm_pipeline_set_up(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int
dir)
98 {
99 struct snd_sof_route_list *route_list = spcm->stream[dir].route_list;
100 struct snd_sof_widget *pipeline_widget = route_list->pipeline_widget;
101 int ret, i;
102
103 if (!route_list)
104 return -ENOENT;
105
106 /* set up pipeline widget */
107 ret = sof_widget_setup(sdev, pipeline_widget);
108 if (ret < 0)
109 return ret;
110
111 /* set up widgets and routes as we walk the list */
112 for (i = 0; i < route_list->num_widgets; i++) {
113 struct snd_sof_widget *swidget = route_list->widgets[i];
114
115 ret = sof_widget_setup(sdev, swidget);
116 if (ret < 0)
117 return ret;
118
119 /* set up the route with the previous widget */
120 if (i > 0) {
121 struct snd_sof_widget *wsink, *wsource;
122
123 if (dir == SNDRV_PCM_STREAM_PLAYBACK) {
124 wsink = swidget;
125 wsource = route_list->widgets[i - 1];
126 } else {
127 wsource = swidget;
128 wsink = route_list->widgets[i - 1];
129 }
130
131 ret = sof_route_set_up(sdev, wsource, wsink);
132 if (ret < 0)
133 return ret;
134 }
135 }
136
137 /* complete pipeline */
138 pipeline_widget->complete = snd_sof_complete_pipeline(sdev->dev,
pipeline_widget);
139 }
140
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org