From patchwork Thu Nov 1 13:56:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 149967 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp823528ljp; Thu, 1 Nov 2018 06:56:57 -0700 (PDT) X-Google-Smtp-Source: AJdET5eOfoTp0m04ZuBq76xy1WvzQtPJXr7xNGixqcfTQzcCK0MdUJaxqUAbZ0VITeK4r9F0cdGt X-Received: by 2002:a62:9c4a:: with SMTP id f71-v6mr8021130pfe.135.1541080617237; Thu, 01 Nov 2018 06:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541080617; cv=none; d=google.com; s=arc-20160816; b=uSCQ0YG2sg6kNj4j6pIishO+1lK9pxPU1feYmbFc7Q5V3oFGBP7qA4NSa1Gwby025P 6/SuAEEyMgEHLe1MBlB6uyVgvgeoA2P3WnvVOrEuTCjxLZDqNc13jck1q8y0q0IEuUU2 AF8hDxnn1FaV2hMeq/LX8TtnQoDV8Aw2EvlmS8jJJWZY6JkzVPYO1SHIBnMHgvtt+EF6 zCHZ84FJcE0WSHXsQl+EErEAbYCl+2XhemoCwrhVagRWljiBjNHgiJz0mi8aa3HzVtXz y6+worzmPYkKT6Xz87qtJB1F4YYIUn+LzWP9IXLJP+c8mLnSJjNas2hlar2lAhhu4BXT qa/g== 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=pnxeipCiPkb8vJ+Pd7jS4kFRDZjLiyf2+Z/z+WNftIQ=; b=quhb/uS+kf8A2VhVB5yCxywumPiyUURS64FqdAsqp9phpppkSAyEFm6Wg6bL3ydZd7 PXQVxYCnWaUSzzoijMtC5i7H0rrNLdoVHeTsBgxCagC9pGB/VwEJCrVR1FABBHTq5Lqj PzFcN/ESYMox8I66uBDZQcN7PJH2jvpIlNmH2tuB5//AEiGrndTCCm8s+69msRj84k0L Q1mpme1D9dXSLcoTifNtsOp99+AeK3PopM4IhknUKAQKM7OFriTlx/laSKtc77giKh4p jh0PDuR1CQKaMFezh309G9rWwn/QWyapSnlVo6w/d5jP78YQtOpKuigBe9J2YjHv3h1e WDMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CvU6w/hc"; 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 v2si20069716pgn.451.2018.11.01.06.56.56; Thu, 01 Nov 2018 06:56:57 -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="CvU6w/hc"; 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 S1728891AbeKAXAA (ORCPT + 32 others); Thu, 1 Nov 2018 19:00:00 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44410 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbeKAW77 (ORCPT ); Thu, 1 Nov 2018 18:59:59 -0400 Received: by mail-pg1-f194.google.com with SMTP id w3-v6so9059541pgs.11 for ; Thu, 01 Nov 2018 06:56:55 -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=pnxeipCiPkb8vJ+Pd7jS4kFRDZjLiyf2+Z/z+WNftIQ=; b=CvU6w/hchzFBPMwlBNJDUScAJ5JIA1i/H+3P5nNbi1G8grVKBMHb2DiEKtkJ7tCm5v xMAoA71fAhwIdWVd66Jm8lBv3EBajJdkkk1bHPKkgqPSDNhm3sA4qTnHnlRry3L3PQNj lUsFa7TUNkRTqwiL2TXk9jR1VPS+TOHYd6AoY= 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=pnxeipCiPkb8vJ+Pd7jS4kFRDZjLiyf2+Z/z+WNftIQ=; b=SP4JMzu8E4pYphSewHPOF9SQyF9B8PQwoF2y1eJySfHBhlWJqY8uHq1SDL/HYcSvMd MGVgyZVkOncqED7s1upo+7qadpG1p9+HxXCZo/A3D5E64BfRHh/gYwRZaK942Zg7UizO RKOSmYXGYRKKXgtSO18n7eGvX0x6TkoPUTGvjV5X8jWKqazp1uU/7+PcmnRE6C4oNNWn 90g+Gwms9TZvxFviDJ5qc/QUewTXJmmc54YY1NdIqhGdZabe18JZl7KyQlcs16jLfbQM JHzP1dypbDTqoKBijc3OOwCprunxuA5Fo5XphJF7k6X8mwhSQ2rWp9C3+C8eFKUHcPe0 o5hA== X-Gm-Message-State: AGRZ1gIYU82ECW7TrQTWifhHRsi/E5jRujrwgwFnPLEF5/I07E09LqbC UXzNhGCWx135wra1++zyUmMPww== X-Received: by 2002:a63:2356:: with SMTP id u22-v6mr7238665pgm.122.1541080614948; Thu, 01 Nov 2018 06:56:54 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([106.51.104.211]) by smtp.gmail.com with ESMTPSA id m18-v6sm39076169pfk.149.2018.11.01.06.56.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Nov 2018 06:56:54 -0700 (PDT) From: Firoz Khan To: Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.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 v1 1/4] xtensa: move SYS_XTENSA_* macros to non uapi header Date: Thu, 1 Nov 2018 19:26:18 +0530 Message-Id: <1541080581-4072-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541080581-4072-1-git-send-email-firoz.khan@linaro.org> References: <1541080581-4072-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 SYS_XTENSA_* macros used by sysxtensa syscall handlers 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 these macros in non uapi header file 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/xtensa/include/asm/unistd.h | 18 ++++++++++++++++++ arch/xtensa/include/uapi/asm/unistd.h | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) -- 1.9.1 diff --git a/arch/xtensa/include/asm/unistd.h b/arch/xtensa/include/asm/unistd.h index ed66db3..c73eca83 100644 --- a/arch/xtensa/include/asm/unistd.h +++ b/arch/xtensa/include/asm/unistd.h @@ -22,4 +22,22 @@ #define __IGNORE_vfork /* use clone */ #define __IGNORE_fadvise64 /* use fadvise64_64 */ +/* + * sysxtensa syscall handler + * + * int sysxtensa (SYS_XTENSA_ATOMIC_SET, ptr, val, unused); + * int sysxtensa (SYS_XTENSA_ATOMIC_ADD, ptr, val, unused); + * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val, unused); + * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval); + * a2 a6 a3 a4 a5 + */ + +#define SYS_XTENSA_RESERVED 0 /* don't use this */ +#define SYS_XTENSA_ATOMIC_SET 1 /* set variable */ +#define SYS_XTENSA_ATOMIC_EXG_ADD 2 /* exchange memory and add */ +#define SYS_XTENSA_ATOMIC_ADD 3 /* add to memory */ +#define SYS_XTENSA_ATOMIC_CMP_SWP 4 /* compare and swap */ + +#define SYS_XTENSA_COUNT 5 /* count */ + #endif /* _XTENSA_UNISTD_H */ diff --git a/arch/xtensa/include/uapi/asm/unistd.h b/arch/xtensa/include/uapi/asm/unistd.h index bc3f62d..c8ac79a 100644 --- a/arch/xtensa/include/uapi/asm/unistd.h +++ b/arch/xtensa/include/uapi/asm/unistd.h @@ -780,24 +780,6 @@ #define __NR_syscall_count 352 -/* - * sysxtensa syscall handler - * - * int sysxtensa (SYS_XTENSA_ATOMIC_SET, ptr, val, unused); - * int sysxtensa (SYS_XTENSA_ATOMIC_ADD, ptr, val, unused); - * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val, unused); - * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval); - * a2 a6 a3 a4 a5 - */ - -#define SYS_XTENSA_RESERVED 0 /* don't use this */ -#define SYS_XTENSA_ATOMIC_SET 1 /* set variable */ -#define SYS_XTENSA_ATOMIC_EXG_ADD 2 /* exchange memory and add */ -#define SYS_XTENSA_ATOMIC_ADD 3 /* add to memory */ -#define SYS_XTENSA_ATOMIC_CMP_SWP 4 /* compare and swap */ - -#define SYS_XTENSA_COUNT 5 /* count */ - #undef __SYSCALL #endif /* _UAPI_XTENSA_UNISTD_H */