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.
This commit is contained in:
Brian Behlendorf
2011-03-07 10:58:07 -08:00
parent 47995fa691
commit 7731d46b69
2 changed files with 154 additions and 0 deletions
+8
View File
@@ -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