The patch titled remove unused o_flags from do_shmat has been added to the -mm tree. Its filename is remove-unused-o_flags-from-do_shmat.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: remove unused o_flags from do_shmat From: Hugh Dickins <hugh@xxxxxxxxxxx> Remove the unused variable o_flags from do_shmat. Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- ipc/shm.c | 3 --- 1 files changed, 3 deletions(-) diff -puN ipc/shm.c~remove-unused-o_flags-from-do_shmat ipc/shm.c --- 25/ipc/shm.c~remove-unused-o_flags-from-do_shmat Fri May 26 14:27:45 2006 +++ 25-akpm/ipc/shm.c Fri May 26 14:27:45 2006 @@ -698,7 +698,6 @@ long do_shmat(int shmid, char __user *sh int err; unsigned long flags; unsigned long prot; - unsigned long o_flags; int acc_mode; void *user_addr; @@ -725,11 +724,9 @@ long do_shmat(int shmid, char __user *sh if (shmflg & SHM_RDONLY) { prot = PROT_READ; - o_flags = O_RDONLY; acc_mode = S_IRUGO; } else { prot = PROT_READ | PROT_WRITE; - o_flags = O_RDWR; acc_mode = S_IRUGO | S_IWUGO; } if (shmflg & SHM_EXEC) { _ Patches currently in -mm which might be from hugh@xxxxxxxxxxx are mm-vm_bug_on.patch page-migration-make-do_swap_page-redo-the-fault.patch migration-remove-unnecessary-pageswapcache-checks.patch swapless-page-migration-fix-swapopsh97-bug.patch swapless-pm-add-r-w-migration-entries-fix-2.patch add-page_mkwrite-vm_operations-method.patch mm-remove-vm_locked-before-remap_pfn_range-and-drop-vm_shm.patch swapoff-atomic_inc_not_zero-on-mm_users.patch remove-unused-o_flags-from-do_shmat.patch page-migration-simplify-migrate_pages.patch page-migration-simplify-migrate_pages-tweaks.patch page-migration-handle-freeing-of-pages-in-migrate_pages.patch page-migration-use-allocator-function-for-migrate_pages.patch page-migration-support-moving-of-individual-pages.patch page-migration-detailed-status-for-moving-of-individual-pages.patch page-migration-support-moving-of-individual-pages-fixes.patch page-migration-support-a-vma-migration-function.patch allow-migration-of-mlocked-pages.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html