linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] cpufreq: ppc: Add missing #include <asm/smp.h>
@ 2014-04-17  9:53 Geert Uytterhoeven
  2014-04-17  9:53 ` [PATCH 2/3] cpufreq: ppc: Fix integer overflow in expression Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-04-17  9:53 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar
  Cc: Geert Uytterhoeven, linuxppc-dev, linux-kernel, cpufreq, linux-pm

If CONFIG_SMP=n, <linux/smp.h> does not include <asm/smp.h>, causing:

drivers/cpufreq/ppc-corenet-cpufreq.c: In function 'corenet_cpufreq_cpu_init':
drivers/cpufreq/ppc-corenet-cpufreq.c:173:3: error: implicit declaration of function 'get_hard_smp_processor_id' [-Werror=implicit-function-declaration]

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/cpufreq/ppc-corenet-cpufreq.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c
index b7e677be1df0..e78f9c806de4 100644
--- a/drivers/cpufreq/ppc-corenet-cpufreq.c
+++ b/drivers/cpufreq/ppc-corenet-cpufreq.c
@@ -22,6 +22,8 @@
 #include <linux/smp.h>
 #include <sysdev/fsl_soc.h>
 
+#include <asm/smp.h>
+
 /**
  * struct cpu_data - per CPU data struct
  * @parent: the parent node of cpu clock
-- 
1.7.9.5

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

end of thread, other threads:[~2014-04-21  8:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17  9:53 [PATCH 1/3] cpufreq: ppc: Add missing #include <asm/smp.h> Geert Uytterhoeven
2014-04-17  9:53 ` [PATCH 2/3] cpufreq: ppc: Fix integer overflow in expression Geert Uytterhoeven
2014-04-21  5:52   ` Viresh Kumar
2014-04-17  9:53 ` [PATCH 3/3] cpufreq: ppc: Fix handling of non-existent clocks Geert Uytterhoeven
2014-04-21  6:01   ` Viresh Kumar
2014-04-21  8:01     ` Geert Uytterhoeven
2014-04-21  5:51 ` [PATCH 1/3] cpufreq: ppc: Add missing #include <asm/smp.h> Viresh Kumar

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).