Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4274232pxj; Tue, 25 May 2021 04:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUMlLRNMLZ1he64MHZ8d964NLTQiPM1NLRa2ZyH/GKDLV6HbfsWPL70Eccz9CtMJUaz2Kf X-Received: by 2002:a05:6402:5188:: with SMTP id q8mr8840075edd.166.1621941997913; Tue, 25 May 2021 04:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621941997; cv=none; d=google.com; s=arc-20160816; b=xU2Cr9mxmhSZVpTjt1Rxmqfh5UN17XPKjRdfi2oAH2uEH4ZBxDmyJsaWsqBb8pwAfs zkXAru1C1NcXth/EqfqrItSdzWK9ZMq4xWSCI7hVCtM0gkydc9XT9TbS0huKJd8jW/bM N9AYrDIu5zN1Q3rHYnkaqS+/K5WFziWhKrYlPLSoieqsjeSUTvu4lQlwbXOANjik0gna 62EddP1O8omaVer8VuVeJqPiWvzoJRBZm/QkIUVYGk9co78inG66siGTeJYWirpFNRir eM+JCFv5bDcUjYs8Kki8N3vbSI1Ft9dA/BOe7ixzBiVWW3ruTGL4IGhlvJvKRFy+VGCF OhBQ== 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:dkim-filter; bh=e3I5tcZjuWv588TkG9hTTFqte/LCOhraM5uF3Hlb/bo=; b=k8U61mOMQDH+Rv+99qkFk9dD5XVnw6CeyD8FiL6/xY2ZszIR6EPOd8/mxrl/jPucJy iKfvSYyhCiz08qV4eAB4VBaMDjPJAmfU27Gjn3In6XILmcj9iohMxlb/xfTqa1R7lSfp 1Kxhq8h+psn+tWGFUYWf8OGzuwyR9Ec6/sHD6YXOb/f0qT0i3IxgpZl27bc00WJdfCys +VtfKQ+PNW+CZYNvCk4oNX88Hm9SXjab5U3wbscFtr7SdtJDupQ6nPmvpDCkXaLbeH5B J9zwkLMCNvbQcGOGwbVRjWpJDZe+nPgqc65d/TWpeXIVG/UjeSEJjlx9MtKOtg+GSyye +WrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=kq5ZhWTJ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si15339422ejf.128.2021.05.25.04.26.13; Tue, 25 May 2021 04:26:37 -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=@nifty.com header.s=dec2015msa header.b=kq5ZhWTJ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230517AbhEYLYo (ORCPT + 99 others); Tue, 25 May 2021 07:24:44 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:20769 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbhEYLYo (ORCPT ); Tue, 25 May 2021 07:24:44 -0400 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 14PBMqPQ015643 for ; Tue, 25 May 2021 20:22:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 14PBMqPQ015643 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1621941773; bh=e3I5tcZjuWv588TkG9hTTFqte/LCOhraM5uF3Hlb/bo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kq5ZhWTJuF6r7/vvvJnir3exOAlse6bm6yWaKqa2YAfmlsePtHzQ5lvUhik+a+iaa XD2SEc5EfAKkl+8rErcG4CBge2OFMJ5FK3dho7JHm1wjawo1R9cS3eK7WYkUkaXCg6 M9BDks/LFDczZwby7+bJrMOnbo9w+Htjf2Zk+x0wm/zRQWLtSrTB+r1mTW4f0uWdbM xsYJyULh5JethO6O/Mn0ix0g9sFRiRjGIMLwZE8fkOk1K//Bp8Wsgifa5jkDBp/Aej vP9SQ8BNbzmgNc8C9GCcC9GTfFWsUHwpggyyilkF2hg+e0SLhFYcWScsbeenoog5C6 w/4pDwSzsTONQ== X-Nifty-SrcIP: [209.85.210.174] Received: by mail-pf1-f174.google.com with SMTP id f22so14989636pfn.0 for ; Tue, 25 May 2021 04:22:52 -0700 (PDT) X-Gm-Message-State: AOAM532E8p8G8ksjrrHibyvOKBLOA2OD8Hy+TIR2GaiGHZ7Oej3xVsd5 OMo6NjXFMbL0tau4hbmIZi+/LNl64/EP3v8UfjA= X-Received: by 2002:a63:a547:: with SMTP id r7mr18740751pgu.7.1621941770469; Tue, 25 May 2021 04:22:50 -0700 (PDT) MIME-Version: 1.0 References: <20210524181707.132844-1-brgerst@gmail.com> <20210524181707.132844-2-brgerst@gmail.com> In-Reply-To: <20210524181707.132844-2-brgerst@gmail.com> From: Masahiro Yamada Date: Tue, 25 May 2021 20:22:13 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers To: Brian Gerst Cc: Linux Kernel Mailing List , X86 ML , Andy Lutomirski , Borislav Petkov , Thomas Gleixner , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25, 2021 at 3:17 AM Brian Gerst wrote: > > Commit 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall") > removed the index from the initializers for native x86 syscall tables, but > missed the UML syscall tables. Ah, right. I missed cleaning up this in UML. Thanks. Reviewed-by: Masahiro Yamada > Signed-off-by: Brian Gerst > --- > arch/x86/um/sys_call_table_32.c | 2 +- > arch/x86/um/sys_call_table_64.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c > index f8323104e353..0575decb5e54 100644 > --- a/arch/x86/um/sys_call_table_32.c > +++ b/arch/x86/um/sys_call_table_32.c > @@ -31,7 +31,7 @@ > #include > > #undef __SYSCALL > -#define __SYSCALL(nr, sym) [ nr ] = sym, > +#define __SYSCALL(nr, sym) sym, > > extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long); > > diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c > index 5ed665dc785f..95725b5a41ac 100644 > --- a/arch/x86/um/sys_call_table_64.c > +++ b/arch/x86/um/sys_call_table_64.c > @@ -39,7 +39,7 @@ > #include > > #undef __SYSCALL > -#define __SYSCALL(nr, sym) [ nr ] = sym, > +#define __SYSCALL(nr, sym) sym, > > extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long); > > -- > 2.31.1 > -- Best Regards Masahiro Yamada