Daniele Orlandi wrote:
On Sunday 23 April 2006 22:42, Aleš Golob wrote:
  
: error: unknown field ‘owner’ specified in initializer
/usr/src/tmp/isdn--devel--0.1--patch-624/modules/hfc-usb/hfc-usb_main.c:326
: warning: initialization from incompatible pointer type
make[7]: ***
[/usr/src/tmp/isdn--devel--0.1--patch-624/modules/hfc-usb/hfc-usb_main.o]
Error 1
    

Uhm... this is a change that has been introduced in kernel 2.6.16, are you 
sure you are not using such kernel?

Please don't tell me that SuSE has introduced incompatible changes in the 
2.6.12 kernel!

  
Sorry I've made a typo with the kernel version I am in fact using the 2.6.16 version, the latest patch version (653)
has remedied that problem.
lapd: Unknown symbol dev_ioctl

Is this a dist kernel(non vanilla) related problem or is there something
I'm missing.
    

This is most probably a dist-related problem and since SuSE 10.1 has not been 
released yet I will wait before implementing portability fixes.

Bye,

  

This problem was introduced with kernel 2.6.16(or .15, not sure) I've used a fix proposed by Rico Gloeckner
in this mail: https://mailman.uli.it/pipermail/visdn-hackers/2006-April/000945.html
I've attached a patch that works for me and should work with older kernels also but hasn't been tested with
anything else than 2.6.16.

--- isdn--devel--0.1--patch-653/modules/lapd/af_lapd.c  2006-05-11 
17:28:00.000000000 +0200
+++ isdn--devel--0.1--patch-653-kernel-2.6.16/modules/lapd/af_lapd.c    
2006-05-11 23:11:17.000000000 +0200
@@ -421,7 +421,15 @@
        case SIOCGIFNAME:
        case LAPD_DEV_IOC_ACTIVATE:
        case LAPD_DEV_IOC_DEACTIVATE:
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
                rc = dev_ioctl(cmd, argp);
+#else
+               if (sk->sk_prot->ioctl) {
+                   rc = sk->sk_prot->ioctl(sk, cmd, arg);
+               } else {
+                   rc = -ENOIOCTLCMD;
+               }
+#endif
        break;
        }
 

_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers

Reply via email to