summaryrefslogtreecommitdiff
path: root/include/linux/pid.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-24 08:43:36 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-04-27 02:06:53 -0400
commit2374c09b1c8a883bb9b4b2fc3756703eeb618f4a (patch)
tree9ff6358829e663960cb7177d941c3a8f3a4309b4 /include/linux/pid.h
parent26363af5643490a817272e1cc6f1d3f1d550a699 (diff)
sysctl: remove all extern declaration from sysctl.c
Extern declarations in .c files are a bad style and can lead to mismatches. Use existing definitions in headers where they exist, and otherwise move the external declarations to suitable header files. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/pid.h')
-rw-r--r--include/linux/pid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h
index cc896f0fc4e3..93543cbc0e6b 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -108,6 +108,9 @@ extern void transfer_pid(struct task_struct *old, struct task_struct *new,
struct pid_namespace;
extern struct pid_namespace init_pid_ns;
+extern int pid_max;
+extern int pid_max_min, pid_max_max;
+
/*
* look up a PID in the hash table. Must be called with the tasklist_lock
* or rcu_read_lock() held.