* [PATCH 0/4] Some cleanups for IP32
@ 2009-03-30 19:53 Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 1/4] [MIPS] ip32: two symbols can become static Dmitri Vorobiev
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Dmitri Vorobiev @ 2009-03-30 19:53 UTC (permalink / raw)
To: ralf, linux-mips
Hi Ralf,
Following are some cleanups for IP32. Please consider.
Thanks,
Dmitri
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] [MIPS] ip32: two symbols can become static
2009-03-30 19:53 [PATCH 0/4] Some cleanups for IP32 Dmitri Vorobiev
@ 2009-03-30 19:53 ` Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 2/4] [MIPS] ip32: ip32_be_handler symbol is needlessly defined global Dmitri Vorobiev
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Dmitri Vorobiev @ 2009-03-30 19:53 UTC (permalink / raw)
To: ralf, linux-mips; +Cc: Dmitri Vorobiev
The file arch/mips/mm/sc-rm7k.c needlessly defines two global symbols:
rm7k_sc_ops
rm7k_tcache_enabled
This patch makes these symbols static.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
arch/mips/mm/sc-rm7k.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/mm/sc-rm7k.c b/arch/mips/mm/sc-rm7k.c
index e3abfb2..de69bfb 100644
--- a/arch/mips/mm/sc-rm7k.c
+++ b/arch/mips/mm/sc-rm7k.c
@@ -29,7 +29,7 @@ extern unsigned long icache_way_size, dcache_way_size;
#include <asm/r4kcache.h>
-int rm7k_tcache_enabled;
+static int rm7k_tcache_enabled;
/*
* Writeback and invalidate the primary cache dcache before DMA.
@@ -121,7 +121,7 @@ static void rm7k_sc_disable(void)
clear_c0_config(RM7K_CONF_SE);
}
-struct bcache_ops rm7k_sc_ops = {
+static struct bcache_ops rm7k_sc_ops = {
.bc_enable = rm7k_sc_enable,
.bc_disable = rm7k_sc_disable,
.bc_wback_inv = rm7k_sc_wback_inv,
--
1.5.6.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] [MIPS] ip32: ip32_be_handler symbol is needlessly defined global
2009-03-30 19:53 [PATCH 0/4] Some cleanups for IP32 Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 1/4] [MIPS] ip32: two symbols can become static Dmitri Vorobiev
@ 2009-03-30 19:53 ` Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 3/4] [MIPS] ip32: fix needlessly global symbols in arch/mips/sgi-ip32/ip32-irq.c Dmitri Vorobiev
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Dmitri Vorobiev @ 2009-03-30 19:53 UTC (permalink / raw)
To: ralf, linux-mips; +Cc: Dmitri Vorobiev
The file arch/mips/sgi-ip32/ip32-berr.c needlessly defines the function
ip32_be_handler() as global, and this patch makes it static.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
arch/mips/sgi-ip32/ip32-berr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/sgi-ip32/ip32-berr.c b/arch/mips/sgi-ip32/ip32-berr.c
index a278e91..afc1cad 100644
--- a/arch/mips/sgi-ip32/ip32-berr.c
+++ b/arch/mips/sgi-ip32/ip32-berr.c
@@ -16,7 +16,7 @@
#include <asm/ptrace.h>
#include <asm/tlbdebug.h>
-int ip32_be_handler(struct pt_regs *regs, int is_fixup)
+static int ip32_be_handler(struct pt_regs *regs, int is_fixup)
{
int data = regs->cp0_cause & 4;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] [MIPS] ip32: fix needlessly global symbols in arch/mips/sgi-ip32/ip32-irq.c
2009-03-30 19:53 [PATCH 0/4] Some cleanups for IP32 Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 1/4] [MIPS] ip32: two symbols can become static Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 2/4] [MIPS] ip32: ip32_be_handler symbol is needlessly defined global Dmitri Vorobiev
@ 2009-03-30 19:53 ` Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 4/4] [MIPS] gbe: make needlessly global symbols static in drivers/video/gbefb.c Dmitri Vorobiev
2009-04-02 12:22 ` [PATCH 0/4] Some cleanups for IP32 Ralf Baechle
4 siblings, 0 replies; 7+ messages in thread
From: Dmitri Vorobiev @ 2009-03-30 19:53 UTC (permalink / raw)
To: ralf, linux-mips; +Cc: Dmitri Vorobiev
The following symbols are needlessly defined global: cpuerr_irq and
memerr_irq. This patch makes the symbols static.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
arch/mips/sgi-ip32/ip32-irq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/sgi-ip32/ip32-irq.c b/arch/mips/sgi-ip32/ip32-irq.c
index 0d6b666..7abd649 100644
--- a/arch/mips/sgi-ip32/ip32-irq.c
+++ b/arch/mips/sgi-ip32/ip32-irq.c
@@ -112,14 +112,14 @@ static void inline flush_mace_bus(void)
extern irqreturn_t crime_memerr_intr(int irq, void *dev_id);
extern irqreturn_t crime_cpuerr_intr(int irq, void *dev_id);
-struct irqaction memerr_irq = {
+static struct irqaction memerr_irq = {
.handler = crime_memerr_intr,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "CRIME memory error",
};
-struct irqaction cpuerr_irq = {
+static struct irqaction cpuerr_irq = {
.handler = crime_cpuerr_intr,
.flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE,
--
1.5.6.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] [MIPS] gbe: make needlessly global symbols static in drivers/video/gbefb.c
2009-03-30 19:53 [PATCH 0/4] Some cleanups for IP32 Dmitri Vorobiev
` (2 preceding siblings ...)
2009-03-30 19:53 ` [PATCH 3/4] [MIPS] ip32: fix needlessly global symbols in arch/mips/sgi-ip32/ip32-irq.c Dmitri Vorobiev
@ 2009-03-30 19:53 ` Dmitri Vorobiev
2009-04-02 12:22 ` [PATCH 0/4] Some cleanups for IP32 Ralf Baechle
4 siblings, 0 replies; 7+ messages in thread
From: Dmitri Vorobiev @ 2009-03-30 19:53 UTC (permalink / raw)
To: ralf, linux-mips; +Cc: Dmitri Vorobiev
The following symbols are needlessly defined global:
default_mode
default_var
gbe_mem_phys
gbe_turn_off
gbefb_exit
gbefb_init
gbefb_setup
This error was noticed by namespacecheck when compiling ip32_defconfig.
This patch makes the symbols static.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
drivers/video/gbefb.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/video/gbefb.c b/drivers/video/gbefb.c
index fe5b519..1a83709 100644
--- a/drivers/video/gbefb.c
+++ b/drivers/video/gbefb.c
@@ -75,7 +75,7 @@ struct gbefb_par {
static unsigned int gbe_mem_size = CONFIG_FB_GBE_MEM * 1024*1024;
static void *gbe_mem;
static dma_addr_t gbe_dma_addr;
-unsigned long gbe_mem_phys;
+static unsigned long gbe_mem_phys;
static struct {
uint16_t *cpu;
@@ -185,8 +185,8 @@ static struct fb_videomode default_mode_LCD __initdata = {
.vmode = FB_VMODE_NONINTERLACED,
};
-struct fb_videomode *default_mode __initdata = &default_mode_CRT;
-struct fb_var_screeninfo *default_var __initdata = &default_var_CRT;
+static struct fb_videomode *default_mode __initdata = &default_mode_CRT;
+static struct fb_var_screeninfo *default_var __initdata = &default_var_CRT;
static int flat_panel_enabled = 0;
@@ -205,7 +205,7 @@ static void gbe_reset(void)
* console.
*/
-void gbe_turn_off(void)
+static void gbe_turn_off(void)
{
int i;
unsigned int val, x, y, vpixen_off;
@@ -1097,7 +1097,7 @@ static void gbefb_create_sysfs(struct device *dev)
* Initialization
*/
-int __init gbefb_setup(char *options)
+static int __init gbefb_setup(char *options)
{
char *this_opt;
@@ -1283,7 +1283,7 @@ static struct platform_driver gbefb_driver = {
static struct platform_device *gbefb_device;
-int __init gbefb_init(void)
+static int __init gbefb_init(void)
{
int ret = platform_driver_register(&gbefb_driver);
if (!ret) {
@@ -1301,7 +1301,7 @@ int __init gbefb_init(void)
return ret;
}
-void __exit gbefb_exit(void)
+static void __exit gbefb_exit(void)
{
platform_device_unregister(gbefb_device);
platform_driver_unregister(&gbefb_driver);
--
1.5.6.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] Some cleanups for IP32
2009-03-30 19:53 [PATCH 0/4] Some cleanups for IP32 Dmitri Vorobiev
` (3 preceding siblings ...)
2009-03-30 19:53 ` [PATCH 4/4] [MIPS] gbe: make needlessly global symbols static in drivers/video/gbefb.c Dmitri Vorobiev
@ 2009-04-02 12:22 ` Ralf Baechle
2009-04-02 12:28 ` Dmitri Vorobiev
4 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2009-04-02 12:22 UTC (permalink / raw)
To: Dmitri Vorobiev; +Cc: linux-mips
On Mon, Mar 30, 2009 at 10:53:22PM +0300, Dmitri Vorobiev wrote:
> From: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
> Date: Mon, 30 Mar 2009 22:53:22 +0300
> To: ralf@linux-mips.org, linux-mips@linux-mips.org
> Subject: [PATCH 0/4] Some cleanups for IP32
>
> Hi Ralf,
>
> Following are some cleanups for IP32. Please consider.
You've probably already noticed that I applied this series a few days ago.
Thanks!
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] Some cleanups for IP32
2009-04-02 12:22 ` [PATCH 0/4] Some cleanups for IP32 Ralf Baechle
@ 2009-04-02 12:28 ` Dmitri Vorobiev
0 siblings, 0 replies; 7+ messages in thread
From: Dmitri Vorobiev @ 2009-04-02 12:28 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
Ralf Baechle wrote:
> On Mon, Mar 30, 2009 at 10:53:22PM +0300, Dmitri Vorobiev wrote:
>> From: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
>> Date: Mon, 30 Mar 2009 22:53:22 +0300
>> To: ralf@linux-mips.org, linux-mips@linux-mips.org
>> Subject: [PATCH 0/4] Some cleanups for IP32
>>
>> Hi Ralf,
>>
>> Following are some cleanups for IP32. Please consider.
>
> You've probably already noticed that I applied this series a few days ago.
Actually, I have not :)
>
> Thanks!
Thanks.
Dmitri
>
> Ralf
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-02 12:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30 19:53 [PATCH 0/4] Some cleanups for IP32 Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 1/4] [MIPS] ip32: two symbols can become static Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 2/4] [MIPS] ip32: ip32_be_handler symbol is needlessly defined global Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 3/4] [MIPS] ip32: fix needlessly global symbols in arch/mips/sgi-ip32/ip32-irq.c Dmitri Vorobiev
2009-03-30 19:53 ` [PATCH 4/4] [MIPS] gbe: make needlessly global symbols static in drivers/video/gbefb.c Dmitri Vorobiev
2009-04-02 12:22 ` [PATCH 0/4] Some cleanups for IP32 Ralf Baechle
2009-04-02 12:28 ` Dmitri Vorobiev
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).