[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202510221508.PY6fB9CB-lkp@intel.com>
Date: Wed, 22 Oct 2025 15:08:10 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: oe-kbuild@...ts.linux.dev, Artem Shimko <a.shimko.dev@...il.com>,
Eugeniy Paltsev <Eugeniy.Paltsev@...opsys.com>,
Vinod Koul <vkoul@...nel.org>,
Philipp Zabel <p.zabel@...gutronix.de>
Cc: lkp@...el.com, oe-kbuild-all@...ts.linux.dev,
Artem Shimko <a.shimko.dev@...il.com>, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 2/2] dmaengine: dw-axi-dmac: add reset control support
Hi Artem,
kernel test robot noticed the following build warnings:
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Artem-Shimko/dmaengine-dw-axi-dmac-simplify-PM-functions-and-use-modern-macros/20251017-183103
base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
patch link: https://lore.kernel.org/r/20251017102950.206443-3-a.shimko.dev%40gmail.com
patch subject: [PATCH v4 2/2] dmaengine: dw-axi-dmac: add reset control support
config: loongarch-randconfig-r072-20251019 (https://download.01.org/0day-ci/archive/20251022/202510221508.PY6fB9CB-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.1.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
| Reported-by: kernel test robot <lkp@...el.com>
| Reported-by: Dan Carpenter <dan.carpenter@...aro.org>
| Closes: https://lore.kernel.org/r/202510221508.PY6fB9CB-lkp@intel.com/
New smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1355 axi_dma_resume() warn: 'chip->core_clk' from clk_prepare_enable() not released on lines: 1350.
Old smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1237 dma_chan_pause() warn: inconsistent indenting
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1284 axi_chan_resume() warn: inconsistent indenting
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1355 axi_dma_resume() warn: 'chip->cfgr_clk' from clk_prepare_enable() not released on lines: 1346,1350.
vim +1355 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
45fdf99125b2bf7 Artem Shimko 2025-10-17 1335 static int axi_dma_resume(struct device *dev)
I guess kbuild bot thinks these are new warnings because the function
was renamed. In the past we've just ignored clk_prepare_enable() warnings.
Perhaps that's the correct thing to do in a resume function.
The indenting in dma_chan_pause() and axi_chan_resume() could be cleaned up.
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1336 {
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1337 int ret;
45fdf99125b2bf7 Artem Shimko 2025-10-17 1338 struct axi_dma_chip *chip = dev_get_drvdata(dev);
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1339
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1340 ret = clk_prepare_enable(chip->cfgr_clk);
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1341 if (ret < 0)
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1342 return ret;
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1343
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1344 ret = clk_prepare_enable(chip->core_clk);
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1345 if (ret < 0)
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1346 return ret;
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1347
9c360f02c387f93 Artem Shimko 2025-10-17 1348 ret = reset_control_deassert(chip->resets);
9c360f02c387f93 Artem Shimko 2025-10-17 1349 if (ret)
9c360f02c387f93 Artem Shimko 2025-10-17 1350 return ret;
9c360f02c387f93 Artem Shimko 2025-10-17 1351
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1352 axi_dma_enable(chip);
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1353 axi_dma_irq_enable(chip);
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1354
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 @1355 return 0;
1fe20f1b84548bb Eugeniy Paltsev 2018-03-06 1356 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists