diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:27:01 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:27:01 +0000 |
commit | 3155b01c0324eadfbb99b910134dc4fae1f77209 (patch) | |
tree | fef588002619702898c50b97dc45a88da184796e /drivers | |
parent | 22a72cf27cb7210661ba810452a586eab9323f5c (diff) |
dahdi: Add error if CONFIG_BKL is not defined
Might help when someone wonders why they are now getting errors about
"lock_kernel" being undefined.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9592 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index f0ee3c4..e6f2136 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -83,6 +83,12 @@ #error "You cannot define both EMPULSE and EMFLASH" #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) +#ifndef CONFIG_BKL +#error You must have CONFIG_BKL lock defined to build DAHDI +#endif +#endif + /* Get helper arithmetic */ #include "arith.h" #if defined(CONFIG_DAHDI_MMX) || defined(ECHO_CAN_FP) |