mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 15:00:52 +07:00
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>
This commit is contained in:
parent
6b77f18896
commit
b34819bc0e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user