From 492fe1b77424ccbe82ba355c00d03a6bef5391d4 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 21 Jul 2016 17:59:30 +0000 Subject: [PATCH] Hide counted_warning(9) under #ifdef _KERNEL braces, to allow building subr_prf.c in userspace for libsbuf. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/kern/subr_prf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 5f9796e7d876..3784ffddb6f1 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1196,6 +1196,7 @@ sbuf_hexdump(struct sbuf *sb, const void *ptr, int length, const char *hdr, } } +#ifdef _KERNEL void counted_warning(unsigned *counter, const char *msg) { @@ -1215,3 +1216,4 @@ counted_warning(unsigned *counter, const char *msg) } } } +#endif