Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp468369imu; Wed, 2 Jan 2019 10:02:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ePut6iCG0Frp7ZtlJTpVyWi8mCwl5Ldo9EXX7vDGkBoW3BpC/G6SkA9fTY6jdEsan/Iyp X-Received: by 2002:a63:181c:: with SMTP id y28mr13915626pgl.75.1546452162803; Wed, 02 Jan 2019 10:02:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546452162; cv=none; d=google.com; s=arc-20160816; b=ywPq1zyKDoDWSA/0z6L8QyTC/60yJllc5VqgOkCrlgghR6/akOLPS/nj1CP/vTUJOm BtC5txx743iamcMRUoER/950IhKakRi2833etHkbg42dkSXLcTFow8GF37yi/fY7VE39 vFqMuH6lkdS/LR1EKZefX0xmM1JkIjvAnIsUB1c+9hSKrcisjW+xoNogq6CANEJ8pWH3 e/Un4dh/KisiW4kRxTlOujHwzrjvGg5ruMGne0rGCbQhIvfGEJWw/0OWOragw3HcFDod aKfkb4ndsmMr5d5fC2r9Uqwz1V9A8UVVRWq+QVGQJlXp9IfbPNQ/CV4SzT+4WOspBUCp foUA== 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=I/IdQ3gHuHewCarM4j7PXDdAi6DMpS4LLo+6L5+gcGs=; b=ro0tL6Gm6pKWqLhY6QdZOM47UoE69QgE3lX43OXlbtpcVgFSBqzBiP7WR6mxD+0qZd falcmCYjeQXF4H89KqPiwg9yxyuO3yqeP9bpu6cvZ5PwwH+/6f/bagWHgVT9/I4HQE6q ZW/HYZfd81Iq/h9/h/znV9GImCDrLc7m8zFc3hblPKLvbWZmtvHEU29jMbD0wn/CgAx3 Szvn5icRDV7d+d5FlPmmJWvdlIeQIBCnpNcCImp7vz3+F9lUOFSqY2RAUEfh5vaADqGS F3TVndipwH+3dIecIJWLgSrWlKNLhyahguH/5meFssDXCL0QmES4PaPhc+RpBhhwWiLo i8gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kDIa2pp8; 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 s5si12662428plr.211.2019.01.02.10.02.27; Wed, 02 Jan 2019 10:02:42 -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=kDIa2pp8; 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 S1730301AbfABQDC (ORCPT + 99 others); Wed, 2 Jan 2019 11:03:02 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38543 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729748AbfABQDC (ORCPT ); Wed, 2 Jan 2019 11:03:02 -0500 Received: by mail-pf1-f194.google.com with SMTP id q1so15349867pfi.5 for ; Wed, 02 Jan 2019 08:03:01 -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=I/IdQ3gHuHewCarM4j7PXDdAi6DMpS4LLo+6L5+gcGs=; b=kDIa2pp81CNW0gXQt57dWazhs3d141LdwbD5f1CWDE0R2Qmn2ENNlcuGkyBlkyN4CI wow7Ajc4B4/IeAroWARRpUY0y3mj9XTwBgjGgd26j0InpmJ9vxYnTfkrtXI12xJHXw9c EKyWZNE7iuH6RcU2nIgckgXN0Zdxo0Ab3ItmM= 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=I/IdQ3gHuHewCarM4j7PXDdAi6DMpS4LLo+6L5+gcGs=; b=a9wisP+yWOOLJlY7Ty6UHrPJfwp9v/Y9+8FPmHjbn/sqSrDAlbpYNt1dONqlTBleoG 5D5YRLB4cHElcnHiKOBESFbtY1h+WtlzT6syVUcNHs5SGpHrMGHlBvSlGlWeePZXJBwZ e17aDngRq737POevcPAaLiSURu/gvAFmCy00toGVUkKFDi5b9cNq5vvhffi/7rrGB72a vaRdDqdQ1rpB13WCx7px835V8ls5Px6O9XgRGgzFt0UlrANM44UqMZpGx47b1RSSeVnv yqALBTlSmAcG6+3ZjJL3ZtqXu9Of0d9vqx8Q6kOlQZVQ1CPBmsRXmf1ZYJSWFU3J+gy+ KKHw== X-Gm-Message-State: AA+aEWb/vhQN513IWGvDqHuqAlTn0Ra36lC8dr+pxgl8hSH8gTgBztvx mJhnJL5s+e6ReW5a7WlhThPTpA== X-Received: by 2002:a62:cf84:: with SMTP id b126mr44515975pfg.98.1546444980916; Wed, 02 Jan 2019 08:03:00 -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 s2sm104344924pfa.167.2019.01.02.08.02.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jan 2019 08:03:00 -0800 (PST) From: Firoz Khan To: "James E . J . Bottomley" , Helge Deller , John David Anglin , Matthew Wilcox , linux-parisc@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] parisc: remove nargs from __SYSCALL Date: Wed, 2 Jan 2019 21:32:32 +0530 Message-Id: <1546444953-21630-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546444953-21630-1-git-send-email-firoz.khan@linaro.org> References: <1546444953-21630-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/parisc/kernel/syscall.S | 2 +- arch/parisc/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index 4f77bd9..e843151 100644 --- a/arch/parisc/kernel/syscall.S +++ b/arch/parisc/kernel/syscall.S @@ -923,7 +923,7 @@ ENTRY(lws_table) END(lws_table) /* End of lws table */ -#define __SYSCALL(nr, entry, nargs) ASM_ULONG_INSN entry +#define __SYSCALL(nr, entry) ASM_ULONG_INSN entry .align 8 ENTRY(sys_call_table) .export sys_call_table,data diff --git a/arch/parisc/kernel/syscalls/syscalltbl.sh b/arch/parisc/kernel/syscalls/syscalltbl.sh index 45b5bae..f7393a7 100644 --- a/arch/parisc/kernel/syscalls/syscalltbl.sh +++ b/arch/parisc/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