summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-02-11 09:20:40 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:23 +0200
commit3823f5c24195593353c1b6d6d417d649b98f1b50 (patch)
treeca13a582e3ee04b90b13e4de5ff112bdb415b4d4 /c/src/lib/libbsp
parent60d392b7a5ef1866c9e2df821cf2ea2ea13deee9 (diff)
downloadrtems-3823f5c24195593353c1b6d6d417d649b98f1b50.tar.bz2
GRCTM: fix build warnings
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/sparc/shared/include/grctm.h3
-rw-r--r--c/src/lib/libbsp/sparc/shared/time/grctm.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/grctm.h b/c/src/lib/libbsp/sparc/shared/include/grctm.h
index 731e4c5b37..a652c5c6b7 100644
--- a/c/src/lib/libbsp/sparc/shared/include/grctm.h
+++ b/c/src/lib/libbsp/sparc/shared/include/grctm.h
@@ -162,6 +162,9 @@ void grctm_set_fs_incr(void *grctm, int incr);
/* Set ET increment */
void grctm_set_et_incr(void *grctm, int incr);
+/* Get register base address */
+struct grctm_regs *grctm_get_regs(void *grctm);
+
/* Register the GRCTM driver to Driver Manager */
extern void grctm_register(void);
diff --git a/c/src/lib/libbsp/sparc/shared/time/grctm.c b/c/src/lib/libbsp/sparc/shared/time/grctm.c
index 3185e13264..c756a430ae 100644
--- a/c/src/lib/libbsp/sparc/shared/time/grctm.c
+++ b/c/src/lib/libbsp/sparc/shared/time/grctm.c
@@ -343,7 +343,7 @@ void grctm_int_register(void *grctm, grctm_isr_t func, void *data)
/*** INTERFACE TO DRIVER MANAGER ***/
-int grctm_init2(struct drvmgr_dev *dev)
+static int grctm_init2(struct drvmgr_dev *dev)
{
struct amba_dev_info *ambadev;
struct ambapp_core *pnpinfo;