From patchwork Mon Mar 22 18:07:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Torvalds X-Patchwork-Id: 48300 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id A9913B7E23 for ; Tue, 23 Mar 2010 05:12:50 +1100 (EST) Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.linux-foundation.org", Issuer "CA Cert Signing Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 4A44BB7CE7 for ; Tue, 23 Mar 2010 05:12:40 +1100 (EST) Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id o2MIB4CO020005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Mar 2010 11:11:05 -0700 Received: from localhost (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id o2MIB2BW018947; Mon, 22 Mar 2010 11:11:02 -0700 Date: Mon, 22 Mar 2010 11:07:14 -0700 (PDT) From: Linus Torvalds To: Andreas Schwab Subject: Re: ppc64 sys_ipc breakage in 2.6.34-rc2 In-Reply-To: Message-ID: References: <20100322064759.GE24064@kryten> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 X-Spam-Status: No, hits=-3.448 required=5 tests=AWL,BAYES_00 X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 Cc: Heiko Carstens , "H. Peter Anvin" , Christoph Hellwig , Jesper Nilsson , Hirokazu Takata , James Morris , Russell King , Ingo Molnar , Arnd Bergmann , Jeff Dike , Anton Blanchard , Thomas Gleixner , "Luck, Tony" , Ralf Baechle , Kyle McMartin , Paul Mundt , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Al Viro X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org On Mon, 22 Mar 2010, Andreas Schwab wrote: > > ipc/syscall.c:17: error: conflicting types for ‘sys_ipc’ > include/linux/syscalls.h:691: note: previous declaration of ‘sys_ipc’ was here Hmm. Right you are. Why don't I see this? (I already applied the patch) Ahh. Because this only triggers with __ARCH_WANT_SYS_IPC. But why didn't Anton see it then? Anyway, I assume the following fixes it. Can you verify? Linus --- include/linux/syscalls.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index f994ae5..057929b 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -688,7 +688,7 @@ asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); asmlinkage long sys_shmget(key_t key, size_t size, int flag); asmlinkage long sys_shmdt(char __user *shmaddr); asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf); -asmlinkage long sys_ipc(unsigned int call, int first, int second, +asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second, unsigned long third, void __user *ptr, long fifth); asmlinkage long sys_mq_open(const char __user *name, int oflag, mode_t mode, struct mq_attr __user *attr);