* linux-next: build warning after merge of the regulator tree
@ 2018-10-02 3:07 Stephen Rothwell
2018-10-02 6:16 ` Matti Vaittinen
0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2018-10-02 3:07 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Linux-Next Mailing List, Linux Kernel Mailing List,
Matti Vaittinen
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
Hi all,
After merging the regulator tree, today's linux-next build (x86_64
allmodconfig) produced this warning:
drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe':
drivers/mfd/rohm-bd718x7.c:101:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
bd718xx->chip_type = (unsigned int)
^
Introduced by commit
494edd266b94 ("regulator/mfd: Support ROHM BD71847 power management IC")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build warning after merge of the regulator tree
2018-10-02 3:07 linux-next: build warning after merge of the regulator tree Stephen Rothwell
@ 2018-10-02 6:16 ` Matti Vaittinen
2018-10-02 6:25 ` Stephen Rothwell
0 siblings, 1 reply; 11+ messages in thread
From: Matti Vaittinen @ 2018-10-02 6:16 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Mark Brown, Liam Girdwood, Linux-Next Mailing List,
Linux Kernel Mailing List
Hello All,
On Tue, Oct 02, 2018 at 01:07:48PM +1000, Stephen Rothwell wrote:
> After merging the regulator tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe':
> drivers/mfd/rohm-bd718x7.c:101:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> bd718xx->chip_type = (unsigned int)
I am pretty sure the last patch version corrected this to
+ bd71837->chip_type = (unsigned int)(uintptr_t)
+ of_device_get_match_data(&i2c->dev);
is it possible one of the earlier versions has accidentally been
applied? Should I create patch on top of the last regulator tree or what
is the simplest way fix this?
Br,
Matti Vaittinen
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build warning after merge of the regulator tree
2018-10-02 6:16 ` Matti Vaittinen
@ 2018-10-02 6:25 ` Stephen Rothwell
2018-10-02 6:43 ` Matti Vaittinen
0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2018-10-02 6:25 UTC (permalink / raw)
To: Matti Vaittinen
Cc: Mark Brown, Liam Girdwood, Linux-Next Mailing List,
Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]
Hi Matti,
On Tue, 2 Oct 2018 09:16:44 +0300 Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> wrote:
>
> On Tue, Oct 02, 2018 at 01:07:48PM +1000, Stephen Rothwell wrote:
> > After merging the regulator tree, today's linux-next build (x86_64
> > allmodconfig) produced this warning:
> >
> > drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe':
> > drivers/mfd/rohm-bd718x7.c:101:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> > bd718xx->chip_type = (unsigned int)
>
> I am pretty sure the last patch version corrected this to
> + bd71837->chip_type = (unsigned int)(uintptr_t)
> + of_device_get_match_data(&i2c->dev);
>
> is it possible one of the earlier versions has accidentally been
> applied? Should I create patch on top of the last regulator tree or what
> is the simplest way fix this?
Sorry, this came from commit
dd2be639f4a9 ("regulator/mfd: bd718xx: rename bd71837/bd71847 common instances")
which is later than the commit I noted. In this later commit, this happens:
- bd71837->chip_irq = i2c->irq;
- bd71837->chip_type = (unsigned int)(uintptr_t)
+ bd718xx->chip_irq = i2c->irq;
+ bd718xx->chip_type = (unsigned int)
of_device_get_match_data(&i2c->dev);
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build warning after merge of the regulator tree
2018-10-02 6:25 ` Stephen Rothwell
@ 2018-10-02 6:43 ` Matti Vaittinen
2018-10-02 13:02 ` Mark Brown
0 siblings, 1 reply; 11+ messages in thread
From: Matti Vaittinen @ 2018-10-02 6:43 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Mark Brown, Liam Girdwood, Linux-Next Mailing List,
Linux Kernel Mailing List
Hello Stephen, Mark & All,
On Tue, Oct 02, 2018 at 04:25:51PM +1000, Stephen Rothwell wrote:
> On Tue, 2 Oct 2018 09:16:44 +0300 Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> wrote:
> >
> > On Tue, Oct 02, 2018 at 01:07:48PM +1000, Stephen Rothwell wrote:
> > > After merging the regulator tree, today's linux-next build (x86_64
> > > allmodconfig) produced this warning:
> > >
> > > drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe':
> > > drivers/mfd/rohm-bd718x7.c:101:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> > > bd718xx->chip_type = (unsigned int)
> >
> > I am pretty sure the last patch version corrected this to
> > + bd71837->chip_type = (unsigned int)(uintptr_t)
> > + of_device_get_match_data(&i2c->dev);
> >
> > is it possible one of the earlier versions has accidentally been
> > applied? Should I create patch on top of the last regulator tree or what
> > is the simplest way fix this?
>
> Sorry, this came from commit
>
> dd2be639f4a9 ("regulator/mfd: bd718xx: rename bd71837/bd71847 common instances")
>
> which is later than the commit I noted. In this later commit, this happens:
>
> - bd71837->chip_irq = i2c->irq;
> - bd71837->chip_type = (unsigned int)(uintptr_t)
> + bd718xx->chip_irq = i2c->irq;
> + bd718xx->chip_type = (unsigned int)
> of_device_get_match_data(&i2c->dev);
Right. So looks like I am still the guilty one then. I've overwritten
the fix in this rename patch which followed the corrected initial
support patch. I guess sending incremental patch with fix to regulator
tree is correct way to go, right? I'll prepare one against Mark's branch
"origin/topic/bd718xx". Mark, please let me know if you want me to send
it or if I should do it on top of some other branch.
Br,
Matti Vaittinen
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build warning after merge of the regulator tree
2018-10-02 6:43 ` Matti Vaittinen
@ 2018-10-02 13:02 ` Mark Brown
0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2018-10-02 13:02 UTC (permalink / raw)
To: Matti Vaittinen
Cc: Stephen Rothwell, Liam Girdwood, Linux-Next Mailing List,
Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 300 bytes --]
On Tue, Oct 02, 2018 at 09:43:17AM +0300, Matti Vaittinen wrote:
> tree is correct way to go, right? I'll prepare one against Mark's branch
> "origin/topic/bd718xx". Mark, please let me know if you want me to send
> it or if I should do it on top of some other branch.
That branch is good, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* linux-next: build warning after merge of the regulator tree
@ 2024-10-23 4:52 Stephen Rothwell
0 siblings, 0 replies; 11+ messages in thread
From: Stephen Rothwell @ 2024-10-23 4:52 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Jerome Brunet, Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 370 bytes --]
Hi all,
After merging the regulator tree, today's linux-next build (htmldocs)
produced this warning:
include/linux/regulator/machine.h:290: warning: Excess struct member 'regulator_init' description in 'regulator_init_data'
Introduced by commit
602ff58ae4fe ("regulator: core: remove machine init callback from config")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* linux-next: build warning after merge of the regulator tree
@ 2024-10-23 4:51 Stephen Rothwell
0 siblings, 0 replies; 11+ messages in thread
From: Stephen Rothwell @ 2024-10-23 4:51 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Jerome Brunet, Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 370 bytes --]
Hi all,
After merging the regulator tree, today's linux-next build (htmldocs)
produced this warning:
include/linux/regulator/driver.h:435: warning: Function parameter or struct member 'init_cb' not described in 'regulator_desc'
Introduced by commit
cfcdf395c21e ("regulator: core: add callback to perform runtime init")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* linux-next: build warning after merge of the regulator tree
@ 2020-01-10 2:41 Stephen Rothwell
0 siblings, 0 replies; 11+ messages in thread
From: Stephen Rothwell @ 2020-01-10 2:41 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Linux Next Mailing List, Linux Kernel Mailing List,
Saravanan Sekar
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
Hi all,
After merging the regulator tree, today's linux-next build (x86_64
allmodconfig) produced this warning:
In file included from drivers/regulator/mpq7920.c:19:
drivers/regulator/mpq7920.c: In function 'mpq7920_parse_cb':
drivers/regulator/mpq7920.c:224:13: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551551' to '4294967231' [-Woverflow]
224 | BIT(6), ~BIT(6));
include/linux/regmap.h:75:42: note: in definition of macro 'regmap_update_bits'
75 | regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
| ^~~
Introduced by commit
6501c1f54a17 ("regulator: mpq7920: add mpq7920 regulator driver")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* linux-next: build warning after merge of the regulator tree
@ 2016-04-18 3:43 Stephen Rothwell
2016-04-18 9:15 ` Mark Brown
0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2016-04-18 3:43 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: linux-next, linux-kernel
Hi all,
After merging the regulator tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'dsi_regulator_init':
drivers/gpu/drm/msm/dsi/dsi_host.c:329:3: warning: 'regulator_can_change_voltage' is deprecated [-Wdeprecated-declarations]
if (regulator_can_change_voltage(s[i].consumer)) {
^
and several more ...
Introduced by commit
6a0028b3dd67 ("regulator: Deprecate regulator_can_change_voltage()")
In the future, please fix up all the current users of an interface
*before* marking it deprecated. All these extra warnings just muddy the
"real" warnings ...
--
Cheers,
Stephen Rothwell
^ permalink raw reply [flat|nested] 11+ messages in thread
* linux-next: build warning after merge of the regulator tree
@ 2015-10-07 2:45 Stephen Rothwell
0 siblings, 0 replies; 11+ messages in thread
From: Stephen Rothwell @ 2015-10-07 2:45 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: linux-next, linux-kernel, Sascha Hauer
Hi all,
After merging the regulator tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/regulator/core.c: At top level:
drivers/regulator/core.c:139:13: warning: 'regulator_lock_supply' defined but not used [-Wunused-function]
static void regulator_lock_supply(struct regulator_dev *rdev)
^
drivers/regulator/core.c:159:13: warning: 'regulator_unlock_supply' defined but not used [-Wunused-function]
static void regulator_unlock_supply(struct regulator_dev *rdev)
^
Introduced by commit
9f01cd4a915e ("regulator: core: introduce function to lock regulators and its supplies")
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-10-23 4:53 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-02 3:07 linux-next: build warning after merge of the regulator tree Stephen Rothwell
2018-10-02 6:16 ` Matti Vaittinen
2018-10-02 6:25 ` Stephen Rothwell
2018-10-02 6:43 ` Matti Vaittinen
2018-10-02 13:02 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2024-10-23 4:52 Stephen Rothwell
2024-10-23 4:51 Stephen Rothwell
2020-01-10 2:41 Stephen Rothwell
2016-04-18 3:43 Stephen Rothwell
2016-04-18 9:15 ` Mark Brown
2015-10-07 2:45 Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).