From: kernel test robot <lkp@intel.com>
To: Markus Elfring <Markus.Elfring@web.de>,
linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Sebastian Reichel <sre@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Christophe Jaillet <christophe.jaillet@wanadoo.fr>,
Florian Fainelli <f.fainelli@gmail.com>,
Frank Li <Frank.Li@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [PATCH] power: reset: at91: Use devm_clk_get_enabled() in three probe functions
Date: Tue, 24 Nov 2026 22:35:27 +0800 [thread overview]
Message-ID: <20261124222203.k0pVspdI-lkp@intel.com> (raw)
In-Reply-To: <de6c1040-c4d1-4703-9932-b3b668801c72@web.de>
Hi Markus,
kernel test robot noticed the following build warnings:
[auto build test WARNING on sre-power-supply/for-next]
[also build test WARNING on amd-pstate/linux-next amd-pstate/bleeding-edge clk/clk-next soc/for-next nferre-at91/at91-next linus/master v7.4-rc4 next-20261123]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Markus-Elfring/power-reset-at91-Use-devm_clk_get_enabled-in-three-probe-functions/20261124-095011
base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
patch link: https://lore.kernel.org/r/de6c1040-c4d1-4703-9932-b3b668801c72%40web.de
patch subject: [PATCH] power: reset: at91: Use devm_clk_get_enabled() in three probe functions
config: arm-defconfig (https://download.01.org/0day-ci/archive/20261124/20261124222203.k0pVspdI-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 2012344e5da8e03ea4b8283ecd6fad6e13f09d64)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261124/20261124222203.k0pVspdI-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/20261124222203.k0pVspdI-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/power/reset/at91-poweroff.c:156:6: warning: unused variable 'ret' [-Wunused-variable]
156 | int ret;
| ^~~
1 warning generated.
vim +/ret +156 drivers/power/reset/at91-poweroff.c
ae499f0fadaf28b Maxime Ripard 2014-07-03 151
099806de68b75a0 Uwe Kleine-König 2023-11-04 152 static int at91_poweroff_probe(struct platform_device *pdev)
ae499f0fadaf28b Maxime Ripard 2014-07-03 153 {
0b0408745e7ff24 Alexandre Belloni 2016-10-25 154 struct device_node *np;
0b0408745e7ff24 Alexandre Belloni 2016-10-25 155 u32 ddr_type;
064380a12e12412 Alexandre Belloni 2015-08-11 @156 int ret;
ae499f0fadaf28b Maxime Ripard 2014-07-03 157
0b64a0e53cc7875 Yangtao Li 2023-07-04 158 at91_shdwc.shdwc_base = devm_platform_ioremap_resource(pdev, 0);
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 159 if (IS_ERR(at91_shdwc.shdwc_base))
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 160 return PTR_ERR(at91_shdwc.shdwc_base);
ae499f0fadaf28b Maxime Ripard 2014-07-03 161
e51202a7ed9dff5 Markus Elfring 2026-11-24 162 at91_shdwc.sclk = devm_clk_get_enabled(&pdev->dev, NULL);
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 163 if (IS_ERR(at91_shdwc.sclk))
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 164 return PTR_ERR(at91_shdwc.sclk);
064380a12e12412 Alexandre Belloni 2015-08-11 165
062836db01f9826 Ladislav Michl 2018-03-16 166 at91_wakeup_status(pdev);
ae499f0fadaf28b Maxime Ripard 2014-07-03 167
ae499f0fadaf28b Maxime Ripard 2014-07-03 168 if (pdev->dev.of_node)
ae499f0fadaf28b Maxime Ripard 2014-07-03 169 at91_poweroff_dt_set_wakeup_mode(pdev);
ae499f0fadaf28b Maxime Ripard 2014-07-03 170
0b0408745e7ff24 Alexandre Belloni 2016-10-25 171 np = of_find_compatible_node(NULL, NULL, "atmel,sama5d3-ddramc");
996463fdb8cdec4 Claudiu Beznea 2018-11-05 172 if (np) {
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 173 at91_shdwc.mpddrc_base = of_iomap(np, 0);
0b0408745e7ff24 Alexandre Belloni 2016-10-25 174 of_node_put(np);
0b0408745e7ff24 Alexandre Belloni 2016-10-25 175
e51202a7ed9dff5 Markus Elfring 2026-11-24 176 if (!at91_shdwc.mpddrc_base)
e51202a7ed9dff5 Markus Elfring 2026-11-24 177 return -ENOMEM;
0b0408745e7ff24 Alexandre Belloni 2016-10-25 178
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 179 ddr_type = readl(at91_shdwc.mpddrc_base + AT91_DDRSDRC_MDR) &
996463fdb8cdec4 Claudiu Beznea 2018-11-05 180 AT91_DDRSDRC_MD;
996463fdb8cdec4 Claudiu Beznea 2018-11-05 181 if (ddr_type != AT91_DDRSDRC_MD_LPDDR2 &&
996463fdb8cdec4 Claudiu Beznea 2018-11-05 182 ddr_type != AT91_DDRSDRC_MD_LPDDR3) {
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 183 iounmap(at91_shdwc.mpddrc_base);
caa6e150f8fbcf4 Claudiu Beznea 2018-12-06 184 at91_shdwc.mpddrc_base = NULL;
996463fdb8cdec4 Claudiu Beznea 2018-11-05 185 }
996463fdb8cdec4 Claudiu Beznea 2018-11-05 186 }
996463fdb8cdec4 Claudiu Beznea 2018-11-05 187
996463fdb8cdec4 Claudiu Beznea 2018-11-05 188 pm_power_off = at91_poweroff;
0b0408745e7ff24 Alexandre Belloni 2016-10-25 189
ae499f0fadaf28b Maxime Ripard 2014-07-03 190 return 0;
ae499f0fadaf28b Maxime Ripard 2014-07-03 191 }
ae499f0fadaf28b Maxime Ripard 2014-07-03 192
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-11-24 21:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 8:50 [PATCH] power: reset: at91: Use devm_clk_get_enabled() in three probe functions Markus Elfring
2026-11-24 14:35 ` 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=20261124222203.k0pVspdI-lkp@intel.com \
--to=lkp@intel.com \
--cc=Frank.Li@kernel.org \
--cc=Markus.Elfring@web.de \
--cc=alexandre.belloni@bootlin.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=claudiu.beznea@tuxon.dev \
--cc=f.fainelli@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nicolas.ferre@microchip.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=sre@kernel.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.