aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>2016-11-09 08:52:26 +0200
committerLucas De Marchi <lucas.demarchi@intel.com>2016-11-10 22:14:27 -0200
commitb34819bc0e054c7eb8054d763ae9ead4f2c5443a (patch)
treed0703a35111a84bd5690faa34607023e528a163e
parent6b77f188969d72254f6bda291f4f2d9fd42f5ecc (diff)
downloadkmod-b34819bc0e054c7eb8054d763ae9ead4f2c5443a.tar.gz
shared: make scratchbuf_str static
It fixes linking problem tools/depmod.o: In function `output_symbols_bin': depmod.c:(.text.output_symbols_bin+0x135): undefined reference to `scratchbuf_str' for -O0 build, where gcc doesn't actually inline it. Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
-rw-r--r--shared/scratchbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/scratchbuf.h b/shared/scratchbuf.h
index c12e490..27ea9d9 100644
--- a/shared/scratchbuf.h
+++ b/shared/scratchbuf.h
@@ -19,7 +19,7 @@ int scratchbuf_alloc(struct scratchbuf *buf, size_t sz);
void scratchbuf_release(struct scratchbuf *buf);
/* Return a C string */
-inline char *scratchbuf_str(struct scratchbuf *buf)
+static inline char *scratchbuf_str(struct scratchbuf *buf)
{
return buf->bytes;
}