2010/1/6 Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>: > Antonio Olivares wrote: >> Paul, >> >> Thank you very much for your work. I hope I knew as much as you in >> order to fix the slmodem-2.9.11-20090222.tar.gz files which works in >> kernels <= 2.6.30.X , but not in kernels > 2.6.31.X :( > > It sounds like you have it narrowed down to a reasonably small > window -- have you ever used "git bisect" before? It can help > you close in on the exact change where things go from working > to not working. I find it easier to try compiling and get an error, then search in the changelog for what caused that error. In this case, in 2.6.31 sched.h was removed from some other header which is used by slmodem, so it's a simple fix to include it directly. Patch attached. -- Joshua Crawford ... http://geocities.com/mortarn http://www.rewardscentral.com.au/Join/Default.aspx?refer=mortarn Be rewarded! Join RewardsCentral today!
diff -upPr slmodem-2.9.11-20090222-orig/drivers/amrmo_init.c slmodem-2.9.11-20090222/drivers/amrmo_init.c --- slmodem-2.9.11-20090222-orig/drivers/amrmo_init.c 2008-04-01 13:08:42.000000000 +1100 +++ slmodem-2.9.11-20090222/drivers/amrmo_init.c 2010-01-07 02:14:23.000000000 +1100 @@ -62,6 +62,9 @@ #include <linux/poll.h> #include <linux/fs.h> #include <asm/uaccess.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) +#include <linux/sched.h> +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define OLD_KERNEL 1