Re: [PATCH] remove 16 unnecessary includes of sched.h

From: Sebastian Droege (sebastian.droege@gmx.de)
Date: Mon Jul 01 2002 - 09:12:27 EST


On Mon, 1 Jul 2002 00:42:58 +0200 (CEST)
Tim Schmielau <tim@physik3.uni-rostock.de> wrote:

> - remove 16 unneccessary #includes of <linux/sched.h>.
> - reinsert some #includes of header files included by <linux/sched.h>
> to fix indirect dependencies.
>
> Just a small start, many more to come. This time I did a more thorough
> analysis of dependencies by extensive use of ctags and grep. Still the
> first compile revealed more obscure dependencies.
>
> The patch depends on the previously posted one to break task_struct out of
> sched.h to actually compile.
>
> Tim
Hi,
The patch at the bottom was required to compile kernel/panic.c with my .config (NULL was not defined)

Bye

--- linux-2.5.24/include/linux/sysrq.h.old Mon Jul 1 15:50:33 2002
+++ linux-2.5.24/include/linux/sysrq.h Mon Jul 1 15:45:16 2002
@@ -12,6 +12,7 @@
  */
 
 #include <linux/config.h>
+#include <linux/stddef.h>
 
 struct pt_regs;
 struct kbd_struct;



-
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/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:07 EST