From patchwork Tue Nov 13 09:31:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 150939 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4177584ljp; Tue, 13 Nov 2018 01:32:30 -0800 (PST) X-Google-Smtp-Source: AJdET5d0t0Dw+merO8bPRCMYn6tpLUlQEND/bKvbolZh+KLCNlR9iG3yxI87HMECgw7DHPYm5Y6z X-Received: by 2002:a17:902:8d94:: with SMTP id v20-v6mr4385414plo.109.1542101550428; Tue, 13 Nov 2018 01:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542101550; cv=none; d=google.com; s=arc-20160816; b=aWY6vsyjZK5nnEYz10LI+2AYnheNpOe3YzUkn063Z2S5Z5qUqlU3+UA9zan2guorCZ SypOULsssPqnIV9ooHxj2woCeCtqv8052Pn3zzBYfBY2AdbPNRN0/DptuB3sMvAeuJEw A6n0LnxfKn59noTXje26lvG21bXxvSZy+jAw5RhrOXWYF8Rbh8CNYDo1p44zjHC/SPk8 m+nuo6zumep8CCTN+X2KAyNI6DwgiDL86IBGo+xPcgewKIgzS05sEJnHdpnZqyiG+isb LAlEXl++DKhmohRt3BLwRwlwDm9w/OZpcUjNsbbslLadG80UTI6areRpWNJKpv6YlxoK 2HMg== 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=PmD+PCg2rARw5PC4eCUFbOCoKLS/cwCHLXhaCYfoDTI=; b=yjOlQ7LydseG/vjPp9t2qnqi3BgTkH8uxiQyI47fv6if27BFSRnuuCwlmYnCzs6WPp vfLKB/ICMYRHUa0D6ieSDiNBRjzkkhqIA1JS1RKG0WIy7IMWuC8MWKalr9eD68ognwzY 85o6J+5y8AYfEGHq6oRspmRfDHayLTgSeIxU2bvFauP29yqDOKjL499FHvXlIaeH9k6+ EXvEuBMYmjl+g/cm5xN10c/+h4ixkmjwEr6o1ELHSupSQALxbpWybCPHDFdenGmgn0b6 Ycm/hrfBF+Tfd5CGQ0TyImX5yDhZGtLv8yeocPjC4r5QMIQv0egqakKNSIBjHcClhvjS F4JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DIzVLkvM; 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 l132-v6si7068010pfc.263.2018.11.13.01.32.30; Tue, 13 Nov 2018 01:32:30 -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=DIzVLkvM; 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 S1731700AbeKMT3m (ORCPT + 32 others); Tue, 13 Nov 2018 14:29:42 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33340 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731669AbeKMT3m (ORCPT ); Tue, 13 Nov 2018 14:29:42 -0500 Received: by mail-pf1-f196.google.com with SMTP id v68-v6so5764416pfk.0 for ; Tue, 13 Nov 2018 01:32:27 -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=PmD+PCg2rARw5PC4eCUFbOCoKLS/cwCHLXhaCYfoDTI=; b=DIzVLkvMpWnQJ3kKr9HOUeTGZj7sXd+aSOpRXLwYJvxFvZzg/Qu0quURmgD7pqaRFE geakGxB8vJBi16/zugGJVNUNzb/1+kimLKvgQvx7so+ZJMS8lHR6x8bbFgcd+GvDBXks q6FDwqK8aYRDbYtZ/RXXV4CHFYse7UCuWQY9U= 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=PmD+PCg2rARw5PC4eCUFbOCoKLS/cwCHLXhaCYfoDTI=; b=HlIfxTUwg9klPwh72D1cQ9DfmH7yjvTW3/g5Bk1OHB5ddB0udJ8uxZvJPDkJsXlakc 7MzNsN41BfIoWl/tEDEPvXZ7LVWwtZnzmM4vaIbk6eUJP13jHthfHhs4VIkSfWInNHa8 XXD34mbMnR5X/c1oawkfkkA5bKWvnUZDnFhjkvPGhjXHzrpOjgMmLyXRn0uXgdRc/VVz 3xpKILNRqyvz+I94jboa9KVHl3iEeYdp+MeWEu9WfJwf7Hyv2M6QNpHkfSYxiZtrkCXy GhzljwHxlsfWsMlDrP93PyclF/mYAYIC7JZ8rDU9lUfPFbwg+yHffdcHBno3lY5AVN6H +png== X-Gm-Message-State: AGRZ1gLegRkrs3rAWlnnmT8aBs95EDdGkcLHXKl6+CVHutLDbCjCqXP2 +u1NNgjNZhyNPLQA49mvvcnBSw== X-Received: by 2002:a62:5504:: with SMTP id j4-v6mr4391445pfb.166.1542101547420; Tue, 13 Nov 2018 01:32:27 -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 u6sm19902462pgr.79.2018.11.13.01.32.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 01:32:26 -0800 (PST) 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 v3 1/5] alpha: move __IGNORE* entries to non uapi header Date: Tue, 13 Nov 2018 15:01:49 +0530 Message-Id: <1542101513-22010-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542101513-22010-1-git-send-email-firoz.khan@linaro.org> References: <1542101513-22010-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 9ff37aa..4f0ceb3 100644 --- a/arch/alpha/include/asm/unistd.h +++ b/arch/alpha/include/asm/unistd.h @@ -19,4 +19,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 */