From: kernel test robot <lkp@intel.com>
To: "Peter Griffin" <peter.griffin@linaro.org>,
"Vinod Koul" <vkoul@kernel.org>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"André Draszik" <andre.draszik@linaro.org>,
"Tudor Ambarus" <tudor.ambarus@linaro.org>,
"Alim Akhtar" <alim.akhtar@samsung.com>,
"Krzysztof Kozlowski" <krzk@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, kernel-team@android.com,
William Mcvicker <willmcvicker@google.com>,
Manivannan Sadhasivam <mani@kernel.org>,
neil.armstrong@linaro.org,
Peter Griffin <peter.griffin@linaro.org>
Subject: Re: [PATCH v3 2/2] phy: samsung: gs101-ufs: Add .notify_phystate() & hibern8 enter/exit values
Date: Thu, 14 Aug 2025 16:15:16 +0800 [thread overview]
Message-ID: <202508141555.NJvU2oYQ-lkp@intel.com> (raw)
In-Reply-To: <20250813-phy-notify-pmstate-v3-2-3bda59055dd3@linaro.org>
Hi Peter,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 43c3c17f0c805882d1b48818b1085747a68c80ec]
url: https://github.com/intel-lab-lkp/linux/commits/Peter-Griffin/phy-add-new-phy_notify_state-api/20250813-231312
base: 43c3c17f0c805882d1b48818b1085747a68c80ec
patch link: https://lore.kernel.org/r/20250813-phy-notify-pmstate-v3-2-3bda59055dd3%40linaro.org
patch subject: [PATCH v3 2/2] phy: samsung: gs101-ufs: Add .notify_phystate() & hibern8 enter/exit values
config: arm-randconfig-001-20250814 (https://download.01.org/0day-ci/archive/20250814/202508141555.NJvU2oYQ-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 3769ce013be2879bf0b329c14a16f5cb766f26ce)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508141555.NJvU2oYQ-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/202508141555.NJvU2oYQ-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/phy/samsung/phy-samsung-ufs.c:232:11: warning: variable 'cfg' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
232 | else if (state.ufs_state == PHY_UFS_HIBERN8_EXIT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/samsung/phy-samsung-ufs.c:235:19: note: uninitialized use occurs here
235 | for_each_phy_cfg(cfg) {
| ^~~
drivers/phy/samsung/phy-samsung-ufs.c:232:7: note: remove the 'if' if its condition is always true
232 | else if (state.ufs_state == PHY_UFS_HIBERN8_EXIT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
233 | cfg = ufs_phy->cfgs_hibern8[CFG_PRE_HIBERN8_EXIT];
drivers/phy/samsung/phy-samsung-ufs.c:224:39: note: initialize the variable 'cfg' to silence this warning
224 | const struct samsung_ufs_phy_cfg *cfg;
| ^
| = NULL
1 warning generated.
vim +232 drivers/phy/samsung/phy-samsung-ufs.c
219
220 static int samsung_ufs_phy_notify_state(struct phy *phy,
221 union phy_notify state)
222 {
223 struct samsung_ufs_phy *ufs_phy = get_samsung_ufs_phy(phy);
224 const struct samsung_ufs_phy_cfg *cfg;
225 int i, err;
226
227 if (!ufs_phy->cfgs_hibern8)
228 return 0;
229
230 if (state.ufs_state == PHY_UFS_HIBERN8_ENTER)
231 cfg = ufs_phy->cfgs_hibern8[CFG_POST_HIBERN8_ENTER];
> 232 else if (state.ufs_state == PHY_UFS_HIBERN8_EXIT)
233 cfg = ufs_phy->cfgs_hibern8[CFG_PRE_HIBERN8_EXIT];
234
235 for_each_phy_cfg(cfg) {
236 for_each_phy_lane(ufs_phy, i) {
237 samsung_ufs_phy_config(ufs_phy, cfg, i);
238 }
239 }
240
241 if (state.ufs_state == PHY_UFS_HIBERN8_EXIT) {
242 for_each_phy_lane(ufs_phy, i) {
243 if (ufs_phy->drvdata->wait_for_cdr) {
244 err = ufs_phy->drvdata->wait_for_cdr(phy, i);
245 if (err)
246 goto err_out;
247 }
248 }
249 }
250
251 return 0;
252 err_out:
253 return err;
254 }
255
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-08-14 8:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-13 15:00 [PATCH v3 0/2] Add new phy_notify_state() api Peter Griffin
2025-08-13 15:00 ` [PATCH v3 1/2] phy: add " Peter Griffin
2025-08-20 16:34 ` Vinod Koul
2025-09-11 12:23 ` Peter Griffin
2025-10-31 8:52 ` Peter Griffin
2025-08-13 15:00 ` [PATCH v3 2/2] phy: samsung: gs101-ufs: Add .notify_phystate() & hibern8 enter/exit values Peter Griffin
2025-08-14 8:15 ` 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=202508141555.NJvU2oYQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=alim.akhtar@samsung.com \
--cc=andre.draszik@linaro.org \
--cc=kernel-team@android.com \
--cc=kishon@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mani@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peter.griffin@linaro.org \
--cc=tudor.ambarus@linaro.org \
--cc=vkoul@kernel.org \
--cc=willmcvicker@google.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®