From: Yauheni Kaliuta Date: Wed, 9 Nov 2016 06:52:26 +0000 (+0200) Subject: shared: make scratchbuf_str static X-Git-Tag: v24~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b34819bc0e054c7eb8054d763ae9ead4f2c5443a;p=thirdparty%2Fkmod.git 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 --- diff --git a/shared/scratchbuf.h b/shared/scratchbuf.h index c12e4902..27ea9d9f 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; }