From patchwork Tue Sep 4 04:41:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 145834 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3225884ljw; Mon, 3 Sep 2018 21:42:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ/3Fj66nf2L2RxocxYVPJUDn0hyqNjnCY13lo3KUC4XHmeqrZuaHvgxliWcDFAQCFxfJTR X-Received: by 2002:a62:3909:: with SMTP id g9-v6mr32753096pfa.176.1536036137285; Mon, 03 Sep 2018 21:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536036137; cv=none; d=google.com; s=arc-20160816; b=kvATDOFx3uD1Gommzurwidv5r57BpN3x3eT0WApRTwFr0rH3jDH1Eed0gpp36Xjhn/ CwB8247tpGAQheQFXhaQfNf2Grjz6mpREKnhNuuZ2PBIIL5c+NcfK/mbRG+/0G6f9tAk dPLluVO8RCTTrETaHJalN7VnJjy23xtSjPnAZ7PkfOItba92xigQVwsiwlQiHvwjvH2L BbYDrhItARBBsL5SJ8K3yjdYn+9V/3hGl4wHsqIYZfWj7RQ887ibjr+hNZwpozFpGybZ 3+jLVNtf/v8RWryDZe35AM6xF5RqNViFshwYPp9nntzzmk4DmqzB24Da0cdsQCUyKJGX crpQ== 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:arc-authentication-results; bh=nVMEY7kSg6pH6nKK4ILWh9DUB5HL9PrblssQxMhseHY=; b=NviZXhT6b1FE/GhrcjG0MrOI1FCa9/6e5dAgJAZ4EjzVqkOUrZcZrk4qVmmeaRdpdp ZmE6jcZotxqeFHZTGj+LnyVhBZrbIOhJiHpfbM95Hc+PAAuROpLPkBGs8OEdV6RzKE5a yvZaCBFATGUfZ9wAWml0/E/DzebljHKip/pXcaCfsbafem0rsEder7i//7zv+I3jr6Ip 9TrolKpY2R30Id9Dz0U2wcItCNoGRNc6XNWUywqzEglhxjbTLiArHaxvlY/Snr84vIux cCJBJA8mtnz/iEK0VexD7ut0LwmIiGhVxFsNEU/FS46m/H7Ln0fGY5n/3rWlOhfluq03 HX9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D57Iekwd; 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 64-v6si21401228pfs.7.2018.09.03.21.42.16; Mon, 03 Sep 2018 21:42:17 -0700 (PDT) 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=D57Iekwd; 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 S1727520AbeIDJFd (ORCPT + 32 others); Tue, 4 Sep 2018 05:05:33 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37122 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727468AbeIDJFc (ORCPT ); Tue, 4 Sep 2018 05:05:32 -0400 Received: by mail-pf1-f194.google.com with SMTP id h69-v6so1043894pfd.4 for ; Mon, 03 Sep 2018 21:42:14 -0700 (PDT) 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=nVMEY7kSg6pH6nKK4ILWh9DUB5HL9PrblssQxMhseHY=; b=D57Iekwd8aQmDTYqx01cIigyCRxJZPGhOhEDhWLZqaE9cx38yzjrputx14hwD0RfX6 vt26jfK7fddhIOnYAdIv8kvzt5agKEZtDpJL+WbwZLI3pzG8VDb7eHJ+so70BcYg4j1z vQid/1HJdciSRCnDVDcjcLVFG9XYOc6REClU0= 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=nVMEY7kSg6pH6nKK4ILWh9DUB5HL9PrblssQxMhseHY=; b=CyowhhseaYiwWfWof0vBtgZbuCW/MUU0v7zDb99QUTsA5RpgeY0Svu4nKggSFROiLI VK5SAjN4flTc1drjQmTRWxafPS3jl6i3LtN4PHKbn0UIz/8Bi04vCMTBvndx2DSmvOLF KpAkbHJ/SfQAwNktc86M28gHRvcDS4sz4lpHS5SUXrYgcj55ywSGR3f+wSx2RG3KqipK iDSeLDGGO500Cbnxbo+YJXKUGT0OYjhLH9LKuKodcNfY5LwPFD+AZKxdL+gXj6ZoED3f Ol0+VmtvQQHxfS/0MF+wEMEZoGT/C+vAziwpURXtoZW7lEefHXfC40LKNv5fIbeZwgJF 0/jA== X-Gm-Message-State: APzg51Cgf1xGakhhf/t3FV9xNuJyiss/jwvH/goR8LUGTc/eEWI00zrs p0GFAdNftRS5rfz251GigQn0bA== X-Received: by 2002:a63:1947:: with SMTP id 7-v6mr10032860pgz.192.1536036133950; Mon, 03 Sep 2018 21:42:13 -0700 (PDT) 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 w12-v6sm10280372pfd.110.2018.09.03.21.42.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 21:42:13 -0700 (PDT) From: Firoz Khan To: "David S . Miller" , sparclinux@vger.kernel.org, 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 1/4] sparc: Move __IGNORE* entries to non uapi header Date: Tue, 4 Sep 2018 10:11:24 +0530 Message-Id: <1536036087-15260-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536036087-15260-1-git-send-email-firoz.khan@linaro.org> References: <1536036087-15260-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 and it is not used by any user space applications. One of the patch in this patch series will generate the uapi header file and system call table file. So if we move all the __IGNORE* entries to non uapi header, it will simplify the uapi header and system call table file generation script. 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. Signed-off-by: Firoz Khan --- arch/sparc/include/asm/unistd.h | 25 +++++++++++++++++++++++++ arch/sparc/include/uapi/asm/unistd.h | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) -- 1.9.1 diff --git a/arch/sparc/include/asm/unistd.h b/arch/sparc/include/asm/unistd.h index b2a6a95..f120b6b 100644 --- a/arch/sparc/include/asm/unistd.h +++ b/arch/sparc/include/asm/unistd.h @@ -17,6 +17,12 @@ #include +#ifndef __32bit_syscall_numbers__ +#ifndef __arch64__ +#define __32bit_syscall_numbers__ +#endif +#endif + #ifdef __32bit_syscall_numbers__ #else #define __NR_time 231 /* Linux sparc32 */ @@ -45,4 +51,23 @@ #define __ARCH_WANT_COMPAT_SYS_SENDFILE #endif +/* 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 /* _SPARC_UNISTD_H */ diff --git a/arch/sparc/include/uapi/asm/unistd.h b/arch/sparc/include/uapi/asm/unistd.h index 09acf0d..ccf4bea 100644 --- a/arch/sparc/include/uapi/asm/unistd.h +++ b/arch/sparc/include/uapi/asm/unistd.h @@ -15,12 +15,6 @@ #ifndef _UAPI_SPARC_UNISTD_H #define _UAPI_SPARC_UNISTD_H -#ifndef __32bit_syscall_numbers__ -#ifndef __arch64__ -#define __32bit_syscall_numbers__ -#endif -#endif - #define __NR_restart_syscall 0 /* Linux Specific */ #define __NR_exit 1 /* Common */ #define __NR_fork 2 /* Common */ @@ -430,23 +424,4 @@ #define NR_syscalls 361 -/* 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 */