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:

> It wasn't that difficult: only these includes are needed to pull in all
> substructures ;-)
>
> <<<<<<<
> #include <linux/config.h>
> #include <linux/types.h>
> #include <linux/spinlock.h>
> #include <linux/list.h>
> #include <linux/wait.h>
> #include <linux/timer.h>
> #include <linux/times.h>
> #include <linux/capability.h>
> #include <linux/resource.h>
> #include <linux/signal.h>
> #include <asm/param.h>
> #include <asm/signal.h>
> #include <asm/processor.h>
> #include <asm/resource.h>
> <<<<<<<<<

Indeed. Recently I wanted to stash current->pid inside a spinlock for
debugging purposes and discovered it was a nightmare because of all the
forward references that'd be needed.

--
"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.035 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site