]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix undefined reference to user_shm_unlock
authorHugh Dickins <hugh.dickins@tiscali.co.uk>
Sat, 12 Sep 2009 11:21:27 +0000 (12:21 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Sep 2009 15:43:54 +0000 (08:43 -0700)
commitcb0365c9e045c09a92363d0e52b7cdaf18ce7f54
tree3430c46b2606dad7b2502e07834cb10be2c463c6
parent70b6cf945725c8b07ee18611165bb7dce4f41d74
fix undefined reference to user_shm_unlock

commit 2195d2818c37bdf263865f1e9effccdd9fc5f9d4 upstream.

My 353d5c30c666580347515da609dd74a2b8e9b828 "mm: fix hugetlb bug due to
user_shm_unlock call" broke the CONFIG_SYSVIPC !CONFIG_MMU build of both
2.6.31 and 2.6.30.6: "undefined reference to `user_shm_unlock'".

gcc didn't understand my comment! so couldn't figure out to optimize
away user_shm_unlock() from the error path in the hugetlb-less case, as
it does elsewhere.  Help it to do so, in a language it understands.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
ipc/shm.c