Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbcD1Woz (ORCPT ); Thu, 28 Apr 2016 18:44:55 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:51341 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbcD1Wow (ORCPT ); Thu, 28 Apr 2016 18:44:52 -0400 From: Arnd Bergmann To: Yury Norov Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, linux-doc@vger.kernel.org, heiko.carstens@de.ibm.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , bamvor.zhangjian@huawei.com, Andrew Pinski , schwidefsky@de.ibm.com, Nathan_Lynch@mentor.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Date: Fri, 29 Apr 2016 00:43:41 +0200 Message-ID: <4271094.ei7kj5zJxn@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160428222137.GB18227@yury-N73SV> References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <2760348.qmm1L3yQch@wuerfel> <20160428222137.GB18227@yury-N73SV> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:R/8gXGShPZIgmfmc/W/f+DFpwA2+raz2vxzpB9G3dF+FfIv8ASv DCzK2cwa2xQLI0dWNPe9Izxe29ezBjMWsxGIG8m3MMQbCunmZBvbTVKwbe5+cLmowvB1Klk 8+x6Cuu0vSmNcLpWbTolaY48BgJjDxEme7EqvGZRmqWTjSEDgAtKK/dFc0JnsihngXXxlOL cClWJ+q/xJ6Q9N9Vs/yLw== X-UI-Out-Filterresults: notjunk:1;V01:K0:PaRDMcptYjg=:DZ6JTuJggPsDisiYMI9003 tLdtddV+lCwSwFYUkZY+HXQwhUMt4liJC+fvF6Bt4TWXWUcBPuqjvMQS7cUCMZYo0TJcraLkY JppS0GlNumjW6CJ0o3Ibszc9xeT6JCw1mkrSJUPX+ZNK4eDhZxBC60Rgp2bdr933LMOfVRLRa UXQlXdRlcSE8IDLYvPVsFTgNNeA3c1m6iSBzkSC8JqNBci3UGjNhIR4KvOwR/bFdVnfEuLBkB fxlkmZN8rWt5kWncjP+nMULjFycCIpXI8UOWuxQtVpj/U1CysULPh3oGqh+bitw36o1G0cBsh pErUETAUj9ljsDjUoh58nVbNr9dXjsyN11V+O9VFcNx6+MXN6WsPlN/kWDd6Dk2Jf+xZEBvfi 2i8BJj73ZtlxI98OV+7KWaBdBdfgcGbG3hUaO+LHk7gNgqBGB+GOiMhXku7+zXcIslkSR0C3y 9CiI1EXTCXch1Di+85G4h6Nc37TrdAJK6pNdEOA1kE6eXmwJXc3BL2hzsij1KvJXAkTgp2+cN JHkgG6qp9fJOp5excS2WfyZ2f88vMMvf5wob2T6MLBtV5VhoDI/7jnTuMF48zKPbLpbIdiu1B OVbJH7uGn/lsQ4K8/vyxJPE2E60dg1I2C7XLeAmjpMbPfcnjL1SHgX69Ph+TNM2jvPGEC/l6s nAs86et2Ghg8+z9ZXYDkhRxTA5r3QvA/OEfFivluFFCSSj+81K/vLGKv08926Ge16n8rLH9+R xHssHc3jzkC7OcAX Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 42 On Friday 29 April 2016 01:21:37 Yury Norov wrote: > index 1458ad7..410d817 100644 > --- a/arch/arm64/kernel/sys_ilp32.c > +++ b/arch/arm64/kernel/sys_ilp32.c > @@ -17,6 +17,8 @@ > * along with this program. If not, see > * . > */ > > +#define __SYSCALL_COMPAT > + > #include > #include > #include > @@ -48,13 +50,12 @@ asmlinkage long > ilp32_sys_rt_sigreturn_wrapper(void); > > #include > > -#undef __SYSCALL > -#undef __SC_COMP > -#undef __SC_WRAP > -#undef __SC_3264 > -#undef __SC_COMP_3264 > > -#define __SYSCALL_COMPAT > #define __SYSCALL(nr, sym) [nr] = sym, > #define __SC_WRAP(nr, sym) [nr] = compat_##sym, > > This patch makes gcc warn about redefinition. > > arch/arm64/kernel/sys_ilp32.c:59:0: warning: "__SYSCALL" redefined > #define __SYSCALL(nr, sym) [nr] = sym, > ^ > In file included from include/asm-generic/unistd.h:1:0, > Ok, I think I see it now. Can you #undef the two symbols at the end of arch/arm64/include/uapi/asm/unistd.h or possibly include/uapi/asm-generic/unistd.h? Arnd