agrsm-20090121 compile fails on 2.6.29.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



G'day,

Previously using Slackware 12.2 (2.6.28.31), I've just upgraded to
Slackware 13.0 (2.6.29.6), and agrsm-20090121 failed to compile
because of a minor change in the way a certain function is called
(__request_region()).

Below is a patch which enables compilation on 2.6.29.x (and retains
previous compatibility).

This is a success report for 11c1:048c on Slackware 13.0 (kernel
2.6.29.6), using agrsm-20090121 and the patch.

--- agrsoftmodem.c.orig 2009-09-02 22:56:53.000000000 +1000
+++ agrsoftmodem.c      2009-09-02 23:19:21.000000000 +1000
@@ -269,7 +269,11 @@
 fnatr void *x_request_region(unsigned long start, unsigned long n,
const char *name)
 {
 //  return(request_region(start, n, name));
+#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 29)
  return(__request_region(&ioport_resource, (start), (n), (name)));
+#else
+  return(__request_region(&ioport_resource, (start), (n), (name), 0));
+#endif
 }

 #ifndef LT_KER_26


-- 
Joshua Crawford ... http://geocities.com/mortarn

http://www.rewardscentral.com.au/Join/Default.aspx?refer=mortarn
Be rewarded! Join RewardsCentral today!


[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux