diff options
author | Mitchell Horne <mhorne@FreeBSD.org> | 2020-09-21 17:28:41 +0000 |
---|---|---|
committer | Mitchell Horne <mhorne@FreeBSD.org> | 2020-09-21 17:28:41 +0000 |
commit | 45f650814976a385ff643664ff5fe15e8fece6da (patch) | |
tree | d430f54be83a616d876c4b8f0401ada86e16ef29 /sys/sys/kernel.h | |
parent | dc940832736fe47d91b70fe993bbe0d8245c857f (diff) | |
download | src-45f650814976a385ff643664ff5fe15e8fece6da.tar.gz src-45f650814976a385ff643664ff5fe15e8fece6da.zip |
Hide tunable definitions behind _KERNEL
Some userspace code include sys/kernel.h. Namely, some OpenZFS tests do
this, and it was causing breakage after r365945 due to a lack of bool
typedef. Userspace should not need the TUNABLE_** stuff, so hide it
behind an #ifdef _KERNEL.
Sorry for the breakage.
Reported by: andrew, Michael Butler, Jenkins
Discussed with: kevans, allanjude
Notes
Notes:
svn path=/head/; revision=365955
Diffstat (limited to 'sys/sys/kernel.h')
-rw-r--r-- | sys/sys/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 11aa46e5a30f..181036c98a6a 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -297,6 +297,8 @@ sysinit_tslog_shim(const void * data) void sysinit_add(struct sysinit **set, struct sysinit **set_end); +#ifdef _KERNEL + /* * Infrastructure for tunable 'constants'. Value may be specified at compile * time or kernel load time. Rules relating tunables together can be placed @@ -459,6 +461,8 @@ struct tunable_str { #define TUNABLE_STR_FETCH(path, var, size) \ getenv_string((path), (var), (size)) +#endif /* _KERNEL */ + typedef void (*ich_func_t)(void *_arg); struct intr_config_hook { |