Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4298136pxj; Wed, 12 May 2021 02:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+/mUdW3UFU5K0Ppk91xALrDOGSSZWKgx5NbEiCT7KZeYZLKV92hvI4BzH5AHvn8PrjKS2 X-Received: by 2002:a6b:690c:: with SMTP id e12mr25843877ioc.69.1620811579283; Wed, 12 May 2021 02:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620811579; cv=none; d=google.com; s=arc-20160816; b=1GSNUu8iHuODFLrjZTHfJflDz3YDYW6EtEF1gQKjBq4VshUt+wFdwAOe6VdDdPvZZf c64eObTarE6ZJx0AHeuLK0SyBQY1NJzchMAmWBcEq189jRWud1EEW3AqXW0hBIJhEu6U 1qM1FuXF0VkSKdHJgO9cZjndKlUjlkyTZYoFNU51gI5WngDOkU1VH4Wpo5zr9HrUwQAE Lo8ehTdArBydHgskgdpCKY9p6mEwa+arXxuwrWbv3pPMQsExpPvx3kpaSKo7rBfcfP38 It1rXlrjjr1KeGR++mjnz60BOsKYhZbSlOYgkpmoLa5tlz1dP4v3YQ8KmI0969u6xUL7 EvlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=U73vDTtSOm+Ipy96hwjnKSSfD3f6/Ro8KWHjqbgGBpc=; b=npiiH8+AFkheUa3ajn+hAP2a/IHTZ+7I09/hz4NACqIbsesM2f9ktfEIRRmhtOzaz7 wo+E0PEvfVuUP5DZEtXZBdAF06WXIxCVIosiNQ10fJFXfhhY9bdkJE3TkhWeWwL/PYer Hg8hZWkWzTTWccYz0F0YlFR9gBEbIowwNSmlkTqjh5B6qtftOI2a1y/Gcr/8Uobn4oxp 1O/B6aQYCftbo8U2tg3KqErGk/68uS9L/CxMRKlFbQtWvXslMkXbzeHyEjMxJckZeY0K hcaqcCgnzZwrYi+SJhqYnBZA6KVL7buHn2sX8b1xMOfWDm1GEJthDs7wUeXHXgXOOXPj mX3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qSI9Ka2O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WtP7+6A4; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si22561855jao.87.2021.05.12.02.26.06; Wed, 12 May 2021 02:26:19 -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=@linutronix.de header.s=2020 header.b=qSI9Ka2O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WtP7+6A4; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbhELJZA (ORCPT + 99 others); Wed, 12 May 2021 05:25:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbhELJYn (ORCPT ); Wed, 12 May 2021 05:24:43 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197C5C061574; Wed, 12 May 2021 02:23:35 -0700 (PDT) Date: Wed, 12 May 2021 09:23:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620811413; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U73vDTtSOm+Ipy96hwjnKSSfD3f6/Ro8KWHjqbgGBpc=; b=qSI9Ka2OX/vTvhPGnxkh1cDW3t/zCjTqA7NyBQSJFfAfbZVu+bjWYlzes3d8dXPFC8Sw3B uoPS0CvyT/OZDh6zPnrcfV/b+35vuit+hGrZUT8ukS97xQRwN7C71up+LxrediM5l4pHgN lusdB8djjx7WRLtCU78rPpK4yPtpLXy3vnfDVY1ZWkHm4zo36yiD1rTROdz2qBBlS/H8Bk +QuPVH6oFkTfGk6bcqgage2v17Kzou4OSulgfjMV1GeMDHgwnFHwbtJ1jXnJaXHeBJgpBm +sicOjtdeYkcTXoXEGCZpgbOj5vzKAJ9CldImeIEeD0FoNte006IfA5njL5XIg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620811413; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U73vDTtSOm+Ipy96hwjnKSSfD3f6/Ro8KWHjqbgGBpc=; b=WtP7+6A4a3aSRgrCZRYvJGPVo+7ssmxmR1FsHZ/34YXon8L0W8rcZNEqB/OdWIMQC4Vq4G B2M8YnrYHqBlz+AQ== From: "tip-bot2 for H. Peter Anvin (Intel)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/asm] x86/syscall: Unconditionally prototype {ia32,x32}_sys_call_table[] Cc: "H. Peter Anvin (Intel)" , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210510185316.3307264-4-hpa@zytor.com> References: <20210510185316.3307264-4-hpa@zytor.com> MIME-Version: 1.0 Message-ID: <162081141303.29796.12436833692837564048.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/asm branch of tip: Commit-ID: dce0aa3b2ef28900cc4c779c59a870f1b4bdadee Gitweb: https://git.kernel.org/tip/dce0aa3b2ef28900cc4c779c59a870f1b4bdadee Author: H. Peter Anvin (Intel) AuthorDate: Mon, 10 May 2021 11:53:12 -07:00 Committer: Ingo Molnar CommitterDate: Wed, 12 May 2021 10:49:15 +02:00 x86/syscall: Unconditionally prototype {ia32,x32}_sys_call_table[] Even if these APIs are disabled, and the arrays therefore do not exist, having the prototypes allows us to use IS_ENABLED() rather than using #ifdefs. If something ends up trying to actually *use* these arrays a linker error will ensue. Signed-off-by: H. Peter Anvin (Intel) Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210510185316.3307264-4-hpa@zytor.com --- arch/x86/include/asm/syscall.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index 4e20054..f6593ca 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -21,13 +21,12 @@ extern const sys_call_ptr_t sys_call_table[]; #if defined(CONFIG_X86_32) #define ia32_sys_call_table sys_call_table -#endif - -#if defined(CONFIG_IA32_EMULATION) +#else +/* + * These may not exist, but still put the prototypes in so we + * can use IS_ENABLED(). + */ extern const sys_call_ptr_t ia32_sys_call_table[]; -#endif - -#ifdef CONFIG_X86_X32_ABI extern const sys_call_ptr_t x32_sys_call_table[]; #endif