From: kernel test robot <lkp@intel.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
Date: Fri, 25 Sep 2026 23:07:21 +0200 [thread overview]
Message-ID: <202609252049.3VHQla9a-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 165768bb70265b5c38cf0b73fafd75be235f8b14
commit: 3c36965df80801344850388592e95033eceea05b regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators
date: 11 months ago
config: i386-randconfig-2100-20260925 (https://download.01.org/0day-ci/archive/20260925/202609252049.3VHQla9a-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
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
| Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609252049.3VHQla9a-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
drivers/regulator/mt6363-regulator.c:843:2-3: Unneeded semicolon
vim +366 drivers/regulator/mt6363-regulator.c
348
349 static unsigned int mt6363_regulator_get_mode(struct regulator_dev *rdev)
350 {
351 struct mt6363_regulator_info *info = rdev_get_drvdata(rdev);
352 unsigned int val;
353 int ret;
354
355 if (info->modeset_reg) {
356 ret = regmap_read(rdev->regmap, info->modeset_reg, &val);
357 if (ret) {
358 dev_err(&rdev->dev, "Failed to get mt6363 mode: %d\n", ret);
359 return ret;
360 }
361
362 if (val & info->modeset_mask)
363 return REGULATOR_MODE_FAST;
364 } else {
365 val = 0;
> 366 };
367
368 ret = regmap_read(rdev->regmap, info->hw_lp_mode_reg, &val);
369 val &= info->hw_lp_mode_mask;
370
371 if (ret) {
372 dev_err(&rdev->dev, "Failed to get lp mode: %d\n", ret);
373 return ret;
374 }
375
376 if (val)
377 return REGULATOR_MODE_IDLE;
378 else
379 return REGULATOR_MODE_NORMAL;
380 }
381
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-09-25 21:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 21:07 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-02-16 13:10 kernel test robot
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=202609252049.3VHQla9a-lkp@intel.com \
--to=lkp@intel.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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®