From patchwork Wed Jan 2 15:37:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154669 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp300281ljp; Wed, 2 Jan 2019 07:37:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN4QdpybAri8WlzROrkVM8BiXVOy4aTkjE8UY8UOgnwg3NSADXkHoXWjCTfR924ekPvfZoiW X-Received: by 2002:a63:e545:: with SMTP id z5mr13918007pgj.195.1546443478518; Wed, 02 Jan 2019 07:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546443478; cv=none; d=google.com; s=arc-20160816; b=cy15ciU1gmQQ3mdOgE4OrgqSb0DxbuemPYCq/j2c/JMwAiSVHys5Rirw7y0ionBFNi r48n8KlxSjxIPuxofrP0OymDay+LXXN9DQESY9MykRBkc05MJ5iKi2ggEYAVDpjFjZV9 uf9fccgk+3huCo1gMVn+Ca2oEzDkBGhBKPx5uz57kew1/Cd2f4u2YcEC5/qcA0cm5szA ufg2Gc5A74xl1SzV5kKDJIg+TGW4yVUVeitekQe7SHdvHsU6gH2pi3cEGG1s/ZJM5Sde cazS60N7vBo6yMd98Wf/t+VIjT5sNpMyG6rbLSVrI1vo6lfRko6+ihg39s5pzN9uNZ8C IU2g== 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=/Ij7bAJQ/5U9CidgRZ/FZU6EPo0eyUndCePkw9f7Oic=; b=wBIA6TTUB2GEeaeRc8kzOCOIOyBNJZ+aaokeQnvOCT31vMmozyLrChfkCYMZL+xnlS N8xOmdVfcqzkyBMp6UYbkPtL2sfgRksZg8bEDDorWuZyBm+jBbBYYJ379uOO0OwdIDhu 4rQKLQc4LQtLePu0a0LukoyMGD+8kXHEMKJmHPcx5GxzY4wlvSZc0hidyyImQIduHHO6 CQkdlW8cMVC20Hi/P9+SKn0DwdzxgYauK5/USGVQvdr98UdQ8qxiy8hWipuozuPfr8EE AxoBhH6GF3CZGx3wkH9zDDAZqfFllCWa1XYmX1TCOftWldBNtYMd6q5ilCQk6wqwivZB UqhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=axAiRYUa; 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 k12si48485914pgg.382.2019.01.02.07.37.58; Wed, 02 Jan 2019 07:37:58 -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=axAiRYUa; 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 S1730189AbfABPh4 (ORCPT + 31 others); Wed, 2 Jan 2019 10:37:56 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40870 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729294AbfABPhx (ORCPT ); Wed, 2 Jan 2019 10:37:53 -0500 Received: by mail-pf1-f196.google.com with SMTP id i12so15327201pfo.7 for ; Wed, 02 Jan 2019 07:37:53 -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=/Ij7bAJQ/5U9CidgRZ/FZU6EPo0eyUndCePkw9f7Oic=; b=axAiRYUaWlFs9Ldz2bFMrPP4FLLjPrRmq4si8No7x9W/9eEy2oEV/e2Pi5Lh/sZwGu GRL3G+leSm3ZUW/6Bnl9AaD6N0UjU4DRWcO6aQFDWgtO2Cqfetjuv7QMw/SlTqrCCn2W QcCZujtCXMQ+4pvjrLP0NkgUmDWMi3ZjFpXMU= 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=/Ij7bAJQ/5U9CidgRZ/FZU6EPo0eyUndCePkw9f7Oic=; b=Pgu4ntEX0fvXxLFZDt6Nb+J6DC19YcmhznCfG6dLuVzZbOvnDTgy0VGpJpRNMR+Y+N dHAb6+47ACLu0a8DRxElp2J7UbDZfKA10cvmBtFmz6uP7WU+S8gYxFTF3K3+DvqF91sC vKtY7+ea7+tZ+g0Ns9xYtnWs32uq+7bkwyWDyeDjEwbdTL6CEBMgyYtB2aqFKmOmJkfH AQb9OvygBnUGnw/SnYRRvkg2Pgbg67fLM5/A2p2K+p15ErBeeEzSDka8+0aOLkFqOtfw krEmSBmEfyC0hvoLy77mO0+TCmOvS0SJ8wCGhZ1L9r54HQySDgyasxxEY0xcR782oV9n BZjQ== X-Gm-Message-State: AA+aEWbBfd+sLBunIlkMghKxP+D7KFDL/1TTAIfpdonLfsDzXh82G0AC rJr9CVz3MlmCmJtq6T0VDbt8LjzHNiI= X-Received: by 2002:a62:6385:: with SMTP id x127mr45464796pfb.15.1546443472677; Wed, 02 Jan 2019 07:37:52 -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 c4sm108500721pfm.151.2019.01.02.07.37.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jan 2019 07:37:52 -0800 (PST) From: Firoz Khan To: Yoshinori Sato , Rich Felker , Andrew Morton , Simon Horman , Kuninori Morimoto , linux-sh@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/2] sh: remove nargs from __SYSCALL Date: Wed, 2 Jan 2019 21:07:24 +0530 Message-Id: <1546443445-21075-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546443445-21075-1-git-send-email-firoz.khan@linaro.org> References: <1546443445-21075-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 The __SYSCALL macro's arguments are system call number, system call entry name and number of arguments for the system call. Argument- nargs in __SYSCALL(nr, entry, nargs) is neither calculated nor used anywhere. So it would be better to keep the implementaion as __SYSCALL(nr, entry). This will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/sh/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/sh/kernel/syscalls_32.S | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 diff --git a/arch/sh/kernel/syscalls/syscalltbl.sh b/arch/sh/kernel/syscalls/syscalltbl.sh index 85d78d9..904b8e6 100644 --- a/arch/sh/kernel/syscalls/syscalltbl.sh +++ b/arch/sh/kernel/syscalls/syscalltbl.sh @@ -13,10 +13,10 @@ emit() { t_entry="$3" while [ $t_nxt -lt $t_nr ]; do - printf "__SYSCALL(%s, sys_ni_syscall, )\n" "${t_nxt}" + printf "__SYSCALL(%s,sys_ni_syscall)\n" "${t_nxt}" t_nxt=$((t_nxt+1)) done - printf "__SYSCALL(%s, %s, )\n" "${t_nxt}" "${t_entry}" + printf "__SYSCALL(%s,%s)\n" "${t_nxt}" "${t_entry}" } grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S index 96e9c54..bd1a9c5 100644 --- a/arch/sh/kernel/syscalls_32.S +++ b/arch/sh/kernel/syscalls_32.S @@ -10,7 +10,7 @@ #include #include -#define __SYSCALL(nr, entry, nargs) .long entry +#define __SYSCALL(nr, entry) .long entry .data ENTRY(sys_call_table) #include