aboutsummaryrefslogtreecommitdiffstats
path: root/include/os
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-15 14:30:37 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:20:38 -0700
commit65c7cc49bfcf49d38fc84552a17d7e8a3268e58e (patch)
tree4740b896f8b5fc114ae9a96c6581776799ffeb3a /include/os
parent1fa5c7af3314b4c556bd86e3a49e3497a5ed72ed (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10470
Diffstat (limited to 'include/os')
-rw-r--r--include/os/freebsd/spl/sys/console.h17
-rw-r--r--include/os/linux/spl/sys/console.h17
2 files changed, 4 insertions, 30 deletions
diff --git a/include/os/freebsd/spl/sys/console.h b/include/os/freebsd/spl/sys/console.h
index abf3db756..a0bf8175e 100644
--- a/include/os/freebsd/spl/sys/console.h
+++ b/include/os/freebsd/spl/sys/console.h
@@ -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 */
diff --git a/include/os/linux/spl/sys/console.h b/include/os/linux/spl/sys/console.h
index 3469cb762..33c8b3c6b 100644
--- a/include/os/linux/spl/sys/console.h
+++ b/include/os/linux/spl/sys/console.h
@@ -25,20 +25,7 @@
#ifndef _SPL_CONSOLE_H
#define _SPL_CONSOLE_H
-void
-console_vprintf(const char *fmt, va_list args)
-{
- vprintk(fmt, args);
-}
-
-void
-console_printf(const char *fmt, ...)
-{
- va_list args;
-
- va_start(args, fmt);
- console_vprintf(fmt, args);
- va_end(args);
-}
+#define console_vprintf vprintk
+#define console_printf printk
#endif /* _SPL_CONSOLE_H */