summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2017-08-25 00:16:48 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-29 16:29:21 -0700
commit2506051d55dd5cb9fe10b4e978e22fa00363044b (patch)
tree2caacfea86fd90801189c571817821c4637c2438
parent442c756bb09387e097c9bda87eae9d5104c593af (diff)
downloadsilo-2506051d55dd5cb9fe10b4e978e22fa00363044b.tar.gz
second/tilo: make all inline functions static
Make all inline functions static. This will avoid build errors with GCC 7.2. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--second/cfg.c2
-rw-r--r--second/decomp.c2
-rw-r--r--second/memory.c8
-rw-r--r--tilo/tilo.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/second/cfg.c b/second/cfg.c
index 69de34c..15d2d88 100644
--- a/second/cfg.c
+++ b/second/cfg.c
@@ -127,7 +127,7 @@ void cfg_error (char *msg,...)
longjmp (env, 1);
}
-inline int my_getc ()
+static inline int my_getc ()
{
if (currp == endp)
return EOF;
diff --git a/second/decomp.c b/second/decomp.c
index df4786c..32fae92 100644
--- a/second/decomp.c
+++ b/second/decomp.c
@@ -62,7 +62,7 @@ static unsigned outcnt = 0; /* bytes in output buffer */
static void flush_window (void);
static void error (char *);
#define gzip_mark mark
-inline void gzip_release (void **p)
+static inline void gzip_release (void **p)
{
release (*p);
}
diff --git a/second/memory.c b/second/memory.c
index f642577..4157cdd 100644
--- a/second/memory.c
+++ b/second/memory.c
@@ -158,7 +158,7 @@ void sun4c_unmapio (unsigned long virtual)
sun4c_map (virtual & ~4095, 0);
}
-inline unsigned long sun4m_get_lev1 (void)
+static inline unsigned long sun4m_get_lev1 (void)
{
unsigned long ret;
@@ -172,7 +172,7 @@ inline unsigned long sun4m_get_lev1 (void)
return ret;
}
-inline unsigned long sun4m_probe (unsigned long l)
+static inline unsigned long sun4m_probe (unsigned long l)
{
unsigned long ret;
@@ -181,7 +181,7 @@ inline unsigned long sun4m_probe (unsigned long l)
return ret;
}
-inline unsigned long sun4m_get_direct (unsigned long l)
+static inline unsigned long sun4m_get_direct (unsigned long l)
{
unsigned long ret;
__asm__ ("\n\t"
@@ -189,7 +189,7 @@ inline unsigned long sun4m_get_direct (unsigned long l)
return ret;
}
-inline void sun4m_set_direct (unsigned long l, unsigned long set)
+static inline void sun4m_set_direct (unsigned long l, unsigned long set)
{
__asm__ ("\n\t"
"sta %0, [%1] 32\n\t" : : "r" (set), "r" (l));
diff --git a/tilo/tilo.c b/tilo/tilo.c
index 9ed4091..0cabe7b 100644
--- a/tilo/tilo.c
+++ b/tilo/tilo.c
@@ -73,7 +73,7 @@ static unsigned outcnt = 0; /* bytes in output buffer */
static void flush_window (void);
static void error (char *);
#define gzip_mark mark
-inline void gzip_release (void **p)
+static inline void gzip_release (void **p)
{
release (*p);
}