]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/mmap.c
powerpc: remove duplicate ioctl definitions
[karo-tx-linux.git] / mm / mmap.c
index 5ecc2cf3e1d7fe27ef49787cb0909d1c3f96eebf..320dda1778c3b3489aea3a44e12251f939e75e3c 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1840,7 +1840,7 @@ asmlinkage long sys_munmap(unsigned long addr, size_t len)
 
 static inline void verify_mm_writelocked(struct mm_struct *mm)
 {
-#ifdef CONFIG_DEBUG_KERNEL
+#ifdef CONFIG_DEBUG_VM
        if (unlikely(down_read_trylock(&mm->mmap_sem))) {
                WARN_ON(1);
                up_read(&mm->mmap_sem);