linux-next: build warning after merge of the driver-core tree
Hi Greg,
After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:
drivers/base/power/opp/debugfs.c: In function 'opp_debug_create_one':drivers/base/power/opp/debugfs.c:48:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("available", S_IRUGO, d,
^
In file included from drivers/base/power/opp/debugfs.c:13:0:
include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *'
struct dentry *debugfs_create_bool(const char *name, umode_t mode,
^
drivers/base/power/opp/debugfs.c:52:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("dynamic", S_IRUGO, d, (u32 *)&opp->dynamic))
^
In file included from drivers/base/power/opp/debugfs.c:13:0:
include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *'
struct dentry *debugfs_create_bool(const char *name, umode_t mode,
^
drivers/base/power/opp/debugfs.c:55:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("turbo", S_IRUGO, d, (u32 *)&opp->turbo))
^
In file included from drivers/base/power/opp/debugfs.c:13:0:
include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *'
struct dentry *debugfs_create_bool(const char *name, umode_t mode,
^Introduced by commit
621a5f7ad9cd ("debugfs: Pass bool pointer to debugfs_create_bool()")
interacting with commit
5cb5fdbf3877 ("PM / OPP: Add debugfs support")
from the pm tree.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hi Stephen,
Quoted 30 lines · Stephen Rothwell
Hi Greg,
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/base/power/opp/debugfs.c: In function 'opp_debug_create_one':drivers/base/power/opp/debugfs.c:48:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("available",S_IRUGO, d,^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:52:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("dynamic", S_IRUGO, d, (u32 *)&opp->dynamic)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:55:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("turbo", S_IRUGO, d, (u32 *)&opp->turbo)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^Introduced by commit
Quoted 7 lines
621a5f7ad9cd("debugfs: Pass bool pointer todebugfs_create_bool()")interacting with commit
5cb5fdbf3877("PM / OPP: Add debugfs support")from the pm tree.
That was expected and the PM tree needs to get updated to get it fixed. And I will be doing that soon.
--
viresh
Quoted 35 lines · Viresh Kumar
Hi Stephen,
Quoted 32 lines · Stephen Rothwell
Hi Greg,
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/base/power/opp/debugfs.c: In function 'opp_debug_create_one':drivers/base/power/opp/debugfs.c:48:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("available",S_IRUGO, d,^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:52:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("dynamic", S_IRUGO, d, (u32 *)&opp->dynamic)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:55:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("turbo", S_IRUGO, d, (u32 *)&opp->turbo)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^Introduced by commit
621a5f7ad9cd("debugfs: Pass bool pointer todebugfs_create_bool()")
Quoted 8 lines
Quoted 5 lines
interacting with commit
5cb5fdbf3877("PM / OPP: Add debugfs support")from the pm tree.
That was expected and the PM tree needs to get updated to get it fixed. And I will be doing that soon.
For the record, I'm tired of your breaking things on a regular basis like this.
I'm dropping 5cb5fdbf3877 from the PM tree.
Thanks,
Rafael
Hi Rafael,
Quoted 39 lines · On Wed, 07 Oct 2015 23:48:11 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 37 lines · Viresh Kumar
Quoted 35 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/base/power/opp/debugfs.c: In function 'opp_debug_create_one':drivers/base/power/opp/debugfs.c:48:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("available",S_IRUGO, d,^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:52:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("dynamic", S_IRUGO, d, (u32 *)&opp->dynamic)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:55:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("turbo", S_IRUGO, d, (u32 *)&opp->turbo)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^Introduced by commit
621a5f7ad9cd("debugfs: Pass bool pointer todebugfs_create_bool()")interacting with commit
5cb5fdbf3877("PM / OPP: Add debugfs support")
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
from the pm tree.
That was expected and the PM tree needs to get updated to get it fixed. And I will be doing that soon.
For the record, I'm tired of your breaking things on a regular basis like this.
I'm dropping
5cb5fdbf3877from the PM tree.
To be fair, this is caused by in interaction between your tree and Greg's ... i.e. the API for debugfs_create_bool() was updated in Greg's tree while a new use of it was added to your tree. It can only be fixed by one of you merging the other's tree (or part of it) or by someone giving me a merge resolution patch (or just a hint) and me carrying that (and someone remembering to tell Linus about it.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 49 lines · Stephen Rothwell
Hi Rafael,
Quoted 46 lines · On Wed, 07 Oct 2015 23:48:11 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 33 lines · Viresh Kumar
Quoted 31 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/base/power/opp/debugfs.c: In function 'opp_debug_create_one':drivers/base/power/opp/debugfs.c:48:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type
if (!debugfs_create_bool("available",S_IRUGO, d,^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:52:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("dynamic", S_IRUGO, d, (u32 *)&opp->dynamic)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ drivers/base/power/opp/debugfs.c:55:7: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type if (!debugfs_create_bool("turbo", S_IRUGO, d, (u32 *)&opp->turbo)) ^ In file included from drivers/base/power/opp/debugfs.c:13:0: include/linux/debugfs.h:94:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^Introduced by commit
621a5f7ad9cd("debugfs: Pass bool pointer todebugfs_create_bool()")Quoted 8 lines
Quoted 5 lines
interacting with commit
5cb5fdbf3877("PM / OPP: Add debugfs support")from the pm tree.
That was expected and the PM tree needs to get updated to get it fixed. And I will be doing that soon.
For the record, I'm tired of your breaking things on a regular basis like this.
Quoted 8 lines
Quoted 1 line
I'm dropping
5cb5fdbf3877from the PM tree.To be fair, this is caused by in interaction between your tree and Greg's ... i.e. the API for
debugfs_create_bool()was updated in Greg's tree while a new use of it was added to your tree. It can only be fixed by one of you merging the other's tree (or part of it) or by someone giving me a merge resolution patch (or just a hint) and me carrying that (and someone remembering to tell Linus about it.
Well, the conflicting commits here were from the same developer which is kind of annoying.
The new use in my tree can wait until the API update in the Greg's tree is merged IMO. That's why I've now dropped the commit that added it. :-)
Thanks,
Rafael
Quoted 2 lines · Rafael J. Wysocki
Well, the conflicting commits here were from the same developer which is kind of annoying.
I do understand why its annoying, but I wasn't doing them in parallel. The patches in Greg's tree were written long after the other series got applied to your tree.
So, I was kind of helpless here :(
Quoted 2 lines
The new use in my tree can wait until the API update in the Greg's tree is merged IMO. That's why I've now dropped the commit that added it. :-)
Looking at the current state of your tree, looks like you have dropped way too many patches. Was it intentional?
Missing commits:
1840995c52d4 PM / OPP: reuse of_parse_phandle() f0489a5ef4d0 PM / OPP: Rename opp init/free table routines 8f8d37b2537a PM / OPP: Prefix exported opp routines with dev_pm_opp_ 33692dc381f9 PM / OPP: Move opp core to its own directory f59d3ee8480d PM / OPP: Move cpu specific code to opp/cpu.c 5cb5fdbf3877 PM / OPP: Add debugfs support
I though you just dropped the last commit, but no.
Signature · 1 line
viresh
Quoted 9 lines · Viresh Kumar
Quoted 2 lines · Rafael J. Wysocki
Well, the conflicting commits here were from the same developer which is kind of annoying.
I do understand why its annoying, but I wasn't doing them in parallel. The patches in Greg's tree were written long after the other series got applied to your tree.
So, I was kind of helpless here :(
You could have asked me to drop that commit when you decided to rework the API.
That would have been much less painful to everybody (and especially to the people who saw the breakage and have tried to fix it).
Quoted 8 lines
Quoted 2 lines
The new use in my tree can wait until the API update in the Greg's tree is merged IMO. That's why I've now dropped the commit that added it. :-)
Looking at the current state of your tree, looks like you have dropped way too many patches. Was it intentional?
Missing commits:
Quoted 8 lines
1840995c52d4PM / OPP: reuseof_parse_phandle()f0489a5ef4d0PM / OPP: Rename opp init/free table routines8f8d37b2537aPM / OPP: Prefix exported opp routines withdev_pm_opp_33692dc381f9PM / OPP: Move opp core to its own directoryf59d3ee8480dPM / OPP: Move cpu specific code toopp/cpu.c5cb5fdbf3877PM / OPP: Add debugfs supportI though you just dropped the last commit, but no.
My bad, I rebased the pm-opp branch, but then have forgotten to merge it.
Sorry about that, should be fixed now.
Thanks,
Rafael
Hi Rafael,
Quoted 9 lines · On Thu, 08 Oct 2015 22:30:45 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 7 lines · Viresh Kumar
1840995c52d4PM / OPP: reuseof_parse_phandle()f0489a5ef4d0PM / OPP: Rename opp init/free table routines8f8d37b2537aPM / OPP: Prefix exported opp routines withdev_pm_opp_33692dc381f9PM / OPP: Move opp core to its own directoryf59d3ee8480dPM / OPP: Move cpu specific code toopp/cpu.c5cb5fdbf3877PM / OPP: Add debugfs support
Quoted 5 lines
Quoted 1 line
I though you just dropped the last commit, but no.
My bad, I rebased the pm-opp branch, but then have forgotten to merge it.
Sorry about that, should be fixed now.
And the warnings are back :-)
Can someone (Viresh) just send me a patch on top of today's linux-next (when I release it) and I will us it as a merge fix patch from Monday and then hopefully it will be passed on to Linus at the right time.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 12 lines · Stephen Rothwell
Hi Rafael,
Quoted 9 lines · On Thu, 08 Oct 2015 22:30:45 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 7 lines · Viresh Kumar
1840995c52d4PM / OPP: reuseof_parse_phandle()f0489a5ef4d0PM / OPP: Rename opp init/free table routines8f8d37b2537aPM / OPP: Prefix exported opp routines withdev_pm_opp_33692dc381f9PM / OPP: Move opp core to its own directoryf59d3ee8480dPM / OPP: Move cpu specific code toopp/cpu.c5cb5fdbf3877PM / OPP: Add debugfs support
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
I though you just dropped the last commit, but no.
My bad, I rebased the pm-opp branch, but then have forgotten to merge it.
Sorry about that, should be fixed now.
And the warnings are back :-)
Rafael did it incorrectly once again :)
He picked the faulty patch once again, which he should have dropped.
Quoted 3 lines
Can someone (Viresh) just send me a patch on top of today's linux-next (when I release it) and I will us it as a merge fix patch from Monday and then hopefully it will be passed on to Linus at the right time.
Because that's what Rafael is going to do once he is back, can can just revert
5cb5fdbf3877 PM / OPP: Add debugfs support
for the time being. Will that be fine?
Signature · 1 line
viresh
Quoted 17 lines · Viresh Kumar
Quoted 16 lines · Stephen Rothwell
Hi Rafael,
Quoted 13 lines · On Thu, 08 Oct 2015 22:30:45 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 8 lines · Viresh Kumar
1840995c52d4PM / OPP: reuseof_parse_phandle()f0489a5ef4d0PM / OPP: Rename opp init/free table routines8f8d37b2537aPM / OPP: Prefix exported opp routines withdev_pm_opp_33692dc381f9PM / OPP: Move opp core to its own directoryf59d3ee8480dPM / OPP: Move cpu specific code toopp/cpu.c5cb5fdbf3877PM / OPP: Add debugfs supportI though you just dropped the last commit, but no.
My bad, I rebased the pm-opp branch, but then have forgotten to merge it.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Sorry about that, should be fixed now.
And the warnings are back :-)
Rafael did it incorrectly once again :)
He picked the faulty patch once again, which he should have dropped.
Right, sorry about that.
It should be gone now for real.
Thanks,
Rafael
Quoted 4 lines · Rafael J. Wysocki
You could have asked me to drop that commit when you decided to rework the API.
That would have been much less painful to everybody (and especially to the people who saw the breakage and have tried to fix it).
My apologies, I could have done more. And then the timing wasn't great, as I went on a 10 day holiday right after Linaro conference.
Signature · 1 line
viresh