Hi Daniel,
FYI, the error/warning still remains.
tree:
https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx
head: cdf10f101ab7e0112a285ab86e1a62d80e7d2104
commit: 153af17b6a39176b294835304ae46e5234951a91 [9404/15264] LF-3774-3 ASoC: SOF: Fix
sof_ipc_msg_data for compress streams
config: x86_64-randconfig-a015-20211115 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
fbe72e41b99dc7994daac300d208a955be3e4a0a)
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
#
https://github.com/Freescale/linux-fslc/commit/153af17b6a39176b294835304a...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.10-2.1.x-imx
git checkout 153af17b6a39176b294835304ae46e5234951a91
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
> sound/soc/sof/ipc-stream.c:42:7: warning: variable
'pstream' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
if (substream) {
^~~~~~~~~
sound/soc/sof/ipc-stream.c:50:7: note: uninitialized use occurs here
if (pstream || sstream)
^~~~~~~
sound/soc/sof/ipc-stream.c:42:3: note: remove the 'if' if its condition is
always true
if (substream) {
^~~~~~~~~~~~~~~
sound/soc/sof/ipc-stream.c:38:33: note: initialize the variable 'pstream' to
silence this warning
struct sof_pcm_stream *pstream;
^
= NULL
1 warning generated.
vim +42 sound/soc/sof/ipc-stream.c
27
28 /* Mailbox-based Intel IPC implementation */
29 void sof_ipc_msg_data(struct snd_sof_dev *sdev,
30 struct snd_sof_pcm_stream *sps,
31 void *p, size_t sz)
32 {
33 if (!sps || !sdev->stream_box.size) {
34 sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz);
35 } else {
36 struct snd_pcm_substream *substream = sps->substream;
37 struct snd_compr_stream *cstream = sps->cstream;
38 struct sof_pcm_stream *pstream;
39 struct sof_compr_stream *sstream;
40 size_t posn_offset;
41
42 if (substream) {
43 pstream =
substream->runtime->private_data;
44 posn_offset = pstream->posn_offset;
45 } else {
46 sstream = cstream->runtime->private_data;
47 posn_offset = sstream->posn_offset;
48 }
49 /* The stream might already be closed */
50 if (pstream || sstream)
51 sof_mailbox_read(sdev, posn_offset, p, sz);
52 }
53 }
54 EXPORT_SYMBOL(sof_ipc_msg_data);
55
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org