From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186AbbB1BhJ (ORCPT ); Fri, 27 Feb 2015 20:37:09 -0500 Received: from ozlabs.org ([103.22.144.67]:45697 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbbB1BhH (ORCPT ); Fri, 27 Feb 2015 20:37:07 -0500 Date: Sat, 28 Feb 2015 12:36:56 +1100 From: Stephen Rothwell To: Kees Cook Cc: akpm@linux-foundation.org, linux-mips@linux-mips.org, linux-sh@vger.kernel.org, Heiko Carstens , Paul Mackerras , sparclinux@vger.kernel.org, linux-s390@vger.kernel.org, Russell King , Helge Deller , x86@kernel.org, "James E.J. Bottomley" , AKASHI Takahiro , James Hogan , linux-arm-kernel@lists.infradead.org, Michal Simek , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, Ralf Baechle , Martin Schwidefsky , linux390@de.ibm.com, linuxppc-dev@lists.ozlabs.org, "David S. Miller" Subject: Re: [PATCH] seccomp: switch to using asm-generic for seccomp.h Message-ID: <20150228123656.538301ef@canb.auug.org.au> In-Reply-To: <20150228005228.GA23638@www.outflux.net> References: <20150228005228.GA23638@www.outflux.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; i586-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/OELWuzD5PC91fjVQFZ1t_+c"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/OELWuzD5PC91fjVQFZ1t_+c Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Kees, On Fri, 27 Feb 2015 16:52:29 -0800 Kees Cook wrote: > > diff --git a/arch/arm/include/asm/seccomp.h b/arch/arm/include/asm/seccom= p.h > index 52b156b341f5..66ca6a30bf5c 100644 > --- a/arch/arm/include/asm/seccomp.h > +++ b/arch/arm/include/asm/seccomp.h > @@ -1,11 +1 @@ > -#ifndef _ASM_ARM_SECCOMP_H > -#define _ASM_ARM_SECCOMP_H > - > -#include > - > -#define __NR_seccomp_read __NR_read > -#define __NR_seccomp_write __NR_write > -#define __NR_seccomp_exit __NR_exit > -#define __NR_seccomp_sigreturn __NR_rt_sigreturn > - > -#endif /* _ASM_ARM_SECCOMP_H */ > +#include I think that these cases (where you replace the file by a stub that just include ) can be replaced by removing the file completely and adding generic-y =3D seccomp.h to /include/asm/Kbuild --=20 Cheers, Stephen Rothwell sfr@canb.auug.org.au --Sig_/OELWuzD5PC91fjVQFZ1t_+c Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJU8Ru9AAoJEMDTa8Ir7ZwVpvIP/jZNouddKAUOjxkrLO0Cmwgl 4N0nD+bHWvWZB0ecfKFFbj9Uk1sd9o2JlJVD3gCRXdoqfS6+wTdxttX3RDzW39QB 0Xo0ivy6naWah73Ux95XN3W8ZH7Wq1oJpV5MNiJj2JbSFnkit6KwmueLV0+ELbIX xrsu3ZlgDwXxZAFuj5z05SPUmGEj4PCgnr2/+xfYNYb1Uw3ZKikrlApJTT3oiiBW dcpnN2xdDREFTcE6FtroCLPSj7oglx5fONowhxpcdHLIa77Lg/OQD1stfcsnNRiL 8dCJhe1G/wpv/BeRnJ43Xgdb0B/9W5AlIUi3Z/O0EXaHSwKIxShgd6+7o0f/AmUY ohHqjJAfhILz5o/ivI54PGG0Z8QwLKfCYbqicG8mK3iIo1s9WwK/0oP1BJD9Mf/f hsMnNdvqABbardBVdoGyjIwn6gds4CQnGVhdViuV2YZA2ZIL8TDqh/vnx1BlLvR1 FjJti/BF8zjnR1bNPvosMaIQLYGhbRfCc4EqoZHIHSkBcM8LOI/xwLCFtZtl/q/2 Tv9CUz35WCBNwZZObh/ZCzsJ4FWIPQA4rJyDuAToORVRWwmFXYtZSi113+MwFW31 cM1fVgakXfIZ04j4qJaKd/EdouMuIggrbhqGhz7GybnD1c5rOV4kZeducuM2ysT6 cjY2pr0NiBKGphJ3yISb =VLZN -----END PGP SIGNATURE----- --Sig_/OELWuzD5PC91fjVQFZ1t_+c--