[PATCH 065/111] AHBSTAT: fix build warnings
Daniel Hellstrom
daniel at gaisler.com
Thu Feb 26 16:39:07 UTC 2015
---
c/src/lib/libbsp/sparc/shared/amba/ahbstat.c | 4 ++--
c/src/lib/libbsp/sparc/shared/include/ahbstat.h | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
index 0fe96cd..8825a29 100644
--- a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
+++ b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
@@ -58,7 +58,7 @@ struct ahbstat_priv {
uint32_t last_address;
};
-int ahbstat_init2(struct drvmgr_dev *dev);
+static int ahbstat_init2(struct drvmgr_dev *dev);
struct drvmgr_drv_ops ahbstat_ops =
{
@@ -95,7 +95,7 @@ void ahbstat_register_drv (void)
drvmgr_drv_register(&ahbstat_drv_info.general);
}
-int ahbstat_init2(struct drvmgr_dev *dev)
+static int ahbstat_init2(struct drvmgr_dev *dev)
{
struct ahbstat_priv *priv;
struct amba_dev_info *ambadev;
diff --git a/c/src/lib/libbsp/sparc/shared/include/ahbstat.h b/c/src/lib/libbsp/sparc/shared/include/ahbstat.h
index 8f0576c..0f4d95a 100644
--- a/c/src/lib/libbsp/sparc/shared/include/ahbstat.h
+++ b/c/src/lib/libbsp/sparc/shared/include/ahbstat.h
@@ -66,6 +66,9 @@ extern int ahbstat_last_error(int minor, uint32_t *status, uint32_t *address);
*/
extern struct ahbstat_regs *ahbstat_get_regs(int minor);
+/* Registers the AHBSTAT driver to the Driver Manager */
+void ahbstat_register_drv (void);
+
#ifdef __cplusplus
}
#endif
--
1.7.0.4
More information about the devel
mailing list