Skip to content

Commit

Permalink
Partially sanitise linux/sched.h for userspace consumption
Browse files Browse the repository at this point in the history
For now, just make sure all inclusion of private header files is done
within #ifdef __KERNEL__. There'll be more to clean up later.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Apr 25, 2006
1 parent 98ca79d commit a3b6714
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions include/linux/sched.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef _LINUX_SCHED_H
#define _LINUX_SCHED_H

#ifdef __KERNEL__
#include <asm/param.h> /* for HZ */

#include <linux/config.h>
#include <linux/capability.h>
#include <linux/threads.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -37,6 +37,15 @@
#include <linux/rcupdate.h>
#include <linux/futex.h>

#include <linux/time.h>
#include <linux/param.h>
#include <linux/resource.h>
#include <linux/timer.h>
#include <linux/hrtimer.h>

#include <asm/processor.h>
#endif

#include <linux/auxvec.h> /* For AT_VECTOR_SIZE */

struct exec_domain;
Expand Down Expand Up @@ -103,13 +112,6 @@ extern unsigned long nr_uninterruptible(void);
extern unsigned long nr_active(void);
extern unsigned long nr_iowait(void);

#include <linux/time.h>
#include <linux/param.h>
#include <linux/resource.h>
#include <linux/timer.h>
#include <linux/hrtimer.h>

#include <asm/processor.h>

/*
* Task state bitmask. NOTE! These bits are also
Expand Down

0 comments on commit a3b6714

Please sign in to comment.