From patchwork Wed Jan 2 16:02:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154676 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp322059ljp; Wed, 2 Jan 2019 08:03:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN60Rq0XEghtK7ur0if0tXbqWGbBDUKZdW/pDEMgQDSzhbxsYbcmgF27uEVwUE+deKarXUYW X-Received: by 2002:a17:902:6f09:: with SMTP id w9mr44908596plk.309.1546444984424; Wed, 02 Jan 2019 08:03:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546444984; cv=none; d=google.com; s=arc-20160816; b=quyP7tj0y/IEEDG49FNkLscIIhQsUttHzjnzmXlINT6OL5DnuP+Ek64B+pZ2gQjOc+ n4j81PPmo/6WAxN2uua7VfrdzYLftYZQl1KFifYaV0CWqCvnfokRX9+F27KgFIeVQfx0 JBwrwMhXW7bWqa7EVF2dwcK9pCxJPJrRd8MdT9tYCgT7U6Mhy9D7vbHoMsKni8pRlN1b kUQOxNpqt/fJbFxx4rk4bbPJ4sSWTZ8fej3Rr/XD5ghl99Ac4t9lYtwONBsmzCAn1Osd H/rf11hGk7/H7WlV5z4I10yoMVFE0Mkj7rd06BSWWdDT3UU4AQ2+btrlF8FS7dxi4GEq w1ZA== 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 t4si9238745pgb.97.2019.01.02.08.03.04; Wed, 02 Jan 2019 08:03:04 -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 S1730320AbfABQDD (ORCPT + 31 others); Wed, 2 Jan 2019 11:03:03 -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(-) -- 1.9.1 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 | (