From: Ingo Molnar <[EMAIL PROTECTED]>

add pid_max prototype - now used by sysctl and kgdb as well.

Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
Signed-off-by: Jason Wessel <[EMAIL PROTECTED]>
---
 include/linux/pid.h |    2 ++
 kernel/kgdb.c       |    2 +-
 kernel/sysctl.c     |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/pid.h b/include/linux/pid.h
index f84d532..e066d3d 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -86,6 +86,8 @@ extern struct task_struct *FASTCALL(get_pid_task(struct pid 
*pid,
 
 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
 
+extern int pid_max;
+
 /*
  * attach_pid() and detach_pid() must be called with the tasklist_lock
  * write-held.
diff --git a/kernel/kgdb.c b/kernel/kgdb.c
index 3f06d09..2986bd2 100644
--- a/kernel/kgdb.c
+++ b/kernel/kgdb.c
@@ -45,6 +45,7 @@
 #include <linux/sysrq.h>
 #include <linux/init.h>
 #include <linux/kgdb.h>
+#include <linux/pid.h>
 #include <linux/smp.h>
 #include <linux/mm.h>
 
@@ -101,7 +102,6 @@ struct kgdb_bkpt            
kgdb_break[KGDB_MAX_BREAKPOINTS] = {
  * CPU having a lock:
  */
 
-extern int pid_max;
 /* How many times to count all of the waiting CPUs */
 #define ROUNDUP_WAIT           640000  /* Arbitrary, increase if needed. */
 #define BUF_THREAD_ID_SIZE     16
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index d41ef6b..97a152c 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -32,6 +32,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/kobject.h>
+#include <linux/pid.h>
 #include <linux/net.h>
 #include <linux/sysrq.h>
 #include <linux/highuid.h>
@@ -71,7 +72,6 @@ extern int max_threads;
 extern int core_uses_pid;
 extern int suid_dumpable;
 extern char core_pattern[];
-extern int pid_max;
 extern int min_free_kbytes;
 extern int pid_max_min, pid_max_max;
 extern int sysctl_drop_caches;
-- 
1.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to