From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 5/7] regulator: da9211: switch to using devm_fwnode_gpiod_get
Date: Sat, 05 Oct 2019 14:12:40 +0800 [thread overview]
Message-ID: <201910051412.bmg9wQQY%lkp@intel.com> (raw)
In-Reply-To: <20191004231017.130290-6-dmitry.torokhov@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3911 bytes --]
Hi Dmitry,
I love your patch! Yet something to improve:
[auto build test ERROR on regulator/for-next]
[cannot apply to v5.4-rc1 next-20191004]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Dmitry-Torokhov/regulator-switch-to-using-devm_-fwnode_gpiod_get_index/20191005-085020
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/regulator/da9211-regulator.c: In function 'da9211_parse_regulators_dt':
>> drivers/regulator/da9211-regulator.c:286:25: error: implicit declaration of function 'devm_fwnode_gpiod_get'; did you mean 'devm_gpiod_get'? [-Werror=implicit-function-declaration]
pdata->gpiod_ren[n] = devm_fwnode_gpiod_get(dev,
^~~~~~~~~~~~~~~~~~~~~
devm_gpiod_get
>> drivers/regulator/da9211-regulator.c:286:23: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
pdata->gpiod_ren[n] = devm_fwnode_gpiod_get(dev,
^
cc1: some warnings being treated as errors
vim +286 drivers/regulator/da9211-regulator.c
245
246 #ifdef CONFIG_OF
247 static struct of_regulator_match da9211_matches[] = {
248 [DA9211_ID_BUCKA] = { .name = "BUCKA" },
249 [DA9211_ID_BUCKB] = { .name = "BUCKB" },
250 };
251
252 static struct da9211_pdata *da9211_parse_regulators_dt(
253 struct device *dev)
254 {
255 struct da9211_pdata *pdata;
256 struct device_node *node;
257 int i, num, n;
258
259 node = of_get_child_by_name(dev->of_node, "regulators");
260 if (!node) {
261 dev_err(dev, "regulators node not found\n");
262 return ERR_PTR(-ENODEV);
263 }
264
265 num = of_regulator_match(dev, node, da9211_matches,
266 ARRAY_SIZE(da9211_matches));
267 of_node_put(node);
268 if (num < 0) {
269 dev_err(dev, "Failed to match regulators\n");
270 return ERR_PTR(-EINVAL);
271 }
272
273 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
274 if (!pdata)
275 return ERR_PTR(-ENOMEM);
276
277 pdata->num_buck = num;
278
279 n = 0;
280 for (i = 0; i < ARRAY_SIZE(da9211_matches); i++) {
281 if (!da9211_matches[i].init_data)
282 continue;
283
284 pdata->init_data[n] = da9211_matches[i].init_data;
285 pdata->reg_node[n] = da9211_matches[i].of_node;
> 286 pdata->gpiod_ren[n] = devm_fwnode_gpiod_get(dev,
287 of_fwnode_handle(pdata->reg_node[n]),
288 "enable",
289 GPIOD_OUT_HIGH |
290 GPIOD_FLAGS_BIT_NONEXCLUSIVE,
291 "da9211-enable");
292 if (IS_ERR(pdata->gpiod_ren[n]))
293 pdata->gpiod_ren[n] = NULL;
294 n++;
295 }
296
297 return pdata;
298 }
299 #else
300 static struct da9211_pdata *da9211_parse_regulators_dt(
301 struct device *dev)
302 {
303 return ERR_PTR(-ENODEV);
304 }
305 #endif
306
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 52234 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: kbuild-all@01.org, Mark Brown <broonie@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org, Liam Girdwood <lgirdwood@gmail.com>,
Support Opensource <support.opensource@diasemi.com>
Subject: Re: [PATCH 5/7] regulator: da9211: switch to using devm_fwnode_gpiod_get
Date: Sat, 5 Oct 2019 14:12:40 +0800 [thread overview]
Message-ID: <201910051412.bmg9wQQY%lkp@intel.com> (raw)
In-Reply-To: <20191004231017.130290-6-dmitry.torokhov@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3808 bytes --]
Hi Dmitry,
I love your patch! Yet something to improve:
[auto build test ERROR on regulator/for-next]
[cannot apply to v5.4-rc1 next-20191004]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Dmitry-Torokhov/regulator-switch-to-using-devm_-fwnode_gpiod_get_index/20191005-085020
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/regulator/da9211-regulator.c: In function 'da9211_parse_regulators_dt':
>> drivers/regulator/da9211-regulator.c:286:25: error: implicit declaration of function 'devm_fwnode_gpiod_get'; did you mean 'devm_gpiod_get'? [-Werror=implicit-function-declaration]
pdata->gpiod_ren[n] = devm_fwnode_gpiod_get(dev,
^~~~~~~~~~~~~~~~~~~~~
devm_gpiod_get
>> drivers/regulator/da9211-regulator.c:286:23: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
pdata->gpiod_ren[n] = devm_fwnode_gpiod_get(dev,
^
cc1: some warnings being treated as errors
vim +286 drivers/regulator/da9211-regulator.c
245
246 #ifdef CONFIG_OF
247 static struct of_regulator_match da9211_matches[] = {
248 [DA9211_ID_BUCKA] = { .name = "BUCKA" },
249 [DA9211_ID_BUCKB] = { .name = "BUCKB" },
250 };
251
252 static struct da9211_pdata *da9211_parse_regulators_dt(
253 struct device *dev)
254 {
255 struct da9211_pdata *pdata;
256 struct device_node *node;
257 int i, num, n;
258
259 node = of_get_child_by_name(dev->of_node, "regulators");
260 if (!node) {
261 dev_err(dev, "regulators node not found\n");
262 return ERR_PTR(-ENODEV);
263 }
264
265 num = of_regulator_match(dev, node, da9211_matches,
266 ARRAY_SIZE(da9211_matches));
267 of_node_put(node);
268 if (num < 0) {
269 dev_err(dev, "Failed to match regulators\n");
270 return ERR_PTR(-EINVAL);
271 }
272
273 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
274 if (!pdata)
275 return ERR_PTR(-ENOMEM);
276
277 pdata->num_buck = num;
278
279 n = 0;
280 for (i = 0; i < ARRAY_SIZE(da9211_matches); i++) {
281 if (!da9211_matches[i].init_data)
282 continue;
283
284 pdata->init_data[n] = da9211_matches[i].init_data;
285 pdata->reg_node[n] = da9211_matches[i].of_node;
> 286 pdata->gpiod_ren[n] = devm_fwnode_gpiod_get(dev,
287 of_fwnode_handle(pdata->reg_node[n]),
288 "enable",
289 GPIOD_OUT_HIGH |
290 GPIOD_FLAGS_BIT_NONEXCLUSIVE,
291 "da9211-enable");
292 if (IS_ERR(pdata->gpiod_ren[n]))
293 pdata->gpiod_ren[n] = NULL;
294 n++;
295 }
296
297 return pdata;
298 }
299 #else
300 static struct da9211_pdata *da9211_parse_regulators_dt(
301 struct device *dev)
302 {
303 return ERR_PTR(-ENODEV);
304 }
305 #endif
306
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 52234 bytes --]
next prev parent reply other threads:[~2019-10-05 6:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-04 23:10 [PATCH 0/7] regulator: switch to using [devm_]fwnode_gpiod_get_index Dmitry Torokhov
2019-10-04 23:10 ` [PATCH 1/7] regulator: s5m8767: switch to using devm_fwnode_gpiod_get Dmitry Torokhov
2019-10-05 6:42 ` kbuild test robot
2019-10-05 6:42 ` kbuild test robot
2019-10-05 6:59 ` kbuild test robot
2019-10-05 6:59 ` kbuild test robot
2019-10-07 13:03 ` Applied "regulator: s5m8767: switch to using devm_fwnode_gpiod_get" to the regulator tree Mark Brown
2019-10-07 13:03 ` Mark Brown
2019-10-04 23:10 ` [PATCH 2/7] regulator: slg51000: switch to using fwnode_gpiod_get_index Dmitry Torokhov
2019-10-05 5:36 ` kbuild test robot
2019-10-05 5:36 ` kbuild test robot
2019-10-07 13:03 ` Applied "regulator: slg51000: switch to using fwnode_gpiod_get_index" to the regulator tree Mark Brown
2019-10-04 23:10 ` [PATCH 3/7] regulator: tps65090: switch to using devm_fwnode_gpiod_get Dmitry Torokhov
2019-10-07 13:03 ` Applied "regulator: tps65090: switch to using devm_fwnode_gpiod_get" to the regulator tree Mark Brown
2019-10-04 23:10 ` [PATCH 4/7] regulator: s2mps11: switch to using devm_fwnode_gpiod_get Dmitry Torokhov
2019-10-07 13:03 ` Applied "regulator: s2mps11: switch to using devm_fwnode_gpiod_get" to the regulator tree Mark Brown
2019-10-07 13:03 ` Mark Brown
2019-10-04 23:10 ` [PATCH 5/7] regulator: da9211: switch to using devm_fwnode_gpiod_get Dmitry Torokhov
2019-10-05 6:12 ` kbuild test robot [this message]
2019-10-05 6:12 ` kbuild test robot
2019-10-07 10:43 ` Adam Thomson
2019-10-07 13:03 ` Applied "regulator: da9211: switch to using devm_fwnode_gpiod_get" to the regulator tree Mark Brown
2019-10-04 23:10 ` [PATCH 6/7] regulator: tps65132: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
2019-10-07 13:03 ` Applied "regulator: tps65132: switch to using devm_fwnode_gpiod_get()" to the regulator tree Mark Brown
2019-10-04 23:10 ` [PATCH 7/7] regulator: max77686: switch to using fwnode_gpiod_get_index Dmitry Torokhov
2019-10-05 7:26 ` kbuild test robot
2019-10-05 7:26 ` kbuild test robot
2019-10-07 13:03 ` Applied "regulator: max77686: switch to using fwnode_gpiod_get_index" to the regulator tree Mark Brown
2019-10-05 19:01 ` [PATCH 0/7] regulator: switch to using [devm_]fwnode_gpiod_get_index Linus Walleij
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=201910051412.bmg9wQQY%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.