From patchwork Wed Jan 2 15:02:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 154651 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp267375ljp; Wed, 2 Jan 2019 07:02:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN63ugHD9PxrKGCZdCl9ggLw/FpbTldmu80JD2LWZPiNVN17rlWOhc3LHAXdPtvc9Rz44Gua X-Received: by 2002:a17:902:d891:: with SMTP id b17mr44396152plz.80.1546441364390; Wed, 02 Jan 2019 07:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546441364; cv=none; d=google.com; s=arc-20160816; b=XgFBJPZS0q380phe02p5sJX2yEXUpvEmeHpxPB/VdgvxkyYl8BPAyi5pxd+jSSYJnE P8Rc3IwKY8gIcOd5PRWpEqILdHGJc8fhhr4l9NkJk5+4YEG4cJsuCjO54mCr8I28NYnd 6lrN4Yz+ZvsPBmKzoAmL3sPqGTaj1vJ/IyCobllGoT7iOoqCfBxY60+Md1y3ALRaCm5k o8fBcs6E/QabJlP6rHiChEkZku7sdKSRXG9hP7jJOag6ZgbdUvSEf02v4TD7A64gGUvo EOFmxrbS7HdaUmO0GVBxE0pLjlE0TDKdWv1HnLoJQgnHoHzHt4GAzFAHWpBwKqyiJ5kc cMzw== 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=Eat+r8u+VqdJ2gf8pt6fPlnDCgZGxQ4z1YhcFJx2Y5c=; b=x9NiGorpnYefYDcreoc70RWPNRJPt+rl9hgEEXW0GkOlCSxCFtTC/ovvfJgz8zJxTa 9jVaKLgIFQkCflYeae2Qcll6xaYGrjlDhGqEI4GU/rO3k3nLEaPrzjSKvCOiF5rPakkl v7aZros560FSbun0oxCdigQ6gSG7nfJj9qcOKZ2D7d2s+IAc7GbZolADWjCI+A+0gQgi DTRm64R77kt9ceFJIoV1aEOP0+j1ZjrmpHUBi/4WDqkFf7GRH5X4CHuJVifkUcuiLnEo 7eVdDhpzkbIwbept2BOWXmwmb3RYZDWnJD/6T5LjvQGIwk7ymiY8AzMt3BOpp/MVlNIp opZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A6LL0kNT; 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 o6si709508plh.23.2019.01.02.07.02.43; Wed, 02 Jan 2019 07:02:44 -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=A6LL0kNT; 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 S1729777AbfABPCl (ORCPT + 31 others); Wed, 2 Jan 2019 10:02:41 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36852 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729209AbfABPCi (ORCPT ); Wed, 2 Jan 2019 10:02:38 -0500 Received: by mail-pg1-f195.google.com with SMTP id n2so14701179pgm.3 for ; Wed, 02 Jan 2019 07:02:38 -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=Eat+r8u+VqdJ2gf8pt6fPlnDCgZGxQ4z1YhcFJx2Y5c=; b=A6LL0kNTDc7uhzjcydJoLkqNPWL78vHJ5FoZjsqcv2yeaXsxbH2Ha9pQD2DDJA5sxG qxEDwJQjV+Ot4GztgC7y0fOfNyBeaOsCFA1EOCB4jLdQ1xkY558yH5Y9wHTFc1xjBIWD 3tH4tngZEqEy8CID71SG6KnvwuIBKOwl9Zg5g= 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=Eat+r8u+VqdJ2gf8pt6fPlnDCgZGxQ4z1YhcFJx2Y5c=; b=iz3LRYZUdirCNr8At6lmJLxgO9JAJnxCCjDcETupstJaJ4lYnHUcUEc4x9WiREocPz s41KZR1YmFd1Emg8V0PM+mZYMM4P/gXB+tUFMv5uKt3Ng1Q+LDhMVGav8pMl0OC3Ayhk jjcmw5+Uc1Veo4DmO+gi68u+4dhCWveawWi7wjSUGB2g25A0h9iIHMMZwf+b2Az6203S Kc+pBn6uNxmVh5szWIrcJTl8GjQ9KBPQjfc8Oly5ZyiIRYxuTZoxda6B4CMW9CuzzxsN OibvkTjjI8X1hirdrDRoSucyqq3aMZEyyVuanRXqk4YD00/zWw0dd6C7G1MK41+RUcfl bLVQ== X-Gm-Message-State: AJcUukduzUaz0WbVzh+X9KIi3uIcLHMn8XaDuXEmyuJxnC7Xg726esej ggZsLbZZLzsmeN6ClXMfGjZnyA== X-Received: by 2002:a63:9a09:: with SMTP id o9mr13295542pge.94.1546441358109; Wed, 02 Jan 2019 07:02:38 -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 z14sm66180213pgv.47.2019.01.02.07.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jan 2019 07:02:37 -0800 (PST) From: Firoz Khan To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Al Viro , linuxppc-dev@lists.ozlabs.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] powerpc: remove nargs from __SYSCALL Date: Wed, 2 Jan 2019 20:32:03 +0530 Message-Id: <1546441324-19774-2-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546441324-19774-1-git-send-email-firoz.khan@linaro.org> References: <1546441324-19774-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/powerpc/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/powerpc/kernel/systbl.S | 6 +++--- arch/powerpc/platforms/cell/spu_callbacks.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) -- 1.9.1 diff --git a/arch/powerpc/kernel/syscalls/syscalltbl.sh b/arch/powerpc/kernel/syscalls/syscalltbl.sh index fd62049..f7393a7 100644 --- a/arch/powerpc/kernel/syscalls/syscalltbl.sh +++ b/arch/powerpc/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 | ( diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S index 23265a2..02f28fa 100644 --- a/arch/powerpc/kernel/systbl.S +++ b/arch/powerpc/kernel/systbl.S @@ -25,11 +25,11 @@ .globl sys_call_table sys_call_table: #ifdef CONFIG_PPC64 -#define __SYSCALL(nr, entry, nargs) .8byte DOTSYM(entry) +#define __SYSCALL(nr, entry) .8byte DOTSYM(entry) #include #undef __SYSCALL #else -#define __SYSCALL(nr, entry, nargs) .long entry +#define __SYSCALL(nr, entry) .long entry #include #undef __SYSCALL #endif @@ -38,7 +38,7 @@ sys_call_table: .globl compat_sys_call_table compat_sys_call_table: #define compat_sys_sigsuspend sys_sigsuspend -#define __SYSCALL(nr, entry, nargs) .8byte DOTSYM(entry) +#define __SYSCALL(nr, entry) .8byte DOTSYM(entry) #include #undef __SYSCALL #endif diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c index 125f2a5..b5f35cb 100644 --- a/arch/powerpc/platforms/cell/spu_callbacks.c +++ b/arch/powerpc/platforms/cell/spu_callbacks.c @@ -34,7 +34,7 @@ */ static void *spu_syscall_table[] = { -#define __SYSCALL(nr, entry, nargs) entry, +#define __SYSCALL(nr, entry) entry, #include #undef __SYSCALL };