pid_namespace.c/.h: simplify defines
authorRaphael S.Carvalho <raphael.scarv@gmail.com>
Tue, 30 Apr 2013 22:28:27 +0000 (15:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:07 +0000 (17:04 -0700)
commit5cc5445164c16d32bab2912fac28356ab07aa8b4
tree63ecdef695220d172d1e487a8c94ac6d7a3bab25
parent8db049b3d666b3676ff4a976e03c14de302bf9fa
pid_namespace.c/.h: simplify defines

Move BITS_PER_PAGE from pid_namespace.c to pid_namespace.h, since we can
simplify the define PID_MAP_ENTRIES by using the BITS_PER_PAGE.

[akpm@linux-foundation.org: kernel/pid.c:54:1: warning: "BITS_PER_PAGE" redefined]
Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pid_namespace.h
kernel/pid.c
kernel/pid_namespace.c