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: 10746521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65D466C2 for ; Wed, 2 Jan 2019 16:03:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55F5E28765 for ; Wed, 2 Jan 2019 16:03:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48D4328833; Wed, 2 Jan 2019 16:03:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D0C828765 for ; Wed, 2 Jan 2019 16:03:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730189AbfABQDB (ORCPT ); Wed, 2 Jan 2019 11:03:01 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37380 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729748AbfABQDB (ORCPT ); Wed, 2 Jan 2019 11:03:01 -0500 Received: by mail-pg1-f193.google.com with SMTP id c25so14764247pgb.4 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=ZWg+d7tzlQYHbfTPYoeL9v7YMrlZ52kEuujdCSmeS/ebJkQpokHPx5VqxXCXitf9Zk 0vHtGhIf+GJZkS9vYfVEADsxps5v5GSsZzY2xKt46pcGF1nFHkuFIL4i0WCqjaAAdsmy uwngyOv/nhKUoxFL2rCqeqOV6/5ndDOKuN3qo00IeVDDj2dxj55SVOMJ44olkY7fVIPV kcBTQ5xzpyXZ7z8fepwxR6iiNoDjN9fvz2Qax+nQRMrwbRMYKQzw60+bMJ7F4GxqS6tF gE8/n+XsWIljLLLkjvBHUj1uSGPDaMsnXCPH0n1d8V9FW9FQ9FLxkfcMCboUwe/jy0jU PIfw== X-Gm-Message-State: AA+aEWadtdv1YjQsTZNzT9NqNWAsvdyIAGMCU01PUo36ZI9CaWom5GS3 11fPU7e1GDuKCUjAiG1DYZiKhQ== X-Google-Smtp-Source: AFSGD/UfAvnR8CL/sapTTiTV+JIPvWB7eKPX+rSH2QQaXe97Xgya7Bk9sQ1C6grIFqrSvlvzFwREpg== 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-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | (