From: kernel test robot <lkp@intel.com>
To: "Amit Sunil Dhamne via B4 Relay"
<devnull+amitsd.google.com@kernel.org>,
"Sebastian Reichel" <sre@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"André Draszik" <andre.draszik@linaro.org>,
"Lee Jones" <lee@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Badhri Jagan Sridharan" <badhri@google.com>,
"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
"Peter Griffin" <peter.griffin@linaro.org>,
"Tudor Ambarus" <tudor.ambarus@linaro.org>,
"Alim Akhtar" <alim.akhtar@samsung.com>,
"Mark Brown" <broonie@kernel.org>,
"Matti Vaittinen" <matti.vaittinen@fi.rohmeurope.com>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org,
RD Babiera <rdbabiera@google.com>, Kyle Tso <kyletso@google.com>,
Amit Sunil Dhamne <amitsd@google.com>
Subject: Re: [PATCH v6 5/6] power: supply: max77759: add charger driver
Date: Sat, 14 Feb 2026 16:56:15 +0800 [thread overview]
Message-ID: <202602141606.igFDFWAJ-lkp@intel.com> (raw)
In-Reply-To: <20260214-max77759-charger-v6-5-28c09bda74b4@google.com>
Hi Amit,
kernel test robot noticed the following build errors:
[auto build test ERROR on 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d]
url: https://github.com/intel-lab-lkp/linux/commits/Amit-Sunil-Dhamne-via-B4-Relay/dt-bindings-mfd-maxim-max77759-reference-power-supply-schema-and-add-regulator-property/20260214-111637
base: 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d
patch link: https://lore.kernel.org/r/20260214-max77759-charger-v6-5-28c09bda74b4%40google.com
patch subject: [PATCH v6 5/6] power: supply: max77759: add charger driver
config: powerpc64-randconfig-001-20260214 (https://download.01.org/0day-ci/archive/20260214/202602141606.igFDFWAJ-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260214/202602141606.igFDFWAJ-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/202602141606.igFDFWAJ-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/power/supply/max77759_charger.c:623:4: error: cannot jump from this goto statement to its label
623 | goto err;
| ^
drivers/power/supply/max77759_charger.c:631:2: note: jump bypasses initialization of variable with __attribute__((cleanup))
631 | guard(mutex)(&chg->retry_lock);
| ^
include/linux/cleanup.h:414:15: note: expanded from macro 'guard'
414 | CLASS(_name, __UNIQUE_ID(guard))
| ^
include/linux/compiler.h:168:2: note: expanded from macro '__UNIQUE_ID'
168 | __PASTE(__UNIQUE_ID_, \
| ^
include/linux/compiler_types.h:16:23: note: expanded from macro '__PASTE'
16 | #define __PASTE(a, b) ___PASTE(a, b)
| ^
include/linux/compiler_types.h:15:24: note: expanded from macro '___PASTE'
15 | #define ___PASTE(a, b) a##b
| ^
<scratch space>:18:1: note: expanded from here
18 | __UNIQUE_ID_guard_461
| ^
drivers/power/supply/max77759_charger.c:615:3: error: cannot jump from this goto statement to its label
615 | goto err;
| ^
drivers/power/supply/max77759_charger.c:631:2: note: jump bypasses initialization of variable with __attribute__((cleanup))
631 | guard(mutex)(&chg->retry_lock);
| ^
include/linux/cleanup.h:414:15: note: expanded from macro 'guard'
414 | CLASS(_name, __UNIQUE_ID(guard))
| ^
include/linux/compiler.h:168:2: note: expanded from macro '__UNIQUE_ID'
168 | __PASTE(__UNIQUE_ID_, \
| ^
include/linux/compiler_types.h:16:23: note: expanded from macro '__PASTE'
16 | #define __PASTE(a, b) ___PASTE(a, b)
| ^
include/linux/compiler_types.h:15:24: note: expanded from macro '___PASTE'
15 | #define ___PASTE(a, b) a##b
| ^
<scratch space>:18:1: note: expanded from here
18 | __UNIQUE_ID_guard_461
| ^
drivers/power/supply/max77759_charger.c:606:3: error: cannot jump from this goto statement to its label
606 | goto err;
| ^
drivers/power/supply/max77759_charger.c:631:2: note: jump bypasses initialization of variable with __attribute__((cleanup))
631 | guard(mutex)(&chg->retry_lock);
| ^
include/linux/cleanup.h:414:15: note: expanded from macro 'guard'
414 | CLASS(_name, __UNIQUE_ID(guard))
| ^
include/linux/compiler.h:168:2: note: expanded from macro '__UNIQUE_ID'
168 | __PASTE(__UNIQUE_ID_, \
| ^
include/linux/compiler_types.h:16:23: note: expanded from macro '__PASTE'
16 | #define __PASTE(a, b) ___PASTE(a, b)
| ^
include/linux/compiler_types.h:15:24: note: expanded from macro '___PASTE'
15 | #define ___PASTE(a, b) a##b
| ^
<scratch space>:18:1: note: expanded from here
18 | __UNIQUE_ID_guard_461
| ^
3 errors generated.
vim +623 drivers/power/supply/max77759_charger.c
591
592 static void psy_work_item(struct work_struct *work)
593 {
594 struct max77759_charger *chg =
595 container_of(work, struct max77759_charger, psy_work.work);
596 union power_supply_propval current_limit, online;
597 int ret;
598
599 ret = power_supply_get_property(chg->tcpm_psy,
600 POWER_SUPPLY_PROP_CURRENT_MAX,
601 ¤t_limit);
602 if (ret) {
603 dev_err(chg->dev,
604 "Failed to get CURRENT_MAX psy property, ret=%d",
605 ret);
606 goto err;
607 }
608
609 ret = power_supply_get_property(chg->tcpm_psy, POWER_SUPPLY_PROP_ONLINE,
610 &online);
611 if (ret) {
612 dev_err(chg->dev,
613 "Failed to get ONLINE psy property, ret=%d",
614 ret);
615 goto err;
616 }
617
618 if (online.intval && current_limit.intval) {
619 ret = set_input_current_limit(chg, current_limit.intval);
620 if (ret) {
621 dev_err(chg->dev,
622 "Unable to set current limit, ret=%d", ret);
> 623 goto err;
624 }
625
626 charger_set_mode(chg, MAX77759_CHGR_MODE_CHG_BUCK_ON);
627 } else {
628 charger_set_mode(chg, MAX77759_CHGR_MODE_OFF);
629 }
630
631 guard(mutex)(&chg->retry_lock);
632
633 if (chg->psy_work_retry_cnt)
634 dev_dbg(chg->dev, "chg psy_work succeeded after %u tries",
635 chg->psy_work_retry_cnt);
636 chg->psy_work_retry_cnt = 0;
637 return;
638
639 err:
640 charger_set_mode(chg, MAX77759_CHGR_MODE_OFF);
641 guard(mutex)(&chg->retry_lock);
642
643 if (chg->psy_work_retry_cnt >= MAX_NUM_RETRIES) {
644 dev_err(chg->dev, "chg psy work failed, giving up");
645 return;
646 }
647
648 ++chg->psy_work_retry_cnt;
649 dev_dbg(chg->dev, "Retrying %u/%u chg psy_work",
650 chg->psy_work_retry_cnt, MAX_NUM_RETRIES);
651 schedule_delayed_work(&chg->psy_work,
652 msecs_to_jiffies(PSY_WORK_RETRY_DELAY_MS));
653 }
654
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-02-14 8:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-14 3:12 [PATCH v6 0/6] Introduce MAX77759 charger driver Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
2026-02-14 3:12 ` [PATCH v6 1/6] dt-bindings: mfd: maxim,max77759: reference power-supply schema and add regulator property Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
2026-02-14 3:12 ` [PATCH v6 2/6] dt-bindings: usb: maxim,max33359: Add supply property for vbus Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
2026-02-14 3:12 ` [PATCH v6 3/6] mfd: max77759: add register bitmasks and modify irq configs for charger Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
2026-02-17 12:30 ` André Draszik
2026-02-14 3:12 ` [PATCH v6 4/6] lib/linear_ranges: Add linear_range_get_selector_high_array Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
2026-02-16 13:58 ` Matti Vaittinen
2026-02-18 1:45 ` Amit Sunil Dhamne
2026-02-18 8:17 ` Matti Vaittinen
2026-02-18 20:05 ` Amit Sunil Dhamne
2026-02-14 3:12 ` [PATCH v6 5/6] power: supply: max77759: add charger driver Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
2026-02-14 8:56 ` kernel test robot [this message]
2026-02-17 13:14 ` André Draszik
2026-02-18 5:35 ` Amit Sunil Dhamne
2026-02-14 3:12 ` [PATCH v6 6/6] usb: typec: tcpm/tcpci_maxim: deprecate WAR for setting charger mode Amit Sunil Dhamne
2026-02-14 3:12 ` Amit Sunil Dhamne via B4 Relay
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=202602141606.igFDFWAJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=alim.akhtar@samsung.com \
--cc=amitsd@google.com \
--cc=andre.draszik@linaro.org \
--cc=badhri@google.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+amitsd.google.com@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=krzk@kernel.org \
--cc=kyletso@google.com \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=mazziesaccount@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peter.griffin@linaro.org \
--cc=rdbabiera@google.com \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
--cc=tudor.ambarus@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.