linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] shared: make scratchbuf_str static
@ 2016-11-09  6:52 Yauheni Kaliuta
  2016-11-11  0:14 ` De Marchi, Lucas
  0 siblings, 1 reply; 2+ messages in thread
From: Yauheni Kaliuta @ 2016-11-09  6:52 UTC (permalink / raw)
  To: linux-modules; +Cc: Lucas De Marchi, Jessica Yu

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>
---
 shared/scratchbuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/scratchbuf.h b/shared/scratchbuf.h
index c12e4902528f..27ea9d9f6008 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;
 }
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-11  0:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-09  6:52 [PATCH] shared: make scratchbuf_str static Yauheni Kaliuta
2016-11-11  0:14 ` De Marchi, Lucas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).