From patchwork Wed Nov 14 05:26:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 151023 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5274597ljp; Tue, 13 Nov 2018 21:27:06 -0800 (PST) X-Google-Smtp-Source: AJdET5cbuxi10kSH2CF5EX6ooeQgk6ids5eNoMDM7CWmZB1LhNeqPPTGt1TrdUpdfw/AnTYE5PIk X-Received: by 2002:a17:902:704c:: with SMTP id h12mr541531plt.78.1542173226169; Tue, 13 Nov 2018 21:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542173226; cv=none; d=google.com; s=arc-20160816; b=hhv+mGUWurSPlkgfoQK1Op+C3FZmg7C8dfqZ6pWH56arz3/lEcAElHKQmWKK5XnrKO 8yAKmgp4U5x/8dNgjaAEIwWlnmJ13ePqirUmopeVXdmZwZoKq2b6ykwVshKNEbVJ524b vexxxZJ3DyTuNhR2C3L4z/R3EEyS45Swt3vEPyWBh/0a3imcgD+sJ1OFd29OfF2MLefT 3YDSo1HC8rOvxcXhvGuVWk+D01qMJZhm58mqPZXfXa0pSEUPMajXC0ABz/LiOJPsgqda qJ37yhlq3a+zHwCsbZVCM0aQMPwJQrMMCRoGD9lhw5Ll/zSF7nT3eTmkHd5hM+3uoQez 81rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=goExF1GBzjheC5xy4kMD7sglfgZ7pi4rKx0Y1n5HIek=; b=V02Nkp84j5/UTAz8+3FkS+oj/xEdCnMC1GuLFjO73IyJU6bis+GZbaxtRk7xTULGEP mZ2c//b6NR2DBLxAX3r8D7cWYbE7c4F0UvOrMUya+89A8dmOvQkuwLWA5I1wx+yFNpRC 1sQAP+Sj3/eQhpaTXTaxPbazCe9AXXBJsNsxN0+SqCxT7W6IlJxjbp10ZQOvJZ1ueY+5 fYQvhxQ6B07pvI5b4sciB0DAhr9tnnm2/6mfRKFcxFnV350bEQQbJoQASDFmybcQfKP6 h/x3BLhFZE1Mp2azrrE4fNl6VEzhRn3xhzcRvkjhQ4RPNgJq5MjUD5PUxjDvUQfVg1O/ SegQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TZil/uQ5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10-v6si19668680pll.320.2018.11.13.21.27.05; Tue, 13 Nov 2018 21:27:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TZil/uQ5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731518AbeKNP2n (ORCPT + 32 others); Wed, 14 Nov 2018 10:28:43 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33063 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731335AbeKNP2m (ORCPT ); Wed, 14 Nov 2018 10:28:42 -0500 Received: by mail-pl1-f194.google.com with SMTP id w22-v6so7213020plk.0 for ; Tue, 13 Nov 2018 21:27:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=goExF1GBzjheC5xy4kMD7sglfgZ7pi4rKx0Y1n5HIek=; b=TZil/uQ5QxHCLAGGRLxHRiNCl5kwNPUF+bIr03M1Bn8I/Vpe+kLlkHKYO76ptTxB0j O+RshFPIXcK6cXYg9OUoOo+6PSCjQiwVvlabBJEOLBatSpghwHC8ezOr0LRKEhmNbtSv x22SZxMi0NT4EbExiLHJJMfexzEIXlIf0x+ys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=goExF1GBzjheC5xy4kMD7sglfgZ7pi4rKx0Y1n5HIek=; b=HnnAouVs/4mU1ATQGN/FixrFSRNr8llL8mktaD8A914tEeIfXPFHZ2JfkNIptvLUmO Z69ztlqB3tM74I5C2jTdLPIVvgWNJ58E80vlkuw2lckT8H2WGzSenJmWWXjr7yGRGaXQ ZrcIRXnjSrOBLVWwvsbuSyS/z2Bk3wLV3WF9EX+5U4hyD1e1WSPLLe06tQAqXkGMv/qB VsFWiMSmkGpNtczIIGa5TbykLuNOZz6eKsaI4cSLJsvjx7zpjKmMsHteyUXd3DNvID0r f26AHgSPIoV43CEMHiKAiL0fZKI3yXxj0MMvGOeDILDySpTEBnDN/0OcBGsd79wQ0H/7 KvNA== X-Gm-Message-State: AGRZ1gL1h0SBAH8lDCWDZFiTCCpoNk8WFtS9IIqYwiOi/J/UcChOTtkL 3w8jMTjJzyDrDL6YorSOGNBKQiuINJM= X-Received: by 2002:a17:902:ab81:: with SMTP id f1-v6mr506058plr.103.1542173223180; Tue, 13 Nov 2018 21:27:03 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 34sm36331746pgp.90.2018.11.13.21.26.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 21:27:02 -0800 (PST) From: Firoz Khan To: "David S . Miller" , sparclinux@vger.kernel.org, Geert Uytterhoeven , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v3 1/4] sparc: move __IGNORE* entries to non uapi header Date: Wed, 14 Nov 2018 10:56:28 +0530 Message-Id: <1542173191-24981-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542173191-24981-1-git-send-email-firoz.khan@linaro.org> References: <1542173191-24981-1-git-send-email-firoz.khan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the __IGNORE* entries are resides in the uapi header file move to non uapi header asm/unistd.h as it is not used by any user space applications. It is correct to keep __IGNORE* entry in non uapi header asm/unistd.h while uapi/asm/unistd.h must hold information only useful for user space applications. One of the patch in this patch series will generate uapi header file. The information which directly used by the user space application must be present in uapi file. Signed-off-by: Firoz Khan --- arch/sparc/include/asm/unistd.h | 16 ++++++++++++++++ arch/sparc/include/uapi/asm/unistd.h | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) -- 1.9.1 diff --git a/arch/sparc/include/asm/unistd.h b/arch/sparc/include/asm/unistd.h index 00f87db..73d2454 100644 --- a/arch/sparc/include/asm/unistd.h +++ b/arch/sparc/include/asm/unistd.h @@ -46,4 +46,20 @@ #define __ARCH_WANT_COMPAT_SYS_SENDFILE #endif +#ifdef __32bit_syscall_numbers__ +/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants, + * it never had the plain ones and there is no value to adding those + * old versions into the syscall table. + */ +#define __IGNORE_setresuid +#define __IGNORE_getresuid +#define __IGNORE_setresgid +#define __IGNORE_getresgid +#endif + +/* Sparc doesn't have protection keys. */ +#define __IGNORE_pkey_mprotect +#define __IGNORE_pkey_alloc +#define __IGNORE_pkey_free + #endif /* _SPARC_UNISTD_H */ diff --git a/arch/sparc/include/uapi/asm/unistd.h b/arch/sparc/include/uapi/asm/unistd.h index 45b4bf1..d37a136 100644 --- a/arch/sparc/include/uapi/asm/unistd.h +++ b/arch/sparc/include/uapi/asm/unistd.h @@ -434,20 +434,4 @@ /* Bitmask values returned from kern_features system call. */ #define KERN_FEATURE_MIXED_MODE_STACK 0x00000001 -#ifdef __32bit_syscall_numbers__ -/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants, - * it never had the plain ones and there is no value to adding those - * old versions into the syscall table. - */ -#define __IGNORE_setresuid -#define __IGNORE_getresuid -#define __IGNORE_setresgid -#define __IGNORE_getresgid -#endif - -/* Sparc doesn't have protection keys. */ -#define __IGNORE_pkey_mprotect -#define __IGNORE_pkey_alloc -#define __IGNORE_pkey_free - #endif /* _UAPI_SPARC_UNISTD_H */