From patchwork Thu Nov 1 13:53:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 149962 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp820539ljp; Thu, 1 Nov 2018 06:53:48 -0700 (PDT) X-Google-Smtp-Source: AJdET5fvUpfFJ/Guw1JlIpgOrtv66mLS3DU3G83kZ+Gh4MudfM183ea4yeHODXOq4FuxYVuItJQC X-Received: by 2002:a63:6c84:: with SMTP id h126-v6mr7248154pgc.237.1541080428716; Thu, 01 Nov 2018 06:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541080428; cv=none; d=google.com; s=arc-20160816; b=Ze2U4PN8cwOywFO9G8BqTutPE0mwYQQXFOQHE7eqyRqBzB0j8ur9JzHQgGj1hQ4QXu Dwc1EcHiGVNE1Q6MgzpSBAy2Fx/MwzJtxspyn3iX01Hpr4KDxRMXEdwvoFRXBcl2D7NX MwfGHs5fZxJubY5E+TvFgFOQOw4t0ZRm5kz+kczBBedYd5GRC4/vsgwqOuvDgLiZlv5i unBGSeZGOxRuppsWq1EdfXcKg0+jpNBOW+0qqj0M2Y77cb/6WRn7WlP5wSEBvQ2ncuuL xwJhdX7/3Th/UOg6PME1/h58WIKMjLxw8+8m/Dgwf4w4at5rTMzQE72WDdPL/wNHlCaE A4KQ== 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=QL4HBtXy2kdUzZVg3cM04W+gwHD2rDZgr2KGTmJMb5w=; b=QCrNUnezwex8oDeDa6Pa7E15d+42FkpgW1l2Eblj1ejCSAHo0GQ4lwDlA+c3N6ELRB Ue9EJvDHbMwqlYKr/hRf8jltAZ7k8T5oSWleMwZkeJBFbAWX6LzzHRhJkqsHULEAkeK0 j81aRiR284nHkKaebLzB+ZhfzE/lx3Bg2W7lvIEG0ifq/VvlpZKAY+aZzQctauztX0Va BNLs6zBvZrxz+JDULROxhw7+a/EgA66vnlZyXRUo0zacBOYwZX+hdy5koTFVbvS8byJ8 pZ6M1CnffTlM99CKJ4WHPU7VLmb1ktFVCNnn5MapOIvtJUzBqTrIAiM5Tmn2sNdUK4bz 0VyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K63pyOxM; 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 p3-v6si9005922plb.14.2018.11.01.06.53.48; Thu, 01 Nov 2018 06:53:48 -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=K63pyOxM; 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 S1728785AbeKAW4u (ORCPT + 32 others); Thu, 1 Nov 2018 18:56:50 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40514 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbeKAW4t (ORCPT ); Thu, 1 Nov 2018 18:56:49 -0400 Received: by mail-pg1-f194.google.com with SMTP id o14-v6so9068787pgv.7 for ; Thu, 01 Nov 2018 06:53:45 -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=QL4HBtXy2kdUzZVg3cM04W+gwHD2rDZgr2KGTmJMb5w=; b=K63pyOxMrHb+GRMxlnKfjNGblG+PKrLj5vy7bj9zVvXM9VQk7uwiwWxQd/wW1q/cfY SxWLQ9vYiYkIXyMvv41gSQGGtq26Laybx38qne5w/xiqtYg1DfYgj9E/pdTqE4LI1/RK t7aiViG1AP8Wv9aeXvW9hGa0wk4nxFCyJHhbE= 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=QL4HBtXy2kdUzZVg3cM04W+gwHD2rDZgr2KGTmJMb5w=; b=pt5dPR7RjzdpK7uoic79/8mJzFqvMNA7mEEwXqimmI78Sd6WNERgZn8xUJK4933Nr1 DcFyItFo3nm+W9BPIr4HbbU9d+qzxscUIcNVIR6CzJtEmFuG62g2j5FcaukV80FxAzWO RK0pt8qDr95qvUMaopB+pnWb2w0YTDagrzKZcTt4LbVXM0McA4SdE65xE3EXWLMyxmvC Gxxiyp/oIH6bcJ9TkMmpIfnnK09ExfPztl+IZit/mioyAjbXCMQOfMJRkpA72LBjA6UJ tIwplcC/VrY5zZx1YvH/tAVmkoyVJVGW41R+IZbD1BH38VH7dCyuZRh7HClpWVat1ZDd eKYQ== X-Gm-Message-State: AGRZ1gIvBCBv2n5+LaV2L2QUnbwHq4NMet9Di3Ziykz3Jl4qhYiF1Cny iLna0uhIqR8O+YUimYg3RTsoAw== X-Received: by 2002:a62:50ca:: with SMTP id g71-v6mr7795039pfj.62.1541080425106; Thu, 01 Nov 2018 06:53:45 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([106.51.104.211]) by smtp.gmail.com with ESMTPSA id 131-v6sm2224716pfa.120.2018.11.01.06.53.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Nov 2018 06:53:44 -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 v2 1/4] sparc: move __IGNORE* entries to non uapi header Date: Thu, 1 Nov 2018 19:23:08 +0530 Message-Id: <1541080391-3890-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541080391-3890-1-git-send-email-firoz.khan@linaro.org> References: <1541080391-3890-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 b2a6a95..6dfd752 100644 --- a/arch/sparc/include/asm/unistd.h +++ b/arch/sparc/include/asm/unistd.h @@ -45,4 +45,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 09acf0d..6e59037 100644 --- a/arch/sparc/include/uapi/asm/unistd.h +++ b/arch/sparc/include/uapi/asm/unistd.h @@ -433,20 +433,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 */