Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754760AbbLWOSe (ORCPT ); Wed, 23 Dec 2015 09:18:34 -0500 Received: from mail-bl2on0081.outbound.protection.outlook.com ([65.55.169.81]:10609 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754497AbbLWOSc (ORCPT ); Wed, 23 Dec 2015 09:18:32 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Wed, 23 Dec 2015 17:15:58 +0300 From: Yury Norov To: , , , CC: , , , , , , , , , , , , , Andrew Pinski , Andrew Pinski Subject: Re: [PATCH v6 04/20] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead Message-ID: <20151223141558.GA22543@yury-N73SV> References: <1450215766-14765-1-git-send-email-ynorov@caviumnetworks.com> <1450215766-14765-5-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1450215766-14765-5-git-send-email-ynorov@caviumnetworks.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM2PR02CA0024.eurprd02.prod.outlook.com (25.160.28.162) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;2:aRIVKIhyDemVDBHDaK3xewhv2PZzal7SlDW3QLak1CK44cTwcFdCkTh2WJJ0s3pQ7QCV6F38fY9KbVdK9oMciDtUmcv9jS62GyangQ8w+AKOPifjHcHk/0QsYUlGUNnFHq7Kh59acT6NW0EMmZvTCg==;3:wll3JYX0AW+dppGOKQ155O+F15yqMS8OshG3mZz0gKaMP9b5CmMf7VvuNbCHEuETuDE3Ds6hoBniEBD26tfwOC+kex9BXnTfwYzyeK4jpBn+AqUrUQfdi1I2JDqOU87O;25:DN3TSeazk1Vfdnaey9URwWeP82nLu8DqATwPPxESrVnNKvTsKx98c5fIa6mnZAJ9Y9l/sQtPkPmy21LGtcK6GnSMW51WZYiqGhzY80XdYWzuRqJzKw+mppvl91dn0A00sh28zEv6v7m+o3+K8XUySny5xttSkyLFJhWC7eHP+lAjpXi47n/d1DetOCTskfsTJDnW9GvD7VR8iMwe0i3bzlydx7eiOKQVu5wdIAIT7EDPNItkdvrtAHLIuY2bRGVm1XqqGcclrYawnnqlITiJMA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;20:RgupdQP2ywMUh+wvMgMTb6ZqQcNoJGjI3qKcFrNrd0Ym29IEEvLTvuIx9RQIFGl39aiBWZdNufDVuD/xNxqx1k69FEWrncpAiIBpyyHgqejGs8IOapc24TBUsBNcuPCGTIJReV0JCO0/15aflh2xWav75u1IufM9IBq2TTmDBnS8Mh2FbbcbA/aysZyqC2Yi7p5OmRHKB7IttwSYSxKcc747LIhZ+WKQ2U46cMtkk5YbTkxIxEgUk7d53MT8DRNsDiBgfE7jjXAU3HY0hY+UFP25gjU7LqnhUd08f6wBuAdgoPxjZj4eM4KxqzDOK3vUhIy7gt00js/wEM+SaEUq9UCHRJatI/4mqrrvnolCE2NeKmn5PSHpEwD+7uzn7gJKrmQ74vLWjbgDp3yRsHHg2/v6CUverVgQg+too4pBnHlarbUjAQOC5/2TRo4EkMIbtHjxhU8U9wATU80yidl9F7r/fLJOJN/H0zIDbr+MGW6kdET17k67aQytQUY5+gQEOSoTgOLa1Wttt5SpCSbW55/FbUorfQ2BvwUG75DxNTiz1oFBC6Ja/jlj/9uyr2IcdymCOPahTcXNCNBUnoE94CYn8t1HVqD90AaRde9m9ns= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001);SRVR:DM2PR07MB624;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;4:He73NF+F9HzAH7fwQK5omjLczg+Kiq40xQbroFbQmnkzRGt7kkg6lu0/knPoLeSFh+MPXIn/F6YSxrkiWblAQZKzCEpgpSR0g8hM0t60DZtuUqO1zBBVepGZvkpwWtaCgdzAxNPlClr63olrp9zLBOifDpU38LC0IBTq/nld8a8JVTiRObDUnDteNa9P/K5z9O+YS3nXt6wf227BMotih369DKYBVnJM4/t10QBjRnKVOLXpSRJeDAxmn4AsiA6t1jOqLeS1ixAUwdFDBu1X7ni9dO06pbXfgOjWnpIFPvoCqkP8qaXuKaFdDKuMA7q1Db0/ajD2nsLxncv3yh6ielsbIoN1OySTgr5VLI/dNgsSOvnAB96hxf6cwD3sUv2Q X-Forefront-PRVS: 0799B1B2D7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(189002)(199003)(24454002)(66066001)(33656002)(77096005)(6116002)(83506001)(2950100001)(87976001)(97756001)(105586002)(5008740100001)(76176999)(46406003)(3846002)(92566002)(54356999)(19580395003)(5001960100002)(50466002)(23726003)(15975445007)(4001350100001)(50986999)(586003)(42186005)(5004730100002)(107886002)(101416001)(4001430100002)(189998001)(76506005)(106356001)(122386002)(1076002)(1096002)(97736004)(81156007)(5001770100001)(47776003)(33716001)(40100003)(2201001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB624;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR07MB624;23:hrRnjX/WrYuLOmeRfi+bpPPOxCqu/DW2xFtIbPT4x4?= =?us-ascii?Q?099QFmxwn09/gJdbBJYwxqSYyYglQs92fC5qo9oBYYDxrFPyQC+H28Lxcc8e?= =?us-ascii?Q?NWYf8ArLsf90PH6/x5LS7LfAPI2s5gNNG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iWMh0y71gDErggvj49fhm4e+Ypm8YKAv8OXEcTZwAqcZUrIDlNyp?= =?us-ascii?Q?gsWIinHet2FHc8cqE2x9tWZgGXPHgcjP+4JR3BGwhlDOYKBoWEp8+w59XM/v?= =?us-ascii?Q?moQCkTjBSEWqUNYcrKLP5YZcU4CFj6zIJTCWaT8Aog4Jzx/+PsWEUkQFlCHs?= =?us-ascii?Q?s4m5ix5evPbqhxCtz6cDqFAqiAee0/ziSxMA4c8hK2510agwmY6GtvWA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;5:ouZa/BPmtuGbryBRn8nIVYCBWjeqzskpuPyF/QZROvQAuV6d263ON264cEBBGep2NC0JLhySRbm9voGsIuMda2eGjVEwSB1PHK2U2ohh0iF0u0NGI0Aob6KoT3QnDxxxkrxAeVGk3N76OKYTyUBNrA==;24:WZyY9+7eNEI5PLdPzr7+xPr/hipuyBNYQcxYxYqAdGjPjWKjC2Hm51JFaWRbK8BvofoyfuIQpLr6elvo7u+hlZiN7p2zyblNmeTAJjrDRc4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2015 14:18:29.7219 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 43 On Wed, Dec 16, 2015 at 12:42:30AM +0300, Yury Norov wrote: > --- a/arch/arm64/include/asm/unistd.h > +++ b/arch/arm64/include/asm/unistd.h > @@ -13,9 +13,8 @@ > * You should have received a copy of the GNU General Public License > * along with this program. If not, see . > */ > -#ifdef CONFIG_COMPAT > +#ifdef CONFIG_AARCH32_EL0 > #define __ARCH_WANT_COMPAT_SYS_GETDENTS64 > -#define __ARCH_WANT_COMPAT_STAT64 > #define __ARCH_WANT_SYS_GETHOSTNAME > #define __ARCH_WANT_SYS_PAUSE > #define __ARCH_WANT_SYS_GETPGRP > @@ -26,7 +25,9 @@ > #define __ARCH_WANT_COMPAT_SYS_SENDFILE > #define __ARCH_WANT_SYS_FORK > #define __ARCH_WANT_SYS_VFORK > +#endif > > +#ifdef CONFIG_COMPAT It seems like __NR_compat_* and __ARM_NR_compat_* are needed by aarch32 only. If so, it should not be defined for ilp32. And the only common definition here would be __ARCH_WANT_COMPAT_STAT64. > /* > * Compat syscall numbers used by the AArch64 kernel. > */ > @@ -44,6 +45,8 @@ > #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) > #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) > > +#define __ARCH_WANT_COMPAT_STAT64 > + > #define __NR_compat_syscalls 390 > #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/