From: kernel test robot <lkp@intel.com>
To: Nick <nick.li@foursemi.com>,
lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, perex@perex.cz,
tiwai@suse.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
xiaoming.yang@foursemi.com, danyang.zheng@foursemi.com,
like.xy@foxmail.com, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/4] ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver
Date: Sat, 19 Jul 2025 06:40:51 +0800 [thread overview]
Message-ID: <202507190618.Gu5xvSUt-lkp@intel.com> (raw)
In-Reply-To: <20250718121221.76957-5-nick.li@foursemi.com>
Hi Nick,
kernel test robot noticed the following build warnings:
[auto build test WARNING on ed73a24357531e1747a6e140c329015da6429629]
url: https://github.com/intel-lab-lkp/linux/commits/Nick/dt-bindings-vendor-prefixes-Add-Shanghai-FourSemi-Semiconductor-Co-Ltd/20250718-201609
base: ed73a24357531e1747a6e140c329015da6429629
patch link: https://lore.kernel.org/r/20250718121221.76957-5-nick.li%40foursemi.com
patch subject: [PATCH v3 4/4] ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver
config: i386-buildonly-randconfig-004-20250719 (https://download.01.org/0day-ci/archive/20250719/202507190618.Gu5xvSUt-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190618.Gu5xvSUt-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507190618.Gu5xvSUt-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> sound/soc/codecs/fs210x.c:1086:2: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
1086 | default:
| ^~~~~~~
sound/soc/codecs/fs210x.c:1092:9: note: uninitialized use occurs here
1092 | return ret;
| ^~~
>> sound/soc/codecs/fs210x.c:1077:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
1077 | if (!fs210x->clk_bclk)
| ^~~~~~~~~~~~~~~~~
sound/soc/codecs/fs210x.c:1092:9: note: uninitialized use occurs here
1092 | return ret;
| ^~~
sound/soc/codecs/fs210x.c:1077:3: note: remove the 'if' if its condition is always false
1077 | if (!fs210x->clk_bclk)
| ^~~~~~~~~~~~~~~~~~~~~~
1078 | break;
| ~~~~~
sound/soc/codecs/fs210x.c:1062:9: note: initialize the variable 'ret' to silence this warning
1062 | int ret;
| ^
| = 0
2 warnings generated.
vim +/ret +1086 sound/soc/codecs/fs210x.c
1056
1057 static int fs210x_playback_event(struct snd_soc_dapm_widget *w,
1058 struct snd_kcontrol *kc, int event)
1059 {
1060 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
1061 struct fs210x_priv *fs210x = snd_soc_component_get_drvdata(cmpnt);
1062 int ret;
1063
1064 mutex_lock(&fs210x->lock);
1065
1066 if (fs210x->is_suspended) {
1067 mutex_unlock(&fs210x->lock);
1068 return 0;
1069 }
1070
1071 switch (event) {
1072 case SND_SOC_DAPM_PRE_PMU:
1073 /*
1074 * If there is no bclk for us to set the clock output,
1075 * we will enable the device(start_work) in dai trigger.
1076 */
> 1077 if (!fs210x->clk_bclk)
1078 break;
1079 fs210x_bclk_set(fs210x, true);
1080 ret = fs210x_dev_play(fs210x);
1081 break;
1082 case SND_SOC_DAPM_POST_PMD:
1083 ret = fs210x_dev_stop(fs210x);
1084 fs210x_bclk_set(fs210x, false);
1085 break;
> 1086 default:
1087 break;
1088 }
1089
1090 mutex_unlock(&fs210x->lock);
1091
1092 return ret;
1093 }
1094
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-07-18 22:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-18 12:12 [PATCH v3 0/4] ASoC: codecs: Add support for FourSemi FS2104/5S Nick
2025-07-18 12:12 ` [PATCH v3 1/4] dt-bindings: vendor-prefixes: Add Shanghai FourSemi Semiconductor Co.,Ltd Nick
2025-07-21 0:38 ` Rob Herring
2025-07-18 12:12 ` [PATCH v3 2/4] ASoC: dt-bindings: Add FS2104/5S audio amplifiers Nick
2025-07-21 0:39 ` Rob Herring (Arm)
2025-07-18 12:12 ` [PATCH v3 3/4] ASoC: codecs: Add library for FourSemi " Nick
2025-07-18 12:12 ` [PATCH v3 4/4] ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver Nick
2025-07-18 22:40 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202507190618.Gu5xvSUt-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=danyang.zheng@foursemi.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=like.xy@foxmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nick.li@foursemi.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=tiwai@suse.com \
--cc=xiaoming.yang@foursemi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®