Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

shm: fix unused warnings on nommu

The massive nommu update (8feae131) resulted in these warnings:
ipc/shm.c: In function `sys_shmdt':
ipc/shm.c:974: warning: unused variable `size'
ipc/shm.c:972: warning: unused variable `next'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mike Frysinger and committed by
Linus Torvalds
586c7e6a 13df635f

+5 -2
+5 -2
ipc/shm.c
··· 969 969 SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) 970 970 { 971 971 struct mm_struct *mm = current->mm; 972 - struct vm_area_struct *vma, *next; 972 + struct vm_area_struct *vma; 973 973 unsigned long addr = (unsigned long)shmaddr; 974 - loff_t size = 0; 975 974 int retval = -EINVAL; 975 + #ifdef CONFIG_MMU 976 + loff_t size = 0; 977 + struct vm_area_struct *next; 978 + #endif 976 979 977 980 if (addr & ~PAGE_MASK) 978 981 return retval;