Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3643884pxj; Mon, 24 May 2021 11:18:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5h8SZyUpCJzKBeHPNJWXIbLfzLimP6Q8VB8a1LFm3Lndtt7uDS+1UYZAAreygUOfljfAp X-Received: by 2002:a92:c5b4:: with SMTP id r20mr2809732ilt.200.1621880314391; Mon, 24 May 2021 11:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621880314; cv=none; d=google.com; s=arc-20160816; b=lGXFZBTJsj9pjs/sonbUTGtN9eg5sK36vxLoVSkuj4DUSsBuINThAfgAwyVjlF2JwU VEMiR4kvaY6zqgRBlWBFd/NT9wPtWcSYMfR4VMhUO9YafqSzLnsXxc+VF5sj5E2hMT/h cSRCRKz2Uiy92NfuLcMCPkZlFP1TaWwEJWMDmmFmRIuV/DOCRBc94wqJPf5u1/DUk7sg R4cO2RC1cTXtzYLKB+nQA1ADys9JyKWgAhJ3zwb7sjdd0IKqjEpM+050BU/UYAsxExyD mxvCqEm4esIS2WXr+ksWP9gRqsib8uKWr0XYPxVsHr3PNEkDeSynNjKYjhe6EskI338r pomA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dUCACciykxuV53qIcn78Bgnehe/pz3xzFnGYcgXVfoA=; b=toEOodvwpfIWwVjLhWpsuv5aJy+x0dUuqL2Oe+edP9gt+qFZlHaeLuHy1aduQOgnOl Avl2sMhVN7EEDp77+jNXwAPxqAPYvwSzaGVQoYVNunnrs2dSIlf54cY59nHmM7ah2DLj p7sPtYJR6DBPZerth29QTWLa/91hETPIMpMS4qyG3fymL1qgJT2PJ9ol+zXnY5bGLWq+ JI8TJA9fmakB1weH//Hzl18B6OBZTOxYuUntMIE7+ynP3DTuWFJJaTk4qXe9pPHrftpu +jYEoS0opdeUQ25vF5aLueoX0pFJfUZEdXQEslZc0CEjMEE+2/r9HieGfe0bc0mW5DFr d48g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V5Zq2iJd; 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 5si17321573ilx.117.2021.05.24.11.18.19; Mon, 24 May 2021 11:18:34 -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=V5Zq2iJd; 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 S233787AbhEXSSz (ORCPT + 99 others); Mon, 24 May 2021 14:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbhEXSSx (ORCPT ); Mon, 24 May 2021 14:18:53 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6233C061756 for ; Mon, 24 May 2021 11:17:23 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id e10so24159020ilu.11 for ; Mon, 24 May 2021 11:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dUCACciykxuV53qIcn78Bgnehe/pz3xzFnGYcgXVfoA=; b=V5Zq2iJdpzuKn3IEmDentdAI9kOub3dTCx12b+p8Q0TwGtGCXavbjx+pcbH2WvWcLU Ydae5emhVO5h5iO2jyDk6aMhZLui32Ys1h4IySOFgH606SigMsI4zVaCF+HAz2RlW+Aa QFi+JzlutWqGM3fMTRHaMJREkSy+JRJ+cEDpV5y59JM4dnTU72jDq3XXc8UEB2fr1z0B EsmmG5Pyg0GGXWx63MC0fK6XOsojhgBHhCHAEYcrUh8uYlCuPHjYTEjlLEyOuL1OwDgG E9jhysfyKXvvkRtpqXw+DmRnL5XiI41vNPuODXpV4bLXPXZhJWST5+Y59UVLmXrGXQXZ ed7w== 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:mime-version:content-transfer-encoding; bh=dUCACciykxuV53qIcn78Bgnehe/pz3xzFnGYcgXVfoA=; b=RGy9rvMIXQHM6WeM1XgjDQDXbwU/UgrPhUOPH2enNh2daZ74xX0/GlKSsoJAFtlF7C QJB62WBmoBe4YTEw/EZEk5rJ+R4Uj5xPwpXQgEG8zjfIA/Y57yzjTbvPzcEroO5y2WyF 1qytaJNoW0a1NmZNZnP4jMK2Dp+XpTYJiZxEBev7e5zezuVkM2wtlyPz6OJebt2BrPDI 6c7mPYTgjOkb8leWq4M5wb/9cKZRtWBPG5YrWu7slFPsRZEPwlwZyX18oDXYK1adCILv aELWGPJR6ceQG4zOPMuQ0xJUMDCjl0MyXVSY13acIoh2f2sq5S8BXLLvi/39i5rdnt/t Lk2A== X-Gm-Message-State: AOAM5307/vXkXSJsLE6aWKBaNDSVeSOITQWAg8+N37iyY+KO/KSgWWTM bGI07rJtO9SysNfTUCFrd2nr7QaOcg== X-Received: by 2002:a92:c56a:: with SMTP id b10mr15218039ilj.17.1621880243221; Mon, 24 May 2021 11:17:23 -0700 (PDT) Received: from citadel.. (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id p5sm11863673ilg.33.2021.05.24.11.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 11:17:23 -0700 (PDT) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Andy Lutomirski , Borislav Petkov , Thomas Gleixner , Peter Zijlstra , Masahiro Yamada , Brian Gerst Subject: [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Date: Mon, 24 May 2021 14:17:05 -0400 Message-Id: <20210524181707.132844-2-brgerst@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524181707.132844-1-brgerst@gmail.com> References: <20210524181707.132844-1-brgerst@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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