Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp406027imu; Wed, 2 Jan 2019 08:55:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/XdgZJRyPqpAdLR4yX6S8MDXlomDcKvTowfwGy8TAVCjBmKPBuotYp25rr4nwNk8w+wyUw0 X-Received: by 2002:a62:32c4:: with SMTP id y187mr46662354pfy.195.1546448150847; Wed, 02 Jan 2019 08:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546448150; cv=none; d=google.com; s=arc-20160816; b=Hv7yKsqer9y4M641jNBeQ5saM/Bf0ZYEObMV8/H1ya6JDnjFM5kM5r3r7st3NCZMn5 mB5bKlTRRmNn4ItlWYRiRG0e7tu/69eEOfXturQtUu96vds2PEom/p+ZzyGfEkc39vqG J+LFRhZaTBxRwWoU/k7Z2a1Beb3ahV8xMYB92fSvW4ksW37vvckZKSwaCODG7SIsyVGt +LzEl5GUaksrt31zFi1uVU1tzB0wJHgf7yVr7xSh2AbUjTIn4duvk/ZAbzLz0DnDdr04 78ut7sX2YFiyUNosTglrKH2omYN/dglzKAtacjyorYKMeXc74du9ShJdXwHChUvOUxEa USlw== 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 b5si3334602ple.387.2019.01.02.08.55.16; Wed, 02 Jan 2019 08:55:50 -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 S1730001AbfABPMf (ORCPT + 99 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(-) 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 | ( -- 1.9.1