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

Sebastian Droege (sebastian.droege@gmx.de)
Mon, 1 Jul 2002 16:12:27 +0200


--=.DgFeaYC50MkLMv
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

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;

--=.DgFeaYC50MkLMv
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9IGNOe9FFpVVDScsRAtJFAKDHmHXM6KG4EJ+X23UfL++F4u24DQCg6bc3
UeOGSGJ+NZv2auEtsELqiLU=
=9zXM
-----END PGP SIGNATURE-----

--=.DgFeaYC50MkLMv--

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