All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h"
@ 2013-03-25 12:20 Fabio Estevam
  2013-03-25 12:20 ` [PATCH 2/17] ARM: mach-imx: mm-imx3: Staticize imx3_init_l2x0() Fabio Estevam
                   ` (16 more replies)
  0 siblings, 17 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warnings:

arch/arm/mach-imx/cpu.c:10:6: warning: symbol 'mxc_set_cpu_type' was not declared. Should it be static?
arch/arm/mach-imx/cpu.c:15:6: warning: symbol 'imx_print_silicon_rev' was not declared. Should it be static?
arch/arm/mach-imx/cpu.c:24:13: warning: symbol 'imx_set_aips' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/cpu.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 03fcbd0..e70e3ac 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -3,6 +3,7 @@
 #include <linux/io.h>
 
 #include "hardware.h"
+#include "common.h"
 
 unsigned int __mxc_cpu_type;
 EXPORT_SYMBOL(__mxc_cpu_type);
-- 
1.7.9.5

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

* [PATCH 2/17] ARM: mach-imx: mm-imx3: Staticize imx3_init_l2x0()
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 3/17] ARM: mach-imx: iomux-imx31: Staticize mxc_pin_alloc_map Fabio Estevam
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/mm-imx3.c:85:13: warning: symbol 'imx3_init_l2x0' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/mm-imx3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c
index cefa047..e0e69a6 100644
--- a/arch/arm/mach-imx/mm-imx3.c
+++ b/arch/arm/mach-imx/mm-imx3.c
@@ -82,7 +82,7 @@ static void __iomem *imx3_ioremap_caller(unsigned long phys_addr, size_t size,
 	return __arm_ioremap_caller(phys_addr, size, mtype, caller);
 }
 
-void __init imx3_init_l2x0(void)
+static void __init imx3_init_l2x0(void)
 {
 #ifdef CONFIG_CACHE_L2X0
 	void __iomem *l2x0_base;
-- 
1.7.9.5

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

* [PATCH 3/17] ARM: mach-imx: iomux-imx31: Staticize mxc_pin_alloc_map
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
  2013-03-25 12:20 ` [PATCH 2/17] ARM: mach-imx: mm-imx3: Staticize imx3_init_l2x0() Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 4/17] ARM: mach-imx: cpu-imx5: Include "common.h" Fabio Estevam
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/iomux-imx31.c:43:15: warning: symbol 'mxc_pin_alloc_map' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/iomux-imx31.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/iomux-imx31.c b/arch/arm/mach-imx/iomux-imx31.c
index cabefbc..7c66805 100644
--- a/arch/arm/mach-imx/iomux-imx31.c
+++ b/arch/arm/mach-imx/iomux-imx31.c
@@ -40,7 +40,7 @@ static DEFINE_SPINLOCK(gpio_mux_lock);
 
 #define IOMUX_REG_MASK (IOMUX_PADNUM_MASK & ~0x3)
 
-unsigned long mxc_pin_alloc_map[NB_PORTS * 32 / BITS_PER_LONG];
+static unsigned long mxc_pin_alloc_map[NB_PORTS * 32 / BITS_PER_LONG];
 /*
  * set the mode for a IOMUX pin.
  */
-- 
1.7.9.5

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

* [PATCH 4/17] ARM: mach-imx: cpu-imx5: Include "common.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
  2013-03-25 12:20 ` [PATCH 2/17] ARM: mach-imx: mm-imx3: Staticize imx3_init_l2x0() Fabio Estevam
  2013-03-25 12:20 ` [PATCH 3/17] ARM: mach-imx: iomux-imx31: Staticize mxc_pin_alloc_map Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 5/17] ARM: mach-imx: cpu_op-mx51: Include "cpu_op-mx51.h" Fabio Estevam
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warnings:

arch/arm/mach-imx/cpu-imx5.c:65:12: warning: symbol 'mx51_neon_fixup' was not declared. Should it be static?
arch/arm/mach-imx/cpu-imx5.c:99:5: warning: symbol 'mx53_revision' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/cpu-imx5.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/cpu-imx5.c b/arch/arm/mach-imx/cpu-imx5.c
index d7ce722..c1c99a7 100644
--- a/arch/arm/mach-imx/cpu-imx5.c
+++ b/arch/arm/mach-imx/cpu-imx5.c
@@ -18,6 +18,7 @@
 #include <linux/io.h>
 
 #include "hardware.h"
+#include "common.h"
 
 static int mx5_cpu_rev = -1;
 
-- 
1.7.9.5

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

* [PATCH 5/17] ARM: mach-imx: cpu_op-mx51: Include "cpu_op-mx51.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (2 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 4/17] ARM: mach-imx: cpu-imx5: Include "common.h" Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 6/17] ARM: mach-imx: clk-pllv1: Staticize clk_pllv1_ops Fabio Estevam
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/cpu_op-mx51.c:27:15: warning: symbol 'mx51_get_cpu_op' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/cpu_op-mx51.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/cpu_op-mx51.c b/arch/arm/mach-imx/cpu_op-mx51.c
index b9ef692..d6012b8 100644
--- a/arch/arm/mach-imx/cpu_op-mx51.c
+++ b/arch/arm/mach-imx/cpu_op-mx51.c
@@ -16,6 +16,7 @@
 #include <linux/kernel.h>
 
 #include "hardware.h"
+#include "cpu_op-mx51.h"
 
 static struct cpu_op mx51_cpu_op[] = {
 	{
-- 
1.7.9.5

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

* [PATCH 6/17] ARM: mach-imx: clk-pllv1: Staticize clk_pllv1_ops
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (3 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 5/17] ARM: mach-imx: cpu_op-mx51: Include "cpu_op-mx51.h" Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 7/17] ARM: mach-imx: clk-pllv2: Staticize clk_pllv2_ops Fabio Estevam
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/clk-pllv1.c:81:16: warning: symbol 'clk_pllv1_ops' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/clk-pllv1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/clk-pllv1.c b/arch/arm/mach-imx/clk-pllv1.c
index abff350..c1eaee3 100644
--- a/arch/arm/mach-imx/clk-pllv1.c
+++ b/arch/arm/mach-imx/clk-pllv1.c
@@ -78,7 +78,7 @@ static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw,
 	return ll;
 }
 
-struct clk_ops clk_pllv1_ops = {
+static struct clk_ops clk_pllv1_ops = {
 	.recalc_rate = clk_pllv1_recalc_rate,
 };
 
-- 
1.7.9.5

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

* [PATCH 7/17] ARM: mach-imx: clk-pllv2: Staticize clk_pllv2_ops
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (4 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 6/17] ARM: mach-imx: clk-pllv1: Staticize clk_pllv1_ops Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 8/17] ARM: mach-imx: clk-gate2: Include "clk.h" Fabio Estevam
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

rch/arm/mach-imx/clk-pllv2.c:232:16: warning: symbol 'clk_pllv2_ops' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/clk-pllv2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/clk-pllv2.c b/arch/arm/mach-imx/clk-pllv2.c
index 0440379..20889d5 100644
--- a/arch/arm/mach-imx/clk-pllv2.c
+++ b/arch/arm/mach-imx/clk-pllv2.c
@@ -229,7 +229,7 @@ static void clk_pllv2_unprepare(struct clk_hw *hw)
 	__raw_writel(reg, pllbase + MXC_PLL_DP_CTL);
 }
 
-struct clk_ops clk_pllv2_ops = {
+static struct clk_ops clk_pllv2_ops = {
 	.prepare = clk_pllv2_prepare,
 	.unprepare = clk_pllv2_unprepare,
 	.recalc_rate = clk_pllv2_recalc_rate,
-- 
1.7.9.5

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

* [PATCH 8/17] ARM: mach-imx: clk-gate2: Include "clk.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (5 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 7/17] ARM: mach-imx: clk-pllv2: Staticize clk_pllv2_ops Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 9/17] ARM: mach-imx: irq-common: Remove imx_irq_set_priority() Fabio Estevam
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/clk-gate2.c:86:12: warning: symbol 'clk_register_gate2' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/clk-gate2.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/clk-gate2.c b/arch/arm/mach-imx/clk-gate2.c
index cc49c7a..a63e415 100644
--- a/arch/arm/mach-imx/clk-gate2.c
+++ b/arch/arm/mach-imx/clk-gate2.c
@@ -15,6 +15,7 @@
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/string.h>
+#include "clk.h"
 
 /**
  * DOC: basic gatable clock which can gate and ungate it's ouput
-- 
1.7.9.5

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

* [PATCH 9/17] ARM: mach-imx: irq-common: Remove imx_irq_set_priority()
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (6 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 8/17] ARM: mach-imx: clk-gate2: Include "clk.h" Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 10/17] ARM: mach-imx: clk-busy: Staticize clk_busy_mux_ops Fabio Estevam
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

imx_irq_set_priority() is not used anywhere, so remove it.

This fixes the following sparse warnings:

arch/arm/mach-imx/irq-common.c:24:5: warning: symbol 'imx_irq_set_priority' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/irq-common.c |   19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/arch/arm/mach-imx/irq-common.c b/arch/arm/mach-imx/irq-common.c
index b6e1145..4b34f52 100644
--- a/arch/arm/mach-imx/irq-common.c
+++ b/arch/arm/mach-imx/irq-common.c
@@ -21,25 +21,6 @@
 
 #include "irq-common.h"
 
-int imx_irq_set_priority(unsigned char irq, unsigned char prio)
-{
-	struct irq_chip_generic *gc;
-	struct mxc_extra_irq *exirq;
-	int ret;
-
-	ret = -ENOSYS;
-
-	gc = irq_get_chip_data(irq);
-	if (gc && gc->private) {
-		exirq = gc->private;
-		if (exirq->set_priority)
-			ret = exirq->set_priority(irq, prio);
-	}
-
-	return ret;
-}
-EXPORT_SYMBOL(imx_irq_set_priority);
-
 int mxc_set_irq_fiq(unsigned int irq, unsigned int type)
 {
 	struct irq_chip_generic *gc;
-- 
1.7.9.5

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

* [PATCH 10/17] ARM: mach-imx: clk-busy: Staticize clk_busy_mux_ops
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (7 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 9/17] ARM: mach-imx: irq-common: Remove imx_irq_set_priority() Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 11/17] ARM: mach-imx: clk: Include "clk.h" Fabio Estevam
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/clk-busy.c:150:16: warning: symbol 'clk_busy_mux_ops' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/clk-busy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/clk-busy.c b/arch/arm/mach-imx/clk-busy.c
index 1ab91b5..6809c99 100644
--- a/arch/arm/mach-imx/clk-busy.c
+++ b/arch/arm/mach-imx/clk-busy.c
@@ -147,7 +147,7 @@ static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index)
 	return ret;
 }
 
-struct clk_ops clk_busy_mux_ops = {
+static struct clk_ops clk_busy_mux_ops = {
 	.get_parent = clk_busy_mux_get_parent,
 	.set_parent = clk_busy_mux_set_parent,
 };
-- 
1.7.9.5

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

* [PATCH 11/17] ARM: mach-imx: clk: Include "clk.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (8 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 10/17] ARM: mach-imx: clk-busy: Staticize clk_busy_mux_ops Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 12/17] ARM: mach-imx: tzic: Staticize *tzic_base Fabio Estevam
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/clk.c:3:1: warning: symbol 'imx_ccm_lock' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/clk.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/clk.c b/arch/arm/mach-imx/clk.c
index f5e8be8..37e884e 100644
--- a/arch/arm/mach-imx/clk.c
+++ b/arch/arm/mach-imx/clk.c
@@ -1,3 +1,4 @@
 #include <linux/spinlock.h>
+#include "clk.h"
 
 DEFINE_SPINLOCK(imx_ccm_lock);
-- 
1.7.9.5

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

* [PATCH 12/17] ARM: mach-imx: tzic: Staticize *tzic_base
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (9 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 11/17] ARM: mach-imx: clk: Include "clk.h" Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 13:45   ` Sascha Hauer
  2013-03-25 12:20 ` [PATCH 13/17] ARM: mach-imx: avic: Staticize *avic_base Fabio Estevam
                   ` (5 subsequent siblings)
  16 siblings, 1 reply; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/tzic.c:52:14: warning: symbol 'tzic_base' was not declared. Should it be static?

Also, reduce the comment in order to fit into 80 characters.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/tzic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/tzic.c b/arch/arm/mach-imx/tzic.c
index 9721161..1488a4a 100644
--- a/arch/arm/mach-imx/tzic.c
+++ b/arch/arm/mach-imx/tzic.c
@@ -49,7 +49,7 @@
 #define TZIC_SWINT	0x0F00	/* Software Interrupt Rigger Register */
 #define TZIC_ID0	0x0FD0	/* Indentification Register 0 */
 
-void __iomem *tzic_base; /* Used as irq controller base in entry-macro.S */
+static void __iomem *tzic_base; /* irq controller base in entry-macro.S */
 static struct irq_domain *domain;
 
 #define TZIC_NUM_IRQS 128
-- 
1.7.9.5

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

* [PATCH 13/17] ARM: mach-imx: avic: Staticize *avic_base
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (10 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 12/17] ARM: mach-imx: tzic: Staticize *tzic_base Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 14/17] ARM: mach-imx: anatop: Include "common.h" Fabio Estevam
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warning:

arch/arm/mach-imx/avic.c:54:14: warning: symbol 'avic_base' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/avic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/avic.c b/arch/arm/mach-imx/avic.c
index 0eff23e..9c3e014 100644
--- a/arch/arm/mach-imx/avic.c
+++ b/arch/arm/mach-imx/avic.c
@@ -51,7 +51,7 @@
 
 #define AVIC_NUM_IRQS 64
 
-void __iomem *avic_base;
+static void __iomem *avic_base;
 static struct irq_domain *domain;
 
 static u32 avic_saved_mask_reg[2];
-- 
1.7.9.5

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

* [PATCH 14/17] ARM: mach-imx: anatop: Include "common.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (11 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 13/17] ARM: mach-imx: avic: Staticize *avic_base Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 15/17] ARM: mach-imx: gpc: " Fabio Estevam
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warnings:

arch/arm/mach-imx/anatop.c:56:6: warning: symbol 'imx_anatop_pre_suspend' was not declared. Should it be static?
arch/arm/mach-imx/anatop.c:62:6: warning: symbol 'imx_anatop_post_resume' was not declared. Should it be static?
arch/arm/mach-imx/anatop.c:68:6: warning: symbol 'imx_anatop_usb_chrg_detect_disable' was not declared. Should it be static?
arch/arm/mach-imx/anatop.c:78:5: warning: symbol 'imx_anatop_get_digprog' was not declared. Should it be static?
arch/arm/mach-imx/anatop.c:86:13: warning: symbol 'imx_anatop_init' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/anatop.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c
index 8b18b3c..472beee 100644
--- a/arch/arm/mach-imx/anatop.c
+++ b/arch/arm/mach-imx/anatop.c
@@ -15,6 +15,7 @@
 #include <linux/of_address.h>
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
+#include "common.h"
 
 #define REG_SET		0x4
 #define REG_CLR		0x8
-- 
1.7.9.5

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

* [PATCH 15/17] ARM: mach-imx: gpc: Include "common.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (12 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 14/17] ARM: mach-imx: anatop: Include "common.h" Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 16/17] ARM: mach-imx: src: Include "common.h Fabio Estevam
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warnings:

arch/arm/mach-imx/gpc.c:29:6: warning: symbol 'imx_gpc_pre_suspend' was not declared. Should it be static?
arch/arm/mach-imx/gpc.c:43:6: warning: symbol 'imx_gpc_post_resume' was not declared. Should it be static?
arch/arm/mach-imx/gpc.c:71:6: warning: symbol 'imx_gpc_mask_all' was not declared. Should it be static?
arch/arm/mach-imx/gpc.c:83:6: warning: symbol 'imx_gpc_restore_all' was not declared. Should it be static?
arch/arm/mach-imx/gpc.c:122:13: warning: symbol 'imx_gpc_init' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/gpc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c
index c20445c..44a65e9 100644
--- a/arch/arm/mach-imx/gpc.c
+++ b/arch/arm/mach-imx/gpc.c
@@ -16,6 +16,7 @@
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/irqchip/arm-gic.h>
+#include "common.h"
 
 #define GPC_IMR1		0x008
 #define GPC_PGC_CPU_PDN		0x2a0
-- 
1.7.9.5

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

* [PATCH 16/17] ARM: mach-imx: src: Include "common.h
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (13 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 15/17] ARM: mach-imx: gpc: " Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-25 12:20 ` [PATCH 17/17] ARM: mach-imx: mach-imx6q: Fix sparse warnings Fabio Estevam
  2013-03-26  5:33 ` [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Shawn Guo
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warnings:

arch/arm/mach-imx/src.c:28:6: warning: symbol 'imx_enable_cpu' was not declared. Should it be static?
arch/arm/mach-imx/src.c:39:6: warning: symbol 'imx_set_cpu_jump' was not declared. Should it be static?
arch/arm/mach-imx/src.c:46:6: warning: symbol 'imx_src_prepare_restart' was not declared. Should it be static?
arch/arm/mach-imx/src.c:59:13: warning: symbol 'imx_src_init' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/src.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index e15f155..648634d 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -16,6 +16,7 @@
 #include <linux/of_address.h>
 #include <linux/smp.h>
 #include <asm/smp_plat.h>
+#include "common.h"
 
 #define SRC_SCR				0x000
 #define SRC_GPR1			0x020
-- 
1.7.9.5

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

* [PATCH 17/17] ARM: mach-imx: mach-imx6q: Fix sparse warnings
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (14 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 16/17] ARM: mach-imx: src: Include "common.h Fabio Estevam
@ 2013-03-25 12:20 ` Fabio Estevam
  2013-03-26  5:33 ` [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Shawn Guo
  16 siblings, 0 replies; 19+ messages in thread
From: Fabio Estevam @ 2013-03-25 12:20 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following sparse warnings:

arch/arm/mach-imx/mach-imx6q.c:60:6: warning: symbol 'imx6q_restart' was not declared. Should it be static?
arch/arm/mach-imx/mach-imx6q.c:223:24: warning: symbol 'imx6q_cpufreq_pdev' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/mach-imx6q.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 4fc4ffd..d49013b 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -57,7 +57,7 @@ static int imx6q_revision(void)
 	}
 }
 
-void imx6q_restart(char mode, const char *cmd)
+static void imx6q_restart(char mode, const char *cmd)
 {
 	struct device_node *np;
 	void __iomem *wdog_base;
@@ -220,7 +220,7 @@ put_node:
 	of_node_put(np);
 }
 
-struct platform_device imx6q_cpufreq_pdev = {
+static struct platform_device imx6q_cpufreq_pdev = {
 	.name = "imx6q-cpufreq",
 };
 
-- 
1.7.9.5

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

* [PATCH 12/17] ARM: mach-imx: tzic: Staticize *tzic_base
  2013-03-25 12:20 ` [PATCH 12/17] ARM: mach-imx: tzic: Staticize *tzic_base Fabio Estevam
@ 2013-03-25 13:45   ` Sascha Hauer
  0 siblings, 0 replies; 19+ messages in thread
From: Sascha Hauer @ 2013-03-25 13:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Mar 25, 2013 at 09:20:39AM -0300, Fabio Estevam wrote:
> Fix the following sparse warning:
> 
> arch/arm/mach-imx/tzic.c:52:14: warning: symbol 'tzic_base' was not declared. Should it be static?
> 
> Also, reduce the comment in order to fit into 80 characters.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  arch/arm/mach-imx/tzic.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-imx/tzic.c b/arch/arm/mach-imx/tzic.c
> index 9721161..1488a4a 100644
> --- a/arch/arm/mach-imx/tzic.c
> +++ b/arch/arm/mach-imx/tzic.c
> @@ -49,7 +49,7 @@
>  #define TZIC_SWINT	0x0F00	/* Software Interrupt Rigger Register */
>  #define TZIC_ID0	0x0FD0	/* Indentification Register 0 */
>  
> -void __iomem *tzic_base; /* Used as irq controller base in entry-macro.S */
> +static void __iomem *tzic_base; /* irq controller base in entry-macro.S */

The comment is wrong since Linux v3.2, you should remove it.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

* [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h"
  2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
                   ` (15 preceding siblings ...)
  2013-03-25 12:20 ` [PATCH 17/17] ARM: mach-imx: mach-imx6q: Fix sparse warnings Fabio Estevam
@ 2013-03-26  5:33 ` Shawn Guo
  16 siblings, 0 replies; 19+ messages in thread
From: Shawn Guo @ 2013-03-26  5:33 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Mar 25, 2013 at 09:20:28AM -0300, Fabio Estevam wrote:
> Fix the following sparse warnings:
> 
> arch/arm/mach-imx/cpu.c:10:6: warning: symbol 'mxc_set_cpu_type' was not declared. Should it be static?
> arch/arm/mach-imx/cpu.c:15:6: warning: symbol 'imx_print_silicon_rev' was not declared. Should it be static?
> arch/arm/mach-imx/cpu.c:24:13: warning: symbol 'imx_set_aips' was not declared. Should it be static?
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

All applied on imx/non-critical-fixes branch except #14 which is applied
on branch imx/soc.

Shawn

> ---
>  arch/arm/mach-imx/cpu.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
> index 03fcbd0..e70e3ac 100644
> --- a/arch/arm/mach-imx/cpu.c
> +++ b/arch/arm/mach-imx/cpu.c
> @@ -3,6 +3,7 @@
>  #include <linux/io.h>
>  
>  #include "hardware.h"
> +#include "common.h"
>  
>  unsigned int __mxc_cpu_type;
>  EXPORT_SYMBOL(__mxc_cpu_type);
> -- 
> 1.7.9.5
> 
> 

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

end of thread, other threads:[~2013-03-26  5:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-25 12:20 [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Fabio Estevam
2013-03-25 12:20 ` [PATCH 2/17] ARM: mach-imx: mm-imx3: Staticize imx3_init_l2x0() Fabio Estevam
2013-03-25 12:20 ` [PATCH 3/17] ARM: mach-imx: iomux-imx31: Staticize mxc_pin_alloc_map Fabio Estevam
2013-03-25 12:20 ` [PATCH 4/17] ARM: mach-imx: cpu-imx5: Include "common.h" Fabio Estevam
2013-03-25 12:20 ` [PATCH 5/17] ARM: mach-imx: cpu_op-mx51: Include "cpu_op-mx51.h" Fabio Estevam
2013-03-25 12:20 ` [PATCH 6/17] ARM: mach-imx: clk-pllv1: Staticize clk_pllv1_ops Fabio Estevam
2013-03-25 12:20 ` [PATCH 7/17] ARM: mach-imx: clk-pllv2: Staticize clk_pllv2_ops Fabio Estevam
2013-03-25 12:20 ` [PATCH 8/17] ARM: mach-imx: clk-gate2: Include "clk.h" Fabio Estevam
2013-03-25 12:20 ` [PATCH 9/17] ARM: mach-imx: irq-common: Remove imx_irq_set_priority() Fabio Estevam
2013-03-25 12:20 ` [PATCH 10/17] ARM: mach-imx: clk-busy: Staticize clk_busy_mux_ops Fabio Estevam
2013-03-25 12:20 ` [PATCH 11/17] ARM: mach-imx: clk: Include "clk.h" Fabio Estevam
2013-03-25 12:20 ` [PATCH 12/17] ARM: mach-imx: tzic: Staticize *tzic_base Fabio Estevam
2013-03-25 13:45   ` Sascha Hauer
2013-03-25 12:20 ` [PATCH 13/17] ARM: mach-imx: avic: Staticize *avic_base Fabio Estevam
2013-03-25 12:20 ` [PATCH 14/17] ARM: mach-imx: anatop: Include "common.h" Fabio Estevam
2013-03-25 12:20 ` [PATCH 15/17] ARM: mach-imx: gpc: " Fabio Estevam
2013-03-25 12:20 ` [PATCH 16/17] ARM: mach-imx: src: Include "common.h Fabio Estevam
2013-03-25 12:20 ` [PATCH 17/17] ARM: mach-imx: mach-imx6q: Fix sparse warnings Fabio Estevam
2013-03-26  5:33 ` [PATCH 1/17] ARM: mach-imx: cpu: Include "common.h" Shawn Guo

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.