Re: [patch] CFS scheduler, -v5 (build problem - make headers_check fails)

Ingo Molnar
2007-04-23T10:05:43Z

* Zach Carter <linux@zachcarter.com> wrote:

> FYI, make headers_check seems to fail on this:
>
> [carter@hoth linux-2.6]$ make headers_check

> make[2]: *** No rule to make target
> `/src/linux-2.6/usr/include/linux/.check.sched.h', needed by
> `__headerscheck'. Stop.
> make[1]: *** [linux] Error 2
> make: *** [headers_check] Error 2
> [carter@hoth linux-2.6]$
>
> This also fails if I have CONFIG_HEADERS_CHECK=y in my .config

ah, indeed - the patch below should fix this. It will be in -v6.

Ingo

Index: linux/include/linux/sched.h
===================================================================
--- linux.orig/include/linux/sched.h
+++ linux/include/linux/sched.h
@@ -2,7 +2,6 @@
#define _LINUX_SCHED_H

#include <linux/auxvec.h> /* For AT_VECTOR_SIZE */
-#include <linux/rbtree.h> /* For run_node */
/*
* cloning flags:
*/
@@ -37,6 +36,8 @@

#ifdef __KERNEL__

+#include <linux/rbtree.h> /* For run_node */
+
struct sched_param {
int sched_priority;
};