* [PATCH] PM / OPP: fix build warning
@ 2015-10-07 11:19 Sudip Mukherjee
2015-10-08 11:21 ` Pavel Machek
2015-10-18 5:12 ` Greg Kroah-Hartman
0 siblings, 2 replies; 3+ messages in thread
From: Sudip Mukherjee @ 2015-10-07 11:19 UTC (permalink / raw)
To: Rafael J. Wysocki, Pavel Machek, Len Brown, Greg Kroah-Hartman
Cc: linux-kernel, linux-pm, Sudip Mukherjee
We were getting build warning that:
expected 'bool *' but argument is of type 'u32 *'
debugfs_create_bool() used to take the argument as (u32 *), but commit
621a5f7ad9cd ("debugfs: Pass bool pointer to debugfs_create_bool()")
has modified it and now it accepts bool, so no need to typecast a bool
to (u32 *).
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
drivers/base/power/opp/debugfs.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/base/power/opp/debugfs.c b/drivers/base/power/opp/debugfs.c
index 865cbfa..251966b 100644
--- a/drivers/base/power/opp/debugfs.c
+++ b/drivers/base/power/opp/debugfs.c
@@ -45,14 +45,13 @@ int opp_debug_create_one(struct dev_pm_opp *opp, struct device_opp *dev_opp)
if (!d)
return -ENOMEM;
- if (!debugfs_create_bool("available", S_IRUGO, d,
- (u32 *)&opp->available))
+ if (!debugfs_create_bool("available", S_IRUGO, d, &opp->available))
return -ENOMEM;
- if (!debugfs_create_bool("dynamic", S_IRUGO, d, (u32 *)&opp->dynamic))
+ if (!debugfs_create_bool("dynamic", S_IRUGO, d, &opp->dynamic))
return -ENOMEM;
- if (!debugfs_create_bool("turbo", S_IRUGO, d, (u32 *)&opp->turbo))
+ if (!debugfs_create_bool("turbo", S_IRUGO, d, &opp->turbo))
return -ENOMEM;
if (!debugfs_create_u32("rate_hz", S_IRUGO, d, (u32 *)&opp->rate))
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] PM / OPP: fix build warning
2015-10-07 11:19 [PATCH] PM / OPP: fix build warning Sudip Mukherjee
@ 2015-10-08 11:21 ` Pavel Machek
2015-10-18 5:12 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2015-10-08 11:21 UTC (permalink / raw)
To: Sudip Mukherjee
Cc: Rafael J. Wysocki, Len Brown, Greg Kroah-Hartman, linux-kernel,
linux-pm
On Wed 2015-10-07 16:49:25, Sudip Mukherjee wrote:
> We were getting build warning that:
> expected 'bool *' but argument is of type 'u32 *'
>
> debugfs_create_bool() used to take the argument as (u32 *), but commit
> 621a5f7ad9cd ("debugfs: Pass bool pointer to debugfs_create_bool()")
> has modified it and now it accepts bool, so no need to typecast a bool
> to (u32 *).
>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] PM / OPP: fix build warning
2015-10-07 11:19 [PATCH] PM / OPP: fix build warning Sudip Mukherjee
2015-10-08 11:21 ` Pavel Machek
@ 2015-10-18 5:12 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2015-10-18 5:12 UTC (permalink / raw)
To: Sudip Mukherjee
Cc: Rafael J. Wysocki, Pavel Machek, Len Brown, linux-kernel,
linux-pm
On Wed, Oct 07, 2015 at 04:49:25PM +0530, Sudip Mukherjee wrote:
> We were getting build warning that:
> expected 'bool *' but argument is of type 'u32 *'
>
> debugfs_create_bool() used to take the argument as (u32 *), but commit
> 621a5f7ad9cd ("debugfs: Pass bool pointer to debugfs_create_bool()")
> has modified it and now it accepts bool, so no need to typecast a bool
> to (u32 *).
>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-18 5:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 11:19 [PATCH] PM / OPP: fix build warning Sudip Mukherjee
2015-10-08 11:21 ` Pavel Machek
2015-10-18 5:12 ` Greg Kroah-Hartman
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).