Re: [RFC, CFT] include file cleanup

Oliver Xymoron (oxymoron@waste.org)
Sat, 29 Dec 2001 15:58:42 -0600 (CST)


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/