Mark functions as static

Mark functions used only in the same translation unit as static. This
only includes functions that do not have a prototype in a header file
either.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10470
This commit is contained in:
Arvind Sankar
2020-06-15 14:30:37 -04:00
committed by Brian Behlendorf
parent 1fa5c7af33
commit 65c7cc49bf
62 changed files with 157 additions and 176 deletions
+2 -15
View File
@@ -29,20 +29,7 @@
#ifndef _SPL_CONSOLE_H
#define _SPL_CONSOLE_H
static inline void
console_vprintf(const char *fmt, va_list args)
{
vprintf(fmt, args);
}
static inline void
console_printf(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
console_vprintf(fmt, args);
va_end(args);
}
#define console_vprintf vprintf
#define console_printf printf
#endif /* _SPL_CONSOLE_H */