Re: Fwd: Intel536ep and kernel 2.6.26

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

 



Hi Jeff,

Sorry for the C typo in softserial.c.

In coredrv/coredrv.c
Can you test with:

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+struct proc_dir_entry proc_root;
+struct proc_dir_entry *proc_root_driver = &proc_root;
+#endif

int create_hamproc(void)
{
   hamproc = create_proc_entry("ham", S_IFREG | S_IRUGO,
proc_root_driver);
   if(hamproc == NULL) return -ENOMEM;
   hamproc->read_proc = hamproc_read;
   hamproc->write_proc = hamproc_write;
   return 0;
}
void detach_hamproc(void)
{
   remove_proc_entry("ham", proc_root_driver);
}
???
This specific part seems to need to be reworked for kernel 2.6.26 and
even 2.6.25.
Kind regards,
-  
http://vouters.dyndns.org:8080/
Philippe Vouters (Fontainebleau/France)


Le mardi 12 août 2008 à 07:22 -0500, Jeff Pohlmeyer a écrit :
> On Aug 11, 2008, Philippe Vouters wrote:
> 
> > Based on Jeff's modifications, I built a new 536EP
> > driver code for kernel 2.6.26 whose source dated
> > 2008/08/12 you can download from
> > http://vouters.dyndns.org:8080/Intel/
> 
> > It builds just as fine under 2.6.25.11-97.fc9.i686.
> 
> Hello, Philippe -
> 
> Thanks for the update...
> 
> I am getting a compiler error here running Arch Linux
> kernel 2.6.26.2, in coredrv.c lines 754 and 746:
> Error: 'proc_root_driver' undeclared.
> 
> >From what I can tell here:
>   http://tinyurl.com/55dajz
> 
> It should be safe to pass NULL to create_proc_entry()
> and remove_proc_entry(), at least for 2.6.26?
> 
> There was also an error on line 112 of softserial.c that
> looks like a typo:
>   sizeof(tty_operations ops)
> should be:
>   sizeof(struct tty_operations)
> 
> The attached patch fixes these problems...
> 
> Regards,
>  - Jeff



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

  Powered by Linux