FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 05-09-2011, 11:18 PM
"David Lynch Jr."
 
Default Driver build issue

I am working on porting a driver from 2.4 to 2.6 and I have encountered
what appears to be an ubuntu specific anomoly.

the ctl_table.proc_handler() and proc_dostring() functions do not
include the struct file *file arguments atleast not for
2.6.35-28-generic. According to lxr as best as I can tell these have
been part of those functions back to 2.2.

I can not use a LINUX_VERSION_CODE conditional to adjust for this.
How can I code this driver so that it will compile correctly for Ubuntu
AND other linux kernels ?


Thank You.


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 05-13-2011, 09:56 AM
Jeremy Kerr
 
Default Driver build issue

Hi David,

> I am working on porting a driver from 2.4 to 2.6 and I have encountered
> what appears to be an ubuntu specific anomoly.
>
> the ctl_table.proc_handler() and proc_dostring() functions do not
> include the struct file *file arguments atleast not for
> 2.6.35-28-generic. According to lxr as best as I can tell these have
> been part of those functions back to 2.2.

This change isn't Ubuntu-specific; the filp argument was removed
upstream in 2009 (around v2.6.31 time):

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=8d65af789f3e2cf4cfbdbf71a0f 7a61ebcd41d38

Cheers,

Jeremy




--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 07:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org