From patchwork Thu Nov 1 13:43:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 149952 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp811324ljp; Thu, 1 Nov 2018 06:44:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5ckeoufL2fvX/pX73Zqby1yAvePmfjoJWK+lwba2sWl0Jso36NIpo1O4NTQJ9VV7L1it5nJ X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr7740394plb.169.1541079861696; Thu, 01 Nov 2018 06:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541079861; cv=none; d=google.com; s=arc-20160816; b=dN+SDEgm3uCRRBqa7OdCsSxtSue97Ih1pSzjfDsFqQamGreqT51STAV42Qjvo+uaLh dVMCd6R917itZvY5d3+SIdv5oq0zbVwsZyRx9PtV2m17XRzw4FLDtkA/TrYIjlXlQmVg fG3dsQK6WS2Pyryo2oYCU9SNciPcsaT2578M+IsmD/H7VYFVwexrhgOC8NCcmkr2mdeY VqoYcpO2Q7pM1ch6efkFHCtiHSk/a+IQ1b5PIiWoQKv9G4ToGRPhBbqCo4lRIpyH+gUS edKjkSQlPpLbGo0NEVyPlIAXKrNADodclQBZCCmgr+LILUpJYWd/OZRac0mMjgSasdUt 1Y6A== 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=hrIc/09hG2Rjx2gxHsto6VmZaTQU+F7AknA7S+s7234=; b=A0ZdyvsI2a+BqRQ6XRGzZPtc9xfLxRdyRzM+PhXfooUdy1zhnOcU/xx1vlQmHaISjE kl86hDvJm8LhtqGAlpR9XemtgVWxRo0u/mkxKkQLZrwDm9v+2RdYT9/hGCeBO4gF/MHG taddXHv4jNxjs8/mSzrO9t2B01m3nmWSLgezhfnj7mMmKnlDriqkpzyuCf3uF6h3opAj O/aYGG5yHoSE3xrruUopENkO88PyYODNhAFpt3Bpfr4NgNL7s9PpeX5eYbGEksACKI5O C3wUTfKvMlBN/OZgxihbz6iJZa+M275M2svlzeAalRTGk+D31IMgmg5JpIIlIr3RRZ8Z 2G+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XzUb3U9G; 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 b3si2996066pgc.587.2018.11.01.06.44.20; Thu, 01 Nov 2018 06:44:21 -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=XzUb3U9G; 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 S1728808AbeKAWrT (ORCPT + 32 others); Thu, 1 Nov 2018 18:47:19 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43148 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728548AbeKAWrT (ORCPT ); Thu, 1 Nov 2018 18:47:19 -0400 Received: by mail-pl1-f194.google.com with SMTP id g59-v6so4972959plb.10 for ; Thu, 01 Nov 2018 06:44:17 -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=hrIc/09hG2Rjx2gxHsto6VmZaTQU+F7AknA7S+s7234=; b=XzUb3U9GlS5JnUygI02ciugK291+KqeUWtH8GxITzw46BLpeq1B0E2D7yFKWibv9+s lVQ85elZZLczsoPWxk0EGfMa13I/fU6Nv5hwnEngEumepLGuNBiyZdN4NqgfXwSJVsGh 5hyOW6k4a4SAKPqz5idoo5MmcnFk+yzYxWWSI= 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=hrIc/09hG2Rjx2gxHsto6VmZaTQU+F7AknA7S+s7234=; b=lj9+O9Ba9eYfLQZSz6k8guo8voW9SBw1uhARw1hwu72nDb6B3nTEUmWpRc9949gpty LSi68q4KcmQKYYtWLhbg38QymF7FBA/aY38DDCWRyO6Z6Xkru+Wyb0XBwgJoneyqvpOp rqan+MFbm/7GeV9dzAxC1lefEisd1KUTllXGUoh/SkmYnCXy/j+Tn5I7kKrJCcd1/6u1 Bs2YXbpvdBwOUlkY2EPbhwhljmHdgvrIE1PSYHNdNBL2HQvJTE5uL8BvZ2DtYfzJjq9o VAdN5RpLmjp3dcht6MqUMuMFFFC2efcRcjjZMIMi/YxqzSYd24JF1MvgiabCSla0m0u9 1OBg== X-Gm-Message-State: AGRZ1gIbGkTru3GYb72oL7Rx1VwPtcNyS8IlEa9l9i1VhAXeIlk4M3eH FiGbttE0L5U9i8pjgC5WV4M27w== X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12-v6mr7407124plb.69.1541079857341; Thu, 01 Nov 2018 06:44:17 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([106.51.104.211]) by smtp.gmail.com with ESMTPSA id r23-v6sm36359299pgm.48.2018.11.01.06.44.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Nov 2018 06:44:16 -0700 (PDT) From: Firoz Khan To: linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , 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 v2 1/5] alpha: move __IGNORE* entries to non uapi header Date: Thu, 1 Nov 2018 19:13:33 +0530 Message-Id: <1541079817-3431-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541079817-3431-1-git-send-email-firoz.khan@linaro.org> References: <1541079817-3431-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/alpha/include/asm/unistd.h | 21 +++++++++++++++++++++ arch/alpha/include/uapi/asm/unistd.h | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) -- 1.9.1 diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h index d6e29a1..cbd04d3 100644 --- a/arch/alpha/include/asm/unistd.h +++ b/arch/alpha/include/asm/unistd.h @@ -17,4 +17,25 @@ #define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_CLONE +/* + * Ignore legacy syscalls that we don't use. + */ +#define __IGNORE_alarm +#define __IGNORE_creat +#define __IGNORE_getegid +#define __IGNORE_geteuid +#define __IGNORE_getgid +#define __IGNORE_getpid +#define __IGNORE_getppid +#define __IGNORE_getuid +#define __IGNORE_pause +#define __IGNORE_time +#define __IGNORE_utime +#define __IGNORE_umount2 + +/* Alpha doesn't have protection keys. */ +#define __IGNORE_pkey_mprotect +#define __IGNORE_pkey_alloc +#define __IGNORE_pkey_free + #endif /* _ALPHA_UNISTD_H */ diff --git a/arch/alpha/include/uapi/asm/unistd.h b/arch/alpha/include/uapi/asm/unistd.h index e153ca6..47c65f1 100644 --- a/arch/alpha/include/uapi/asm/unistd.h +++ b/arch/alpha/include/uapi/asm/unistd.h @@ -241,22 +241,6 @@ #define __NR_osf_fdatasync 261 /* not implemented */ /* - * Ignore legacy syscalls that we don't use. - */ -#define __IGNORE_alarm -#define __IGNORE_creat -#define __IGNORE_getegid -#define __IGNORE_geteuid -#define __IGNORE_getgid -#define __IGNORE_getpid -#define __IGNORE_getppid -#define __IGNORE_getuid -#define __IGNORE_pause -#define __IGNORE_time -#define __IGNORE_utime -#define __IGNORE_umount2 - -/* * Linux-specific system calls begin at 300 */ #define __NR_bdflush 300 @@ -481,9 +465,4 @@ #define __NR_pwritev2 521 #define __NR_statx 522 -/* Alpha doesn't have protection keys. */ -#define __IGNORE_pkey_mprotect -#define __IGNORE_pkey_alloc -#define __IGNORE_pkey_free - #endif /* _UAPI_ALPHA_UNISTD_H */