From patchwork Wed Jan 2 15:12:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154657 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp278129ljp; Wed, 2 Jan 2019 07:12:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Fx09I7zOdJVXkgLqzdu0fQ7ZJBFUvvjlbvXj/0PZd7pJ+xsc3hXfgq5cdT25YUkLUagFS X-Received: by 2002:a63:66c6:: with SMTP id a189mr13898683pgc.167.1546441956091; Wed, 02 Jan 2019 07:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546441956; cv=none; d=google.com; s=arc-20160816; b=XRtDfvNsMWHfalALLg2Zqb9bImAt1QwJdajfOoIgySdBNIGECTCAYNz0d6JA5zle2W 5SVnGckiHu57YYo0NLiDYEC5iTxhhI8iePeRW6g8TrBk9ikdTF42XxojmvB7ZSsashQN dSaUmBuxojMqbj85mWKA4kbU0PbHJ7PhA3XOsrkvw5Vz3KuoTx0Q7gAzHekZzzkTKlqc 3Rsswe9RxTcnMkOaf2qd15Vv4vpZWUVegKq+psk0y6Zy5lLvcX14lCgNZtTpya4S9AaV TzGjskDei6R86NjRUSWNEBWZa5r+N3LVYQQPzBpQ3rnsgD2B8fV60QyhXl8pWM61MXHC Uu2A== 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=vQ8I21RoGZh51XjYrN7+ErT+m6l5lADjiriHH6YnHTE=; b=psjovzY6EKj2bgINyLH9OCvJuz1DFDSsgi0sU/HuCtuEwRjbE2/wbVh2cI+t03pvZb 5FfmoGh/iy2hx77eiO7dxNWm9IoMLcYzzQ1xMH3OV0JEfpY9dMK46xBvNHS8zbkei2Lf 1rDt6tQCiPLfPYmVxGEutwKK5iAjBimns54MBdRj00D/BT0JM1DeIdw1ad8LW47Nb9nR BJL/T7/ZGcrt6DTs0wv9Uyj9WwOBAm/GKcPGzcx6Nr3XfqssoZxXFMUYtIYi/+U5Q1kx iWlHQKL0z+fWY9fU0W+lVgtdcRSscygoX0k9f9/C9h997Ol86Wbz9elAAbcVRCdDSMVD Tm/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k1QYKTOq; 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 o11si4078729pll.160.2019.01.02.07.12.35; Wed, 02 Jan 2019 07:12:36 -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=k1QYKTOq; 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 S1730005AbfABPMf (ORCPT + 31 others); Wed, 2 Jan 2019 10:12:35 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43679 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729934AbfABPMe (ORCPT ); Wed, 2 Jan 2019 10:12:34 -0500 Received: by mail-pf1-f193.google.com with SMTP id w73so15286142pfk.10 for ; Wed, 02 Jan 2019 07:12:34 -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=vQ8I21RoGZh51XjYrN7+ErT+m6l5lADjiriHH6YnHTE=; b=k1QYKTOqYhjca+wchw6SKO6UREz9RYUYJLriIhrieMoz52z6U3hV8q9mZ470sLYafr EfaWiQAwBwZ13YeLzWQR2zrrddMAoaIHEiddFjkd7A6S72b4tVdf1LbOejxyiXJrqHYA EJxCM2VWE3BUIPwUl6Qg1DO4upU8uOHz4q/Co= 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=vQ8I21RoGZh51XjYrN7+ErT+m6l5lADjiriHH6YnHTE=; b=XqFJa6s71EuDMdEQd28NTe1pZRMAWYYkSjb/GHY4msRBDQu5waW3FbhN4w/LfOMueT 9kT5HI79DdpKQRdOLymTShAQ4rGWVtFcrzv1Rf1HZa1fNxKbjKeovVs8UhQ+QX2g5ndH F/Vg/J476NVpsOc9CHGDWSH5KXDiA+waXL5/fxNt4cynZ3uuijl2XEr1EBvjD1JsAF17 S4cFLp8QMIfFy+VNDRYOGQ2sf/1saZlPtd6tqcCnsleV+pmQGK2vb5SnSE7DBWGgYSjZ 6F/d4IFv9y3r9vOLOCBm3aDlpJUm8x50PLwMFsoOKa0nD7tbf+8uOjKYYUvUEEDHnlk2 vkng== X-Gm-Message-State: AJcUukeSzj9sFjsHbm/LYvVvpHFIv+R8VOb9TpYLzTfIitmh4ezZ9n41 548NPnlaKTYRCHeouMGGuoWx/Q== X-Received: by 2002:a63:2849:: with SMTP id o70mr13613339pgo.155.1546441953822; Wed, 02 Jan 2019 07:12:33 -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 125sm94973786pfd.124.2019.01.02.07.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jan 2019 07:12:33 -0800 (PST) From: Firoz Khan To: Michal Simek , 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] microblaze: remove nargs from __SYSCALL Date: Wed, 2 Jan 2019 20:42:03 +0530 Message-Id: <1546441924-20262-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546441924-20262-1-git-send-email-firoz.khan@linaro.org> References: <1546441924-20262-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/microblaze/kernel/syscall_table.S | 2 +- arch/microblaze/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 diff --git a/arch/microblaze/kernel/syscall_table.S b/arch/microblaze/kernel/syscall_table.S index ce00664..91ade44 100644 --- a/arch/microblaze/kernel/syscall_table.S +++ b/arch/microblaze/kernel/syscall_table.S @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#define __SYSCALL(nr, entry, nargs) .long entry +#define __SYSCALL(nr, entry) .long entry ENTRY(sys_call_table) #include #undef __SYSCALL diff --git a/arch/microblaze/kernel/syscalls/syscalltbl.sh b/arch/microblaze/kernel/syscalls/syscalltbl.sh index 85d78d9..904b8e6 100644 --- a/arch/microblaze/kernel/syscalls/syscalltbl.sh +++ b/arch/microblaze/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 | (