lkml.org 
[lkml]   [2001]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC, CFT] include file cleanup
On Sat, 29 Dec 2001, Manfred Spraul wrote:

> slab.h is currently one of the worst include files:
> it includes <mm.h>, that one <sched.h>, that one <fs.h>,
> just because it needs the GFP_ defines.
>
> I've split the gfp functions out of mm.h into a seperate <gfp.h>
> header file.
>
> Is that a step in the right direction?

Maybe. You might want to pull the rest of the get_free_page functions
out with it.

> Another similar cleanup would be splitting the 'struct task_struct'
> definition out of sched.h into a seperate <linux/current.h>:
> some source files only include sched.h because they dereference
> one field within current.

Tried it yet? I think you'll find this very difficult because of all the
things task_struct references.

--
"Love the dolphins," she advised him. "Write by W.A.S.T.E.."

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:14    [W:0.042 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site