[PATCH] Shut up warnings in ipc/shm.c
commit03b00ebcc804180829d513df9e92e5fe8f72aacf
authorRussell King <rmk@arm.linux.org.uk>
Fri, 6 Jan 2006 08:10:52 +0000 (6 00:10 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:24 +0000 (6 08:33 -0800)
tree6ffa5de42322cca4b1823f7257647e70a4a166bb
parenta94b3ab7eab4edcc9b2cb474b188f774c331adf7
[PATCH] Shut up warnings in ipc/shm.c

Fix two warnings in ipc/shm.c

ipc/shm.c:122: warning: statement with no effect
ipc/shm.c:560: warning: statement with no effect

by converting the macros to empty inline functions.  For safety, let's do
all three.  This also has the advantage that typechecking gets performed
even without CONFIG_SHMEM enabled.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h