Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Mon, 30 Mar 2009
 14:11:06 -0700
Received: from psmtp.com ([64.18.0.98]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Mon, 30 Mar 2009 14:11:05 -0700
Received: from source ([213.58.128.207]) by exprod5mx275.postini.com
 ([64.18.4.10]) with SMTP;	Mon, 30 Mar 2009 13:11:05 PST
Received: from localhost.localdomain ([127.0.0.1]:46783 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S20026740AbZC3Tzn
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Mon, 30 Mar 2009 20:55:43 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 30 Mar 2009 20:55:26
 +0100 (BST)
Received: from gw02.mail.saunalahti.fi ([195.197.172.116]:42903 "EHLO
	gw02.mail.saunalahti.fi") by ftp.linux-mips.org with ESMTP	id
 S20034141AbZC3Txy (ORCPT <rfc822;linux-mips@linux-mips.org>);	Mon, 30 Mar
 2009 20:53:54 +0100
Received: from localhost.localdomain (a88-114-245-69.elisa-laajakaista.fi
 [88.114.245.69])	by gw02.mail.saunalahti.fi (Postfix) with ESMTP id
 DF022139601;	Mon, 30 Mar 2009 22:53:50 +0300 (EEST)
From: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
To: "ralf@linux-mips.org" <ralf@linux-mips.org>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>
CC: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Mon, 30 Mar 2009 12:53:26 -0700
Subject: [PATCH 4/4] [MIPS] gbe: make needlessly global symbols static in
 drivers/video/gbefb.c
Thread-Topic: [PATCH 4/4] [MIPS] gbe: make needlessly global symbols static
 in drivers/video/gbefb.c
Thread-Index: AcmxfAqH71Ep4xTxTm2kcgtnIks+tQ==
Message-ID: <1238442806-11013-5-git-send-email-dmitri.vorobiev@movial.com>
References: <1238442806-11013-1-git-send-email-dmitri.vorobiev@movial.com>
In-Reply-To: <1238442806-11013-1-git-send-email-dmitri.vorobiev@movial.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 30 Mar 2009 21:11:05.0767 (UTC)
 FILETIME=[09F1C370:01C9B17C]
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:86.00214/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 1/1/1.00/94
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: IGsN4UgBG3OiCoE64elG7Q==
x-list: linux-mips
x-archive-position: 22192
x-ecartis-version: Ecartis v1.0.0
x-original-sender: dmitri.vorobiev@movial.com
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

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 =3D 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;
=20
 static struct {
 	uint16_t *cpu;
@@ -185,8 +185,8 @@ static struct fb_videomode default_mode_LCD __initdata =
=3D {
 	.vmode		=3D FB_VMODE_NONINTERLACED,
 };
=20
-struct fb_videomode *default_mode __initdata =3D &default_mode_CRT;
-struct fb_var_screeninfo *default_var __initdata =3D &default_var_CRT;
+static struct fb_videomode *default_mode __initdata =3D &default_mode_CRT;
+static struct fb_var_screeninfo *default_var __initdata =3D &default_var_C=
RT;
=20
 static int flat_panel_enabled =3D 0;
=20
@@ -205,7 +205,7 @@ static void gbe_reset(void)
  *              console.
  */
=20
-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
  */
=20
-int __init gbefb_setup(char *options)
+static int __init gbefb_setup(char *options)
 {
 	char *this_opt;
=20
@@ -1283,7 +1283,7 @@ static struct platform_driver gbefb_driver =3D {
=20
 static struct platform_device *gbefb_device;
=20
-int __init gbefb_init(void)
+static int __init gbefb_init(void)
 {
 	int ret =3D platform_driver_register(&gbefb_driver);
 	if (!ret) {
@@ -1301,7 +1301,7 @@ int __init gbefb_init(void)
 	return ret;
 }
=20
-void __exit gbefb_exit(void)
+static void __exit gbefb_exit(void)
 {
 	platform_device_unregister(gbefb_device);
 	platform_driver_unregister(&gbefb_driver);
--=20
1.5.6.3


