]> git.baikalelectronics.ru Git - kernel.git/commit
ipc: constify ipc_ops
authorMathias Krause <minipli@googlemail.com>
Fri, 6 Jun 2014 21:37:36 +0000 (14:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:14 +0000 (16:08 -0700)
commita1a2987b6cb297ef43e54b2bded7ea9b69e9d93b
tree4fabad7ced4ce6145d44e8e25bd6ee111712e9f8
parent7432a5a3e805196b3ab01c6c31dc76b292dbefea
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/msg.c
ipc/sem.c
ipc/shm.c
ipc/util.c
ipc/util.h