]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc: constify ipc_ops
authorMathias Krause <minipli@googlemail.com>
Thu, 22 May 2014 00:44:15 +0000 (10:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:44:15 +0000 (10:44 +1000)
commit8dbff1567606b7432c88835215b4fa1ec18c8f2e
treeebff60c50cecf5c2d858fb3e059494c6e9a57bb7
parent205297670362c8f37502070c49a9666cca91bd1a
ipc: constify ipc_ops

There is no need to recreate the very same ipc_ops structure on every
kernel entry for msgget/semget/shmget.  Just declare it static and be done
with it.  While at it, constify it as we don't modify the structure at
runtime.

Found in the PaX patch, written by the PaX Team.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Davidlohr Bueso <davidlohr@hp.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/msg.c
ipc/sem.c
ipc/shm.c
ipc/util.c
ipc/util.h