Author: markj
Date: Fri Feb 28 17:38:31 2020
New Revision: 358437
URL: https://svnweb.freebsd.org/changeset/base/358437

Log:
  Fix r358436 to not declare kernel symbols when _KERNEL is not defined.
  
  Reported by:  Jenkins, Michael Butler
  Pointy hat:   markj

Modified:
  head/sys/sys/sysent.h

Modified: head/sys/sys/sysent.h
==============================================================================
--- head/sys/sys/sysent.h       Fri Feb 28 17:23:53 2020        (r358436)
+++ head/sys/sys/sysent.h       Fri Feb 28 17:38:31 2020        (r358437)
@@ -53,10 +53,10 @@ typedef     void    (*systrace_probe_func_t)(struct 
syscall_a
                    enum systrace_probe_t, int);
 typedef        void    (*systrace_args_func_t)(int, void *, uint64_t *, int *);
 
+#ifdef _KERNEL
 extern systrace_probe_func_t   systrace_probe_func;
 extern bool                    systrace_enabled;
 
-#ifdef _KERNEL
 #ifdef KDTRACE_HOOKS
 #define        SYSTRACE_ENABLED()      (systrace_enabled)
 #else
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to