public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2, v2] cpufreq: build fixes
@ 2015-02-18 20:54 Arnd Bergmann
  2015-02-18 20:55 ` [PATCH 1/2 v2] cpufreq: s3c: remove incorrect __init annotations Arnd Bergmann
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arnd Bergmann @ 2015-02-18 20:54 UTC (permalink / raw)
  To: linux-arm-kernel

This is an unmodified re-send of two patches I originally submitted
on January 28. Both patches were Acked by Viresh, while a third patch
got replaced with a better fix. Please merge these through the cpufreq
tree for 3.20 and backports.

	Arnd

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2 v2] cpufreq: s3c: remove incorrect __init annotations
  2015-02-18 20:54 [PATCH 0/2, v2] cpufreq: build fixes Arnd Bergmann
@ 2015-02-18 20:55 ` Arnd Bergmann
  2015-02-18 20:55 ` [PATCH 2/2 v2] cpufreq: s3c: remove last use of resume_clocks callback Arnd Bergmann
  2015-02-19  5:33 ` [PATCH 0/2, v2] cpufreq: build fixes Rafael J. Wysocki
  2 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2015-02-18 20:55 UTC (permalink / raw)
  To: linux-arm-kernel

The two functions s3c2416_cpufreq_driver_init and s3c_cpufreq_register
are marked init but are called from a context that might be run after
the __init sections are discarded, as the compiler points out:

WARNING: vmlinux.o(.data+0x1ad9dc): Section mismatch in reference from the variable s3c2416_cpufreq_driver to the function .init.text:s3c2416_cpufreq_driver_init()
WARNING: drivers/built-in.o(.text+0x35b5dc): Section mismatch in reference from the function s3c2410a_cpufreq_add() to the function .init.text:s3c_cpufreq_register()

This removes the __init markings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: stable at vger.kernel.org

diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c
index 2fd53eaaec20..d6d425773fa4 100644
--- a/drivers/cpufreq/s3c2416-cpufreq.c
+++ b/drivers/cpufreq/s3c2416-cpufreq.c
@@ -263,7 +263,7 @@ out:
 }
 
 #ifdef CONFIG_ARM_S3C2416_CPUFREQ_VCORESCALE
-static void __init s3c2416_cpufreq_cfg_regulator(struct s3c2416_data *s3c_freq)
+static void s3c2416_cpufreq_cfg_regulator(struct s3c2416_data *s3c_freq)
 {
 	int count, v, i, found;
 	struct cpufreq_frequency_table *pos;
@@ -333,7 +333,7 @@ static struct notifier_block s3c2416_cpufreq_reboot_notifier = {
 	.notifier_call = s3c2416_cpufreq_reboot_notifier_evt,
 };
 
-static int __init s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy)
+static int s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy)
 {
 	struct s3c2416_data *s3c_freq = &s3c2416_cpufreq;
 	struct cpufreq_frequency_table *pos;
diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c
index d00f1cee4509..bd340a1ca87d 100644
--- a/drivers/cpufreq/s3c24xx-cpufreq.c
+++ b/drivers/cpufreq/s3c24xx-cpufreq.c
@@ -454,7 +454,7 @@ static struct cpufreq_driver s3c24xx_driver = {
 };
 
 
-int __init s3c_cpufreq_register(struct s3c_cpufreq_info *info)
+int s3c_cpufreq_register(struct s3c_cpufreq_info *info)
 {
 	if (!info || !info->name) {
 		printk(KERN_ERR "%s: failed to pass valid information\n",

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2 v2] cpufreq: s3c: remove last use of resume_clocks callback
  2015-02-18 20:54 [PATCH 0/2, v2] cpufreq: build fixes Arnd Bergmann
  2015-02-18 20:55 ` [PATCH 1/2 v2] cpufreq: s3c: remove incorrect __init annotations Arnd Bergmann
@ 2015-02-18 20:55 ` Arnd Bergmann
  2015-02-19  5:33 ` [PATCH 0/2, v2] cpufreq: build fixes Rafael J. Wysocki
  2 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2015-02-18 20:55 UTC (permalink / raw)
  To: linux-arm-kernel

Commit 32726d2d550 ("ARM: SAMSUNG: Remove legacy clock code")
already removed the callback pointer, but there was one remaining
user:

drivers/cpufreq/s3c24xx-cpufreq.c: In function 's3c_cpufreq_resume_clocks':
drivers/cpufreq/s3c24xx-cpufreq.c:149:14: error: 'struct s3c_cpufreq_info' has no member named 'resume_clocks'
  cpu_cur.info->resume_clocks();
              ^

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 32726d2d550 ("ARM: SAMSUNG: Remove legacy clock code")
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: stable at vger.kernel.org # v3.17+

diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c
index bd340a1ca87d..733aa5153e74 100644
--- a/drivers/cpufreq/s3c24xx-cpufreq.c
+++ b/drivers/cpufreq/s3c24xx-cpufreq.c
@@ -144,11 +144,6 @@ static void s3c_cpufreq_setfvco(struct s3c_cpufreq_config *cfg)
 	(cfg->info->set_fvco)(cfg);
 }
 
-static inline void s3c_cpufreq_resume_clocks(void)
-{
-	cpu_cur.info->resume_clocks();
-}
-
 static inline void s3c_cpufreq_updateclk(struct clk *clk,
 					 unsigned int freq)
 {
@@ -417,9 +412,6 @@ static int s3c_cpufreq_resume(struct cpufreq_policy *policy)
 
 	last_target = ~0;	/* invalidate last_target setting */
 
-	/* first, find out what speed we resumed at. */
-	s3c_cpufreq_resume_clocks();
-
 	/* whilst we will be called later on, we try and re-set the
 	 * cpu frequencies as soon as possible so that we do not end
 	 * up resuming devices and then immediately having to re-set

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 0/2, v2] cpufreq: build fixes
  2015-02-18 20:54 [PATCH 0/2, v2] cpufreq: build fixes Arnd Bergmann
  2015-02-18 20:55 ` [PATCH 1/2 v2] cpufreq: s3c: remove incorrect __init annotations Arnd Bergmann
  2015-02-18 20:55 ` [PATCH 2/2 v2] cpufreq: s3c: remove last use of resume_clocks callback Arnd Bergmann
@ 2015-02-19  5:33 ` Rafael J. Wysocki
  2015-02-19  5:35   ` Rafael J. Wysocki
  2 siblings, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki @ 2015-02-19  5:33 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday, February 18, 2015 09:54:01 PM Arnd Bergmann wrote:
> This is an unmodified re-send of two patches I originally submitted
> on January 28. Both patches were Acked by Viresh, while a third patch
> got replaced with a better fix. Please merge these through the cpufreq
> tree for 3.20 and backports.

OK

It would be useful to know what series of "stable" you want them in,
but I can say "all applicable" too.

Rafael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 0/2, v2] cpufreq: build fixes
  2015-02-19  5:33 ` [PATCH 0/2, v2] cpufreq: build fixes Rafael J. Wysocki
@ 2015-02-19  5:35   ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2015-02-19  5:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday, February 19, 2015 06:33:14 AM Rafael J. Wysocki wrote:
> On Wednesday, February 18, 2015 09:54:01 PM Arnd Bergmann wrote:
> > This is an unmodified re-send of two patches I originally submitted
> > on January 28. Both patches were Acked by Viresh, while a third patch
> > got replaced with a better fix. Please merge these through the cpufreq
> > tree for 3.20 and backports.
> 
> OK
> 
> It would be useful to know what series of "stable" you want them in,
> but I can say "all applicable" too.

OK, the second one has that information, so never mind.

Rafael

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-19  5:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-18 20:54 [PATCH 0/2, v2] cpufreq: build fixes Arnd Bergmann
2015-02-18 20:55 ` [PATCH 1/2 v2] cpufreq: s3c: remove incorrect __init annotations Arnd Bergmann
2015-02-18 20:55 ` [PATCH 2/2 v2] cpufreq: s3c: remove last use of resume_clocks callback Arnd Bergmann
2015-02-19  5:33 ` [PATCH 0/2, v2] cpufreq: build fixes Rafael J. Wysocki
2015-02-19  5:35   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox