summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/1553/gr1553b.c
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-02-10 09:23:48 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:22 +0200
commitb787bead30b14f643f51bc9244077f1b66d42b71 (patch)
treece21d9953b1db5fd50da4c682dae75642a9b8cee /c/src/lib/libbsp/sparc/shared/1553/gr1553b.c
parentAT697PCI: fix build warnings (diff)
downloadrtems-b787bead30b14f643f51bc9244077f1b66d42b71.tar.bz2
GR1553B: fixed build warnings
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/1553/gr1553b.c')
-rw-r--r--c/src/lib/libbsp/sparc/shared/1553/gr1553b.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/1553/gr1553b.c b/c/src/lib/libbsp/sparc/shared/1553/gr1553b.c
index 26d7b400c3..c715e4fa40 100644
--- a/c/src/lib/libbsp/sparc/shared/1553/gr1553b.c
+++ b/c/src/lib/libbsp/sparc/shared/1553/gr1553b.c
@@ -39,15 +39,15 @@ struct gr1553_device_feature {
};
/* Device lists */
-struct gr1553_device_feature *gr1553_bm_root = NULL;
-struct gr1553_device_feature *gr1553_rt_root = NULL;
-struct gr1553_device_feature *gr1553_bc_root = NULL;
+static struct gr1553_device_feature *gr1553_bm_root = NULL;
+static struct gr1553_device_feature *gr1553_rt_root = NULL;
+static struct gr1553_device_feature *gr1553_bc_root = NULL;
/* Driver registered */
-int gr1553_driver_registerd = 0;
+static int gr1553_driver_registerd = 0;
/* Add 'feat' to linked list pointed to by 'root'. A minor is also assigned. */
-void gr1553_list_add
+static void gr1553_list_add
(
struct gr1553_device_feature **root,
struct gr1553_device_feature *feat
@@ -79,7 +79,7 @@ retry_new_minor:
curr->next = feat;
}
-struct gr1553_device_feature *gr1553_list_find
+static struct gr1553_device_feature *gr1553_list_find
(
struct gr1553_device_feature *root,
int minor
@@ -179,7 +179,7 @@ void gr1553_bm_close(struct drvmgr_dev **dev)
d->alloc &= ~ALLOC_BM;
}
-int gr1553_init2(struct drvmgr_dev *dev)
+static int gr1553_init2(struct drvmgr_dev *dev)
{
struct amba_dev_info *ambadev;
struct ambapp_core *pnpinfo;
@@ -209,7 +209,7 @@ int gr1553_init2(struct drvmgr_dev *dev)
/* Register the different functionalities that the
* core supports.
*/
-int gr1553_init3(struct drvmgr_dev *dev)
+static int gr1553_init3(struct drvmgr_dev *dev)
{
struct amba_dev_info *ambadev;
struct ambapp_core *pnpinfo;