Nicolas Ouedraogo wrote:
> Hi all!
> 
>> After the patch, now the compilation stops here (see below), any clue?
>> thanks
>>
>> CC [M]  /usr/src/visdn-head/modules/vgsm/card.o
>> /usr/src/visdn-head/modules/vgsm/card.c: In function
>> 'vgsm_handle_serial_int':
>> /usr/src/visdn-head/modules/vgsm/card.c:475: error: 'struct tty_struct'
>> has no member named 'flip'
>> make[5]: *** [/usr/src/visdn-head/modules/vgsm/card.o] Error 1
>> make[4]: *** [/usr/src/visdn-head/modules/vgsm] Error 2
>> make[3]: *** [_module_/usr/src/visdn-head/modules] Error 2
>> make[3]: Leaving directory `/usr/src/linux-headers-2.6.17-1-k7'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/usr/src/visdn-head/modules'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/src/visdn-head'
>> make: *** [all] Error 2
>> meucci:/usr/src/visdn-head#
> 
> 
> 
> here's a patch for both problems (notifier_* in modules/core/core_main.c and 
> flip in vgms/card.c) :
> 
> 
> 
> ------------------- [ cut ] -------------------
> --- visdn-head.orig/modules/core/core_main.c    2006-07-21 08:00:06.000000000 
> +0200
> +++ visdn-head/modules/core/core_main.c 2006-07-21 23:03:13.000000000 +0200
> @@ -17,6 +17,7 @@
>  #include <linux/cdev.h>
>  #include <linux/kdev_t.h>
>  #include <linux/device.h>
> +#include <linux/notifier.h>
> 
>  #include <kernel_config.h>
> 
> @@ -74,22 +75,26 @@
>  EXPORT_SYMBOL(visdn_system_device);
> 
>  static struct notifier_block *visdn_notify_chain;
> +static struct raw_notifier_head visdn_notify_chain_head;
> 
>  int visdn_register_notifier(struct notifier_block *nb)
>  {
> -       return notifier_chain_register(&visdn_notify_chain, nb);
> +       visdn_notify_chain_head.head = visdn_notify_chain;
> +       return raw_notifier_chain_register(&visdn_notify_chain_head, nb);
>  }
>  EXPORT_SYMBOL(visdn_register_notifier);
> 
>  int visdn_unregister_notifier(struct notifier_block *nb)
>  {
> -       return notifier_chain_unregister(&visdn_notify_chain, nb);
> +       visdn_notify_chain_head.head = visdn_notify_chain;
> +       return raw_notifier_chain_unregister(&visdn_notify_chain_head, nb);
>  }
>  EXPORT_SYMBOL(visdn_unregister_notifier);
> 
>  int visdn_call_notifiers(unsigned long val, void *v)
>  {
> -       return notifier_call_chain(&visdn_notify_chain, val, v);
> +       visdn_notify_chain_head.head = visdn_notify_chain;
> +       return raw_notifier_call_chain(&visdn_notify_chain_head, val, v);
>  }
>  EXPORT_SYMBOL(visdn_call_notifiers);
> 
> --- visdn-head.orig/modules/vgsm/card.c 2006-07-21 08:00:28.000000000 +0200
> +++ visdn-head/modules/vgsm/card.c      2006-07-21 23:03:39.000000000 +0200
> @@ -472,7 +472,7 @@
>         if (test_bit(VGSM_MODULE_STATUS_RUNNING,
>                                 &module->status)) {
>                 for(i=0; i<msg->numbytes; i++) {
> -                       if (module->tty->flip.count >=
> +                       if (module->tty->max_flip_cnt >=
>                                         TTY_FLIPBUF_SIZE)
>                                 tty_flip_buffer_push(
>                                         module->tty);
> ------------------- [ cut ] -------------------
> 
> 

Thanks, but now I got this error, sigh:
  LD [M]  /usr/src/visdn-head/modules/vgsm/visdn-vgsm.o
  Building modules, stage 2.
  MODPOST
*** Warning: "/usr/src/visdn-head/modules/kfifo/kfifo.o" failed to load:
Not a kernel module, lacks modinfo section
make[4]: *** [__modpost] Error 1
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.17-1-k7'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/visdn-head/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/visdn-head'
make: *** [all] Error 2
meucci:/usr/src/visdn-head#

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

Reply via email to