aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-03-07 10:58:07 -0800
committerBrian Behlendorf <[email protected]>2011-03-07 10:58:07 -0800
commit7731d46b69bd893d515c55e87ffa8a9bd2ddfb38 (patch)
treebd7728c0559116193fde2ca1d460ed491d4b0738 /config
parent47995fa691a789132373acaedf1e2a64cf213be1 (diff)
Make CONFIG_PREEMPT Fatal
Until support is added for preemptible kernels detect this at configure time and make it fatal. Otherwise, it is possible to have a successful build and kernel modules with flakey behavior.
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 2356f209f..2cf71f41c 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -8,6 +8,7 @@
AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_KERNEL
+ SPL_AC_KERNEL_CONFIG
if test "${LINUX_OBJ}" != "${LINUX}"; then
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
@@ -190,6 +191,13 @@ AC_DEFUN([SPL_AC_KERNEL], [
SPL_AC_MODULE_SYMVERS
])
+AC_DEFUN([SPL_AC_KERNEL_CONFIG], [
+ SPL_LINUX_CONFIG([PREEMPT],
+ AC_MSG_ERROR([
+ *** Kernel built with CONFIG_PREEMPT which is not supported.
+ ** You must rebuild your kernel without this option.]), [])
+])
+
dnl #
dnl # Explicitly check for gawk, we require it for the the usermode
dnl # helper. For some reason the standard awk command does not