summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-02-11 12:35:36 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:24 +0200
commitc39de3c417be5bcc38ca8c7c3d4585b80c8f4c28 (patch)
tree68306bd776f96c381f15adde8a453007fb947477 /c/src/lib/libbsp/sparc/shared
parent7bc74ed5200cd3027781c2d2686c69814ccf87c8 (diff)
downloadrtems-c39de3c417be5bcc38ca8c7c3d4585b80c8f4c28.tar.bz2
GPIOLIB: fix build warnings
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared')
-rw-r--r--c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c b/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c
index 4eca013267..6fb1cfc70c 100644
--- a/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c
+++ b/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c
@@ -35,13 +35,13 @@ static int port_nr;
static int gpiolib_initied = 0;
/* Insert a port first in ports list */
-void gpiolib_list_add(struct gpiolib_port *port)
+static void gpiolib_list_add(struct gpiolib_port *port)
{
port->next = gpiolib_ports;
gpiolib_ports = port;
}
-struct gpiolib_port *gpiolib_find(int minor)
+static struct gpiolib_port *gpiolib_find(int minor)
{
struct gpiolib_port *p;
@@ -52,7 +52,7 @@ struct gpiolib_port *gpiolib_find(int minor)
return p;
}
-struct gpiolib_port *gpiolib_find_by_name(char *name)
+static struct gpiolib_port *gpiolib_find_by_name(char *name)
{
struct gpiolib_port *p;
struct gpiolib_info info;
@@ -71,11 +71,6 @@ struct gpiolib_port *gpiolib_find_by_name(char *name)
return p;
}
-void gpiolib_list_remove(struct gpiolib_port *port)
-{
-
-}
-
int gpiolib_drv_register(struct gpiolib_drv *drv, void *handle)
{
struct gpiolib_port *port;
@@ -123,7 +118,7 @@ void gpiolib_show(int port, void *handle)
}
}
-void *gpiolib_open_internal(int port, char *devName)
+static void *gpiolib_open_internal(int port, char *devName)
{
struct gpiolib_port *p;
@@ -218,7 +213,7 @@ int gpiolib_irq_register(void *handle, void *func, void *arg)
return port->drv->ops->irq_register(port->handle, func, arg);
}
-int gpiolib_irq_opts(void *handle, unsigned int options)
+static int gpiolib_irq_opts(void *handle, unsigned int options)
{
struct gpiolib_port *port = handle;