]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipc: constify ipc_ops
authorMathias Krause <minipli@googlemail.com>
Sat, 17 May 2014 13:19:06 +0000 (23:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:19:06 +0000 (23:19 +1000)
commite948ab3908498e80acb0959d27a5befd00da52c2
tree655b210db711ec3be828d42ddb84acac9ba909b3
parentbaaf59d52a476463b613c675c9a2636d96a7f333
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