Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2684689pxf; Sun, 14 Mar 2021 08:11:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiDVve2FmJpXnY2frHcQ2rSR2qvOfyO8/PPU+WLychUtdMZK34TqxGPYfl8FYe3zkB+uLe X-Received: by 2002:a17:906:c051:: with SMTP id bm17mr18604654ejb.21.1615734683850; Sun, 14 Mar 2021 08:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615734683; cv=none; d=google.com; s=arc-20160816; b=GdYAUSncC9qirmwi/7r8GazD/EhSbLn7vAf62sXPExyyfc/9LuvODsLl0H6uiIwe2v lPGvSEZwvzrj89VrHLKSYJ8d6x815KdYVpEbWC2Oss6Cvk426tkuvz/LXQ7IBlETTEnF pHx8oFghrT3xDxraoogY/iBvMT4anE9uZZo8T+whRE4an7/TA0GkH3upgDS3leG8X8aw YnDxZyjM15fgx6pHgUYcZ8HOwXmPBLPKbblrmmoZqB6+BzDXDsdOBOQD5tXCSh2zlEer VLB4c4In+aqoXkqbiduYQZ2qxLrLLjsDa/15AiglYvxWPxRFZP2AoE4TwrPfpmKwAM/w wGEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KfDq+xbpQTSxBagga+kuMHQuw6M5WXdS6DbeFFRtt9c=; b=zq+8GhhKQ9Ebgi+DUr5k/tDedNA4sPebQaCUWJfCOUYToUZOAw/ugJ+NjpYFjUsGiU TvuY5uZGf/QjCDGehgb0ihF9N9D8LY/Fv/XmkmHZ5JzBiSqT2DSrfySv1hkDwepAu3xr AQl7P3eSCPKugMTHHcB2rInZDByVsvnE624L6cu3BRVwRB9KLO+EntJEaToQQbG8dPNq Nm4MemSW0A5C9qo9+CW+rZxI5ZQ6V8+SueYCnVsNSLo+gfNR1J40XN5HWbf86UVMEBPq UOpPfZOKGIsbMeuPqgnl1SCnWSwdz7v8Y1Ls+yIm6zuxBYR8fJg90iTPKYaBs/G4KBXs C2Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FQhyGsAK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si1671492ejx.700.2021.03.14.08.11.01; Sun, 14 Mar 2021 08:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FQhyGsAK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232864AbhCNPKF (ORCPT + 99 others); Sun, 14 Mar 2021 11:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhCNPJb (ORCPT ); Sun, 14 Mar 2021 11:09:31 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 043F8C061574 for ; Sun, 14 Mar 2021 08:09:31 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id mm21so62013830ejb.12 for ; Sun, 14 Mar 2021 08:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KfDq+xbpQTSxBagga+kuMHQuw6M5WXdS6DbeFFRtt9c=; b=FQhyGsAK4SFajSgHlzfV9CAyyxvCAW4V1dsdO30YZyFHlw/yct1W5z/p1MBkNvrxAZ NNB5Bj9mysZyufHgin0lh+0P75dpsKxS1/YqqS5evVdE1Uy27VZ98KnlsOkVpFKESzPm gIG+xAWs+8coznHKd4t/bOXjQMBJGiaG4vUzsg0EpEYJW8T3GNqr6sWtdb0bkDwEiTUX BYzDrVzcCWsc49PTzO1JKrivqoMGzdtG7NB8WatynCVA+rcEwMIbu56jgoi1ZLszpry4 WApMfLDumbtWpwMgcgauba5BJiklW4t3uf0GWyNFi92Z0eCcHim6iick4bZLyT6bjYRU RreA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KfDq+xbpQTSxBagga+kuMHQuw6M5WXdS6DbeFFRtt9c=; b=rH2kQ2BYp+wTEvHGS1dHTkfUfz3IxkiJkQLGJJaG2KLOiMynUgOnlfnUieDLNl70v1 Q/zaSRuX1vWd2yLIFQRQ/fBYQ9q/o5py3b4OZbg2WAKaeV05IY4FBLkb2xRpm76RXwKv AXPUelShmneMuJHF4OyfthfI74d+iggt4OKZF73GlBqK6oXq2EFpofDI9xKg3un6q2jO criDjLrK+15Qwi7oMTaN6oTfXsv9tEmgBRBcyA+5Hgq9eVJzN14kT5rtHh3gSREkFPq7 /UIvSiwDU7eSHbAVG2wGILft16NEEfC5AUxRPGVo8aXtQF/NeWi/4XoT4lThcpCzGnge NBfA== X-Gm-Message-State: AOAM532l9buKXucpsHJucrpDr/z1zOPS+HiiisRPgbde8BrArx17xa7r qVIAZMTx2Sr5Vd3ubLwlDzw5C0xEBGQk+f7BkDA8FpfQ X-Received: by 2002:a17:906:30da:: with SMTP id b26mr18950811ejb.376.1615734569776; Sun, 14 Mar 2021 08:09:29 -0700 (PDT) MIME-Version: 1.0 References: <20210301153656.363839-1-masahiroy@kernel.org> In-Reply-To: <20210301153656.363839-1-masahiroy@kernel.org> From: Max Filippov Date: Sun, 14 Mar 2021 08:09:18 -0700 Message-ID: Subject: Re: [PATCH 1/3] xtensa: stop filling syscall array with sys_ni_syscall To: Masahiro Yamada Cc: Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 1, 2021 at 7:37 AM Masahiro Yamada wrote: > > arch/xtensa/kernel/syscalls/syscalltbl.sh fills missing syscall numbers > with sys_ni_syscall. > > So, the generated arch/xtensa/include/generated/asm/syscall_table.h > has no hole. > > Hence, the line: > > [0 ... __NR_syscalls - 1] = (syscall_t)&sys_ni_syscall, > > is meaningless. > > The number of generated __SYSCALL() macros is the same as __NR_syscalls > (this is 442 as of v5.11). > > Hence, the array size, [__NR_syscalls] is unneeded. > > The designated initializer, '[nr] =', is also unneeded. > > This file does not need to know __NR_syscalls. Drop the unneeded > include directive. > > Signed-off-by: Masahiro Yamada > --- > > arch/xtensa/kernel/syscall.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) Thanks. I've applied the whole series to my xtensa tree. -- Thanks. -- Max