From: akpm@linux-foundation.org Subject: [merged] ipccompat-remove-sc_semopm-macro.patch removed from -mm tree Date: Tue, 08 Apr 2014 14:38:09 -0700 Message-ID: <53446c41.UO4WMLuNyjXYzRMQ%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:57156 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757898AbaDHViJ (ORCPT ); Tue, 8 Apr 2014 17:38:09 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, manfred@colorfullife.com, davidlohr@hp.com Subject: [merged] ipccompat-remove-sc_semopm-macro.patch removed from -mm tree To: davidlohr@hp.com,manfred@colorfullife.com,mm-commits@vger.kernel.org From: akpm@linux-foundation.org Date: Tue, 08 Apr 2014 14:38:09 -0700 The patch titled Subject: ipc/compat.c: remove sc_semopm macro has been removed from the -mm tree. Its filename was ipccompat-remove-sc_semopm-macro.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Davidlohr Bueso Subject: ipc/compat.c: remove sc_semopm macro This macro appears to have been introduced back in the 2.5 era for semtimedop32 backward compatibility on ia32: https://lkml.org/lkml/2003/4/28/78 Nowadays, this syscall in compat just defaults back to the code found in sem.c, so it is no longer used and can thus be removed: long compat_sys_semtimedop(int semid, struct sembuf __user *tsems, unsigned nsops, const struct compat_timespec __user *timeout) { struct timespec __user *ts64; if (compat_convert_timespec(&ts64, timeout)) return -EFAULT; return sys_semtimedop(semid, tsems, nsops, ts64); } Furthermore, there are no users in compat.c. After this change, kernel builds just fine with both CONFIG_SYSVIPC_COMPAT and CONFIG_SYSVIPC. Signed-off-by: Davidlohr Bueso Cc: Manfred Spraul Signed-off-by: Andrew Morton --- ipc/compat.c | 3 --- 1 file changed, 3 deletions(-) diff -puN ipc/compat.c~ipccompat-remove-sc_semopm-macro ipc/compat.c --- a/ipc/compat.c~ipccompat-remove-sc_semopm-macro +++ a/ipc/compat.c @@ -113,9 +113,6 @@ struct compat_shm_info { compat_ulong_t swap_attempts, swap_successes; }; -extern int sem_ctls[]; -#define sc_semopm (sem_ctls[2])