* [PATCH 1/1] cpufreq: exynos: Fix compilation warnings
@ 2013-11-19 4:23 Sachin Kamat
2013-11-19 4:59 ` Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2013-11-19 4:23 UTC (permalink / raw)
To: linux-pm; +Cc: cpufreq, rjw, viresh.kumar, sachin.kamat, Lukasz Majewski
Commit a403797bbd81 ("cpufreq: exynos: Convert exynos-cpufreq
to platform driver") forgot to change the function prototype.
Change it now to fix the following compilation warnings:
drivers/cpufreq/exynos-cpufreq.c:292:18: warning: incorrect type in initializer
(different argument counts)
drivers/cpufreq/exynos-cpufreq.c:292:18: expected int ( *probe )( ... )
drivers/cpufreq/exynos-cpufreq.c:292:18: got int ( static [toplevel]
*<noident> )( ... )
CC drivers/cpufreq/exynos-cpufreq.o
drivers/cpufreq/exynos-cpufreq.c:292:2: warning: initialization from
incompatible pointer type [enabled by default]
.probe = exynos_cpufreq_init,
^
drivers/cpufreq/exynos-cpufreq.c:292:2: warning: (near initialization for
‘exynos_cpufreq_platdrv.probe’) [enabled by default]
LD drivers/cpufreq/built-in.o
WARNING: drivers/cpufreq/built-in.o(.data+0x644): Section mismatch in reference
from the variable exynos_cpufreq_platdrv to the function
.init.text:exynos_cpufreq_init()
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Lukasz Majewski <l.majewski@samsung.com>
---
drivers/cpufreq/exynos-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index a2f57d4101fc..e238c46efaac 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -233,7 +233,7 @@ static struct cpufreq_driver exynos_driver = {
#endif
};
-static int __init exynos_cpufreq_init(void)
+static int exynos_cpufreq_init(struct platform_device *pdev)
{
int ret = -EINVAL;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] cpufreq: exynos: Fix compilation warnings
2013-11-19 4:23 [PATCH 1/1] cpufreq: exynos: Fix compilation warnings Sachin Kamat
@ 2013-11-19 4:59 ` Viresh Kumar
2013-11-19 5:07 ` Sachin Kamat
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2013-11-19 4:59 UTC (permalink / raw)
To: Sachin Kamat
Cc: linux-pm@vger.kernel.org, cpufreq@vger.kernel.org,
Rafael J. Wysocki, Lukasz Majewski
On 19 November 2013 09:53, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Commit a403797bbd81 ("cpufreq: exynos: Convert exynos-cpufreq
> to platform driver") forgot to change the function prototype.
I can't find this commit anywhere..
And I can see that you had already given comments for the patch and
so this should be fixed right there..
> Change it now to fix the following compilation warnings:
>
> drivers/cpufreq/exynos-cpufreq.c:292:18: warning: incorrect type in initializer
> (different argument counts)
> drivers/cpufreq/exynos-cpufreq.c:292:18: expected int ( *probe )( ... )
> drivers/cpufreq/exynos-cpufreq.c:292:18: got int ( static [toplevel]
> *<noident> )( ... )
> CC drivers/cpufreq/exynos-cpufreq.o
> drivers/cpufreq/exynos-cpufreq.c:292:2: warning: initialization from
> incompatible pointer type [enabled by default]
> .probe = exynos_cpufreq_init,
> ^
> drivers/cpufreq/exynos-cpufreq.c:292:2: warning: (near initialization for
> ‘exynos_cpufreq_platdrv.probe’) [enabled by default]
> LD drivers/cpufreq/built-in.o
>
> WARNING: drivers/cpufreq/built-in.o(.data+0x644): Section mismatch in reference
> from the variable exynos_cpufreq_platdrv to the function
> .init.text:exynos_cpufreq_init()
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> ---
> drivers/cpufreq/exynos-cpufreq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] cpufreq: exynos: Fix compilation warnings
2013-11-19 4:59 ` Viresh Kumar
@ 2013-11-19 5:07 ` Sachin Kamat
2013-11-27 7:03 ` Lukasz Majewski
0 siblings, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2013-11-19 5:07 UTC (permalink / raw)
To: Viresh Kumar
Cc: linux-pm@vger.kernel.org, cpufreq@vger.kernel.org,
Rafael J. Wysocki, Lukasz Majewski
Hi Viresh,
On 19 November 2013 10:29, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 19 November 2013 09:53, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> Commit a403797bbd81 ("cpufreq: exynos: Convert exynos-cpufreq
>> to platform driver") forgot to change the function prototype.
>
> I can't find this commit anywhere..
> And I can see that you had already given comments for the patch and
> so this should be fixed right there..
Sorry, please discard this patch. Looks like I had applied this patch
locally in my tree
when I was reviewing it. I did give my comments about this warning then.
Somehow I thought this patch got applied without my comment getting
addressed, hence I
fixed this myself. Sorry for the noise.
Lukasz, do you plan to send the updated the patch?
--
With warm regards,
Sachin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] cpufreq: exynos: Fix compilation warnings
2013-11-19 5:07 ` Sachin Kamat
@ 2013-11-27 7:03 ` Lukasz Majewski
0 siblings, 0 replies; 4+ messages in thread
From: Lukasz Majewski @ 2013-11-27 7:03 UTC (permalink / raw)
To: Sachin Kamat
Cc: Viresh Kumar, linux-pm@vger.kernel.org, cpufreq@vger.kernel.org,
Rafael J. Wysocki
Hi Sachin,
> Hi Viresh,
>
> On 19 November 2013 10:29, Viresh Kumar <viresh.kumar@linaro.org>
> wrote:
> > On 19 November 2013 09:53, Sachin Kamat <sachin.kamat@linaro.org>
> > wrote:
> >> Commit a403797bbd81 ("cpufreq: exynos: Convert exynos-cpufreq
> >> to platform driver") forgot to change the function prototype.
> >
> > I can't find this commit anywhere..
>
> > And I can see that you had already given comments for the patch and
> > so this should be fixed right there..
>
> Sorry, please discard this patch. Looks like I had applied this patch
> locally in my tree
> when I was reviewing it. I did give my comments about this warning
> then. Somehow I thought this patch got applied without my comment
> getting addressed, hence I
> fixed this myself. Sorry for the noise.
>
> Lukasz, do you plan to send the updated the patch?
>
Yes. I will sent the update.
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-27 7:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 4:23 [PATCH 1/1] cpufreq: exynos: Fix compilation warnings Sachin Kamat
2013-11-19 4:59 ` Viresh Kumar
2013-11-19 5:07 ` Sachin Kamat
2013-11-27 7:03 ` Lukasz Majewski
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).