From patchwork Wed Jan 2 15:22:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154663 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp288018ljp; Wed, 2 Jan 2019 07:23:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN66oDrL/klEBMfLvvZsV5eW/Xer2ZepjGPB7MiIATRvsj3d/y+0KqJb7vnZwFduaZ7ZMZnd X-Received: by 2002:a63:1321:: with SMTP id i33mr14064242pgl.380.1546442606462; Wed, 02 Jan 2019 07:23:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546442606; cv=none; d=google.com; s=arc-20160816; b=rkysNs8yzgLq8q9JGjFfnAVq0GR33/dd+c33TYlxzN239hpjbGwZg82AnQ8S1c77Qk g0DPUuov0rW5NiPqy/6d0+b1PKpvuoijDUJNkxsRo2rAF2flWwkCCr6RgrtsD0Y2Xc0d NlOR2vo6XdNac+aNFFFZ7f/zELmZ07eP3I1vz85mTuIxguYamJ6aPufBBc36u4mhZI4x iLgrgb6dALzNdMedtASgWlsKStbMnVX+1e5HE3Qxa3bAWP73hnqHgnVEcGgEdSg0U8eA PzINYdbOdzVRMuXc1RZEbqZHU/KYqPCLY1Oiw3UilsXp/wLjKBwE13kQIyLCHvx1pdGW ccSA== 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=mMRokCY/raY2LNrxQGirT+z5+67SxfwcWVjXUGq++20=; b=XRx8/XkF0hIgekD9I0rSy6/6I4Ekjpe//rNQyBWibPW3SrrxBU+ldAWJI98HOELDce +vHpQ/cjjFsBGrmeSXM6qRiwA90svcsu2fcSfkMkochSEWgoFgAeWtE8mr14o8ybMPj9 r7B+hZH5PBYezFSdScoUGmiofC7SfLFbE/shIhbKSIwIhQAsIHLgWihGKYtoVrkwCONW SuQmkiNQ83cNQimMJASzieqWjPDvDH0zGjbsZfbOGstmXczaFqPckDt6Yi05AYK92Oib ufAzwdSjoP0nLlPc+8cByNo1V8+LU72ppf6bvCtZiPlpaLy+DtU7LyCAoyEyu/3U99cD zg8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fk5JPnoa; 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 u27si4568341pfa.103.2019.01.02.07.23.26; Wed, 02 Jan 2019 07:23:26 -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=Fk5JPnoa; 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 S1730024AbfABPXY (ORCPT + 31 others); Wed, 2 Jan 2019 10:23:24 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40182 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbfABPXX (ORCPT ); Wed, 2 Jan 2019 10:23:23 -0500 Received: by mail-pg1-f193.google.com with SMTP id z10so14715598pgp.7 for ; Wed, 02 Jan 2019 07:23:22 -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=mMRokCY/raY2LNrxQGirT+z5+67SxfwcWVjXUGq++20=; b=Fk5JPnoa43ZAMOoROs3/MgOGEYdke+QfovbM6qLNS0ep4LXOLq75VCOpfQj+38JUei dbunkDECImjeKAS+4YNXOerk1qZvDgagMnjyaqvXYhAsPYLO5ZVTAqqhjJFOJ97rsxfq dnMfcfH5ERKK0NNokA5i8/KscYXKPsBhOshjE= 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=mMRokCY/raY2LNrxQGirT+z5+67SxfwcWVjXUGq++20=; b=ORw0xf+0qDcgZnrU6EfTrFmn95LZEY4o/TNVDyIGPmd91A5GbgDwHsMAk8qeV0P+oK dSeKBDtVtF5fQLDzfKrFFEeQekdx+/Kq2fNyyUhvlzG0rEJtw+zEOCj3nA49PcVRWPHK ie4PwpiZsPbOk+RR+vU/LyIgFs3Zqz+Gli0rgOoVj4nhAHV3HgAnhrEpLFjQbcD3J06M e3Tr9trpbf89Ds0AcccPNB7By1iaGX/nSw2SsySYufh8KuvgQD31Tvkc9qnwA+kEHth8 rdK9rwnwqrUgln4ToERnzmyIR6dbYw1atQGETLCTWFBEeWyWQd4+oSdImS8DC0Qq+hCq XtzA== X-Gm-Message-State: AJcUukdag5HvZkHstSwODfrpRDMKIP9KdDLoB4DFZvr/F8AQH2dWrKNf kXcqSRso9uO824Cfbfzb3z/dOQ== X-Received: by 2002:a63:a401:: with SMTP id c1mr13898268pgf.403.1546442602346; Wed, 02 Jan 2019 07:23:22 -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 m20sm67719647pgv.93.2019.01.02.07.23.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jan 2019 07:23:21 -0800 (PST) From: Firoz Khan To: Tony Luck , Fenghua Yu , linux-ia64@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] ia64: remove nargs from __SYSCALL Date: Wed, 2 Jan 2019 20:52:46 +0530 Message-Id: <1546442567-20637-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546442567-20637-1-git-send-email-firoz.khan@linaro.org> References: <1546442567-20637-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/ia64/kernel/entry.S | 2 +- arch/ia64/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 diff --git a/arch/ia64/kernel/entry.S b/arch/ia64/kernel/entry.S index a9992be..204b56d 100644 --- a/arch/ia64/kernel/entry.S +++ b/arch/ia64/kernel/entry.S @@ -1426,7 +1426,7 @@ END(ftrace_stub) #endif /* CONFIG_FUNCTION_TRACER */ -#define __SYSCALL(nr, entry, nargs) data8 entry +#define __SYSCALL(nr, entry) data8 entry .rodata .align 8 .globl sys_call_table diff --git a/arch/ia64/kernel/syscalls/syscalltbl.sh b/arch/ia64/kernel/syscalls/syscalltbl.sh index 85d78d9..904b8e6 100644 --- a/arch/ia64/kernel/syscalls/syscalltbl.sh +++ b/arch/ia64/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 | (