* [PATCH 1/1] cpufreq: s5pv210: Fix section mismatch warning
@ 2014-08-01 11:14 Sachin Kamat
2014-08-01 11:17 ` Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2014-08-01 11:14 UTC (permalink / raw)
To: linux-pm; +Cc: viresh.kumar, rjw, tomasz.figa, kgene.kim, spk.linux
struct s5pv210_driver is registered in probe function which
does not have __init annotation. However s5pv210_driver contains
the pointer to s5pv210_cpu_init() which is annotated with __init
which causes the following section mismatch warning:
WARNING: drivers/cpufreq/built-in.o(.data+0xc3c): Section mismatch in reference from the variable s5pv210_driver to the function .init.text:s5pv210_cpu_init()
Fixed by removing the annotation for s5pv210_cpu_init.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
index 9a68225..3f9791f 100644
--- a/drivers/cpufreq/s5pv210-cpufreq.c
+++ b/drivers/cpufreq/s5pv210-cpufreq.c
@@ -501,7 +501,7 @@ static int check_mem_type(void __iomem *dmc_reg)
return val >> 8;
}
-static int __init s5pv210_cpu_init(struct cpufreq_policy *policy)
+static int s5pv210_cpu_init(struct cpufreq_policy *policy)
{
unsigned long mem_type;
int ret;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] cpufreq: s5pv210: Fix section mismatch warning
2014-08-01 11:14 [PATCH 1/1] cpufreq: s5pv210: Fix section mismatch warning Sachin Kamat
@ 2014-08-01 11:17 ` Viresh Kumar
2014-08-01 14:21 ` Kukjin Kim
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2014-08-01 11:17 UTC (permalink / raw)
To: Sachin Kamat
Cc: linux-pm, Rafael J. Wysocki, Tomasz Figa, Kukjin Kim, Sachin Kamat
On 1 August 2014 16:44, Sachin Kamat <sachin.kamat@samsung.com> wrote:
> struct s5pv210_driver is registered in probe function which
> does not have __init annotation. However s5pv210_driver contains
> the pointer to s5pv210_cpu_init() which is annotated with __init
> which causes the following section mismatch warning:
> WARNING: drivers/cpufreq/built-in.o(.data+0xc3c): Section mismatch in reference from the variable s5pv210_driver to the function .init.text:s5pv210_cpu_init()
>
> Fixed by removing the annotation for s5pv210_cpu_init.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> ---
> drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
> index 9a68225..3f9791f 100644
> --- a/drivers/cpufreq/s5pv210-cpufreq.c
> +++ b/drivers/cpufreq/s5pv210-cpufreq.c
> @@ -501,7 +501,7 @@ static int check_mem_type(void __iomem *dmc_reg)
> return val >> 8;
> }
>
> -static int __init s5pv210_cpu_init(struct cpufreq_policy *policy)
> +static int s5pv210_cpu_init(struct cpufreq_policy *policy)
> {
> unsigned long mem_type;
> int ret;
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 1/1] cpufreq: s5pv210: Fix section mismatch warning
2014-08-01 11:17 ` Viresh Kumar
@ 2014-08-01 14:21 ` Kukjin Kim
0 siblings, 0 replies; 3+ messages in thread
From: Kukjin Kim @ 2014-08-01 14:21 UTC (permalink / raw)
To: 'Viresh Kumar', 'Sachin Kamat'
Cc: linux-pm, 'Rafael J. Wysocki', 'Tomasz Figa',
'Sachin Kamat'
Viresh Kumar wrote:
>
> On 1 August 2014 16:44, Sachin Kamat <sachin.kamat@samsung.com> wrote:
> > struct s5pv210_driver is registered in probe function which
> > does not have __init annotation. However s5pv210_driver contains
> > the pointer to s5pv210_cpu_init() which is annotated with __init
> > which causes the following section mismatch warning:
> > WARNING: drivers/cpufreq/built-in.o(.data+0xc3c): Section mismatch in reference from the variable
> s5pv210_driver to the function .init.text:s5pv210_cpu_init()
> >
> > Fixed by removing the annotation for s5pv210_cpu_init.
> >
> > Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> > ---
> > drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
> > index 9a68225..3f9791f 100644
> > --- a/drivers/cpufreq/s5pv210-cpufreq.c
> > +++ b/drivers/cpufreq/s5pv210-cpufreq.c
> > @@ -501,7 +501,7 @@ static int check_mem_type(void __iomem *dmc_reg)
> > return val >> 8;
> > }
> >
> > -static int __init s5pv210_cpu_init(struct cpufreq_policy *policy)
> > +static int s5pv210_cpu_init(struct cpufreq_policy *policy)
> > {
> > unsigned long mem_type;
> > int ret;
>
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
OK, I will take this into non-critical-fixes.
Thanks,
Kukjin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-01 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-01 11:14 [PATCH 1/1] cpufreq: s5pv210: Fix section mismatch warning Sachin Kamat
2014-08-01 11:17 ` Viresh Kumar
2014-08-01 14:21 ` Kukjin Kim
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.