diff options
author | Guillaume Knispel <gknispel@proformatique.com> | 2012-01-17 17:10:57 +0100 |
---|---|---|
committer | Guillaume Knispel <gknispel@proformatique.com> | 2012-01-17 17:10:57 +0100 |
commit | ff49480735bcc87231c4047de44cfa83d73ffa37 (patch) | |
tree | 07e4cee533d4a79bfd6b4fff3700fc22ac69bb11 /tdm | |
parent | 2c6311723ab52b6f6010c7fd64e4335ced5d3aef (diff) |
port to 2.6.32 (work in progress)
Diffstat (limited to 'tdm')
-rw-r--r-- | tdm/Makefile | 2 | ||||
-rw-r--r-- | tdm/xivo_tdm.c | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/tdm/Makefile b/tdm/Makefile index 7393f89..e4c3a5a 100644 --- a/tdm/Makefile +++ b/tdm/Makefile @@ -17,6 +17,8 @@ CFLAGS_MODULE += $(INCLUDES) CFLAGS_MODULE += -DEP805XX -D__ep805xx -DTOLAPAI -D__tolapai \ -DIX_HW_COHERENT_MEMORY=1 +KBUILD_EXTRA_SYMBOLS += $(ICP_ROOT)/Acceleration/library/icp_telephony/Module.symvers \ + $(ICP_ROOT)/Acceleration/drivers/icp_tdm/tdm_setup_driver/Module.symvers obj-m := xivo_tdm.o diff --git a/tdm/xivo_tdm.c b/tdm/xivo_tdm.c index b6ea0c8..4b3afa6 100644 --- a/tdm/xivo_tdm.c +++ b/tdm/xivo_tdm.c @@ -45,7 +45,7 @@ #include <asm/msr.h> // rdtscl static ulong tstamp; static int dump_count; -module_param(dump_count, int, 0666); +module_param(dump_count, int, 0664); MODULE_PARM_DESC(dump_count, "number of traces to emit " "(can be reset at runtime via /sys)"); #define DBG_TRACE(...) \ @@ -88,7 +88,7 @@ MODULE_LICENSE("GPL"); #if defined(REF_0_0) && defined(REF_1_1) -# error don't define both REF_0_0 and REF_1_1 +# error dont define both REF_0_0 and REF_1_1 #endif #if !defined(REF_0_0) && !defined(REF_1_1) @@ -104,12 +104,13 @@ MODULE_LICENSE("GPL"); #define RX_BUF_NUM (2048) /* for Linux < 2.6.19; WARNING: DO NOT USE IN INTERFACES IN THIS CASE! - * (no ifdef so that this warning can be respected when porting - * to modern kernel) thanks to a clash between this definition of 'bool' - * and those of Linux */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) typedef unsigned char bool; enum { false = 0, true = 1 }; +#else +# warning "remember to not use bool in interfaces while Linux < 2.6.19 is supported" +#endif struct xivo_tdm_callbacks_struct { |