* mvebu warning fixes
@ 2016-06-07 19:03 Ben Dooks
  2016-06-07 19:03 ` [PATCH 1/5] mvebu: fix missing includes in pmsu.c Ben Dooks
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-07 19:03 UTC (permalink / raw)
  To: linux-arm-kernel
Some warning fixes for the mvebu machine directory
^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 1/5] mvebu: fix missing includes in pmsu.c
  2016-06-07 19:03 mvebu warning fixes Ben Dooks
@ 2016-06-07 19:03 ` Ben Dooks
  2016-06-07 19:03 ` [PATCH 2/5] mvebu: fix missing include of common.h in pm.c Ben Dooks
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-07 19:03 UTC (permalink / raw)
  To: linux-arm-kernel
The file is missing definitions for some functions due to not
including two header files. Fix the following warnings by
including "pmsu.h" and <linux/mvebu-pmsu.h> in pmsu.c:
arch/arm/mach-mvebu/pmsu.c:127:5: warning: symbol 'mvebu_setup_boot_addr_wa' was not declared. Should it be static?
arch/arm/mach-mvebu/pmsu.c:267:5: warning: symbol 'armada_370_xp_pmsu_idle_enter' was not declared. Should it be static?
arch/arm/mach-mvebu/pmsu.c:313:5: warning: symbol 'armada_38x_do_cpu_suspend' was not declared. Should it be static?
arch/arm/mach-mvebu/pmsu.c:340:6: warning: symbol 'mvebu_v7_pmsu_idle_exit' was not declared. Should it be static?
arch/arm/mach-mvebu/pmsu.c:570:5: warning: symbol 'mvebu_pmsu_dfs_request' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/mach-mvebu/pmsu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index b444423..f39bd51 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -25,6 +25,7 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/mbus.h>
+#include <linux/mvebu-pmsu.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
@@ -38,7 +39,7 @@
 #include <asm/suspend.h>
 #include <asm/tlbflush.h>
 #include "common.h"
-
+#include "pmsu.h"
 
 #define PMSU_BASE_OFFSET    0x100
 #define PMSU_REG_SIZE	    0x1000
-- 
2.8.1
^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 2/5] mvebu: fix missing include of common.h in pm.c
  2016-06-07 19:03 mvebu warning fixes Ben Dooks
  2016-06-07 19:03 ` [PATCH 1/5] mvebu: fix missing includes in pmsu.c Ben Dooks
@ 2016-06-07 19:03 ` Ben Dooks
  2016-06-07 19:03 ` [PATCH 3/5] mvebu: fix missing include of common.h in cpu-reset.c Ben Dooks
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-07 19:03 UTC (permalink / raw)
  To: linux-arm-kernel
The mvebu_pm_suspend_init() is missing a definition, so
include common.h which defines this function into pm.c to
fix the following warning:
arch/arm/mach-mvebu/pm.c:235:12: warning: symbol 'mvebu_pm_suspend_init' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/mach-mvebu/pm.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-mvebu/pm.c b/arch/arm/mach-mvebu/pm.c
index 8d32bf7..2990c52 100644
--- a/arch/arm/mach-mvebu/pm.c
+++ b/arch/arm/mach-mvebu/pm.c
@@ -23,6 +23,7 @@
 #include <asm/suspend.h>
 
 #include "coherency.h"
+#include "common.h"
 #include "pmsu.h"
 
 #define SDRAM_CONFIG_OFFS                  0x0
-- 
2.8.1
^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 3/5] mvebu: fix missing include of common.h in cpu-reset.c
  2016-06-07 19:03 mvebu warning fixes Ben Dooks
  2016-06-07 19:03 ` [PATCH 1/5] mvebu: fix missing includes in pmsu.c Ben Dooks
  2016-06-07 19:03 ` [PATCH 2/5] mvebu: fix missing include of common.h in pm.c Ben Dooks
@ 2016-06-07 19:03 ` Ben Dooks
  2016-06-07 19:03 ` [PATCH 4/5] mvebu: make mvebu_armada375_smp_wa_init() static Ben Dooks
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-07 19:03 UTC (permalink / raw)
  To: linux-arm-kernel
The mvebu_cpu_reset_deassert() is missing the definition for
it, so include common.h where it is defined to fix the warning:
arch/arm/mach-mvebu/cpu-reset.c:25:5: warning: symbol 'mvebu_cpu_reset_deassert' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/mach-mvebu/cpu-reset.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-mvebu/cpu-reset.c b/arch/arm/mach-mvebu/cpu-reset.c
index 4a2cadd..f33a31c 100644
--- a/arch/arm/mach-mvebu/cpu-reset.c
+++ b/arch/arm/mach-mvebu/cpu-reset.c
@@ -16,6 +16,8 @@
 #include <linux/io.h>
 #include <linux/resource.h>
 
+#include "common.h"
+
 static void __iomem *cpu_reset_base;
 static size_t cpu_reset_size;
 
-- 
2.8.1
^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 4/5] mvebu: make mvebu_armada375_smp_wa_init() static
  2016-06-07 19:03 mvebu warning fixes Ben Dooks
                   ` (2 preceding siblings ...)
  2016-06-07 19:03 ` [PATCH 3/5] mvebu: fix missing include of common.h in cpu-reset.c Ben Dooks
@ 2016-06-07 19:03 ` Ben Dooks
  2016-06-07 19:03 ` [PATCH 5/5] mvebu: add definition for coherency_base Ben Dooks
  2016-06-16  9:57 ` mvebu warning fixes Gregory CLEMENT
  5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-07 19:03 UTC (permalink / raw)
  To: linux-arm-kernel
The mvebu_armada375_smp_wa_init() is not exported or declared
anywhere, so make it static to fix the following warning:
arch/arm/mach-mvebu/system-controller.c:130:6: warning: symbol 'mvebu_armada375_smp_wa_init' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/mach-mvebu/system-controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-mvebu/system-controller.c b/arch/arm/mach-mvebu/system-controller.c
index c6c132a..76cbc82 100644
--- a/arch/arm/mach-mvebu/system-controller.c
+++ b/arch/arm/mach-mvebu/system-controller.c
@@ -127,7 +127,7 @@ int mvebu_system_controller_get_soc_id(u32 *dev, u32 *rev)
 }
 
 #if defined(CONFIG_SMP) && defined(CONFIG_MACH_MVEBU_V7)
-void mvebu_armada375_smp_wa_init(void)
+static void mvebu_armada375_smp_wa_init(void)
 {
 	u32 dev, rev;
 	phys_addr_t resume_addr_reg;
-- 
2.8.1
^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 5/5] mvebu: add definition for coherency_base
  2016-06-07 19:03 mvebu warning fixes Ben Dooks
                   ` (3 preceding siblings ...)
  2016-06-07 19:03 ` [PATCH 4/5] mvebu: make mvebu_armada375_smp_wa_init() static Ben Dooks
@ 2016-06-07 19:03 ` Ben Dooks
  2016-06-16  9:57 ` mvebu warning fixes Gregory CLEMENT
  5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-07 19:03 UTC (permalink / raw)
  To: linux-arm-kernel
Fix the warning that coherency_base is not defined by adding
it to coherency.h (it is only used in the coherency_ll.S):
arch/arm/mach-mvebu/coherency.c:41:14: warning: symbol 'coherency_base' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/mach-mvebu/coherency.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-mvebu/coherency.h b/arch/arm/mach-mvebu/coherency.h
index 54cb760..6067f14 100644
--- a/arch/arm/mach-mvebu/coherency.h
+++ b/arch/arm/mach-mvebu/coherency.h
@@ -14,6 +14,7 @@
 #ifndef __MACH_370_XP_COHERENCY_H
 #define __MACH_370_XP_COHERENCY_H
 
+extern void __iomem *coherency_base;	/* for coherency_ll.S */
 extern unsigned long coherency_phys_base;
 int set_cpu_coherent(void);
 
-- 
2.8.1
^ permalink raw reply related	[flat|nested] 8+ messages in thread
* mvebu warning fixes
  2016-06-07 19:03 mvebu warning fixes Ben Dooks
                   ` (4 preceding siblings ...)
  2016-06-07 19:03 ` [PATCH 5/5] mvebu: add definition for coherency_base Ben Dooks
@ 2016-06-16  9:57 ` Gregory CLEMENT
  2016-06-16 12:42   ` Ben Dooks
  5 siblings, 1 reply; 8+ messages in thread
From: Gregory CLEMENT @ 2016-06-16  9:57 UTC (permalink / raw)
  To: linux-arm-kernel
Hi Ben,
 
 On mar., juin 07 2016, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
> Some warning fixes for the mvebu machine directory
I applied the 5 patches on mvebu/cleanup
Thanks,
Gregory
-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply	[flat|nested] 8+ messages in thread
* mvebu warning fixes
  2016-06-16  9:57 ` mvebu warning fixes Gregory CLEMENT
@ 2016-06-16 12:42   ` Ben Dooks
  0 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2016-06-16 12:42 UTC (permalink / raw)
  To: linux-arm-kernel
On 16/06/16 10:57, Gregory CLEMENT wrote:
> Hi Ben,
>  
>  On mar., juin 07 2016, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
> 
>> Some warning fixes for the mvebu machine directory
> 
> I applied the 5 patches on mvebu/cleanup
Thank you.
-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius
^ permalink raw reply	[flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-06-16 12:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-07 19:03 mvebu warning fixes Ben Dooks
2016-06-07 19:03 ` [PATCH 1/5] mvebu: fix missing includes in pmsu.c Ben Dooks
2016-06-07 19:03 ` [PATCH 2/5] mvebu: fix missing include of common.h in pm.c Ben Dooks
2016-06-07 19:03 ` [PATCH 3/5] mvebu: fix missing include of common.h in cpu-reset.c Ben Dooks
2016-06-07 19:03 ` [PATCH 4/5] mvebu: make mvebu_armada375_smp_wa_init() static Ben Dooks
2016-06-07 19:03 ` [PATCH 5/5] mvebu: add definition for coherency_base Ben Dooks
2016-06-16  9:57 ` mvebu warning fixes Gregory CLEMENT
2016-06-16 12:42   ` Ben Dooks
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).