]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Fix ipc/shm for nommu.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 1 Mar 2021 21:01:05 +0000 (16:01 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 1 Mar 2021 21:01:31 +0000 (16:01 -0500)
Define mas for nommu and mmu builds

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
ipc/shm.c

index e26da39eccb517eec2d07faafb2ce9929b568e2a..428fdd293f145ba4787bec0a12ed4cc793a8968a 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1631,8 +1631,8 @@ long ksys_shmdt(char __user *shmaddr)
        loff_t size = 0;
        struct file *file;
        struct vm_area_struct *next;
-       MA_STATE(mas, &mm->mm_mt, addr, addr);
 #endif
+       MA_STATE(mas, &mm->mm_mt, addr, addr);
 
        if (addr & ~PAGE_MASK)
                return retval;