Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1152540rdb; Tue, 30 Jan 2024 09:18:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1M4kTSmXsOaWjWoGD04tvH2RATlfxJC58EABNI+qrxu35rlZ3ud17fiZakC62ehWpqK2a X-Received: by 2002:a05:622a:1897:b0:42a:8c39:fbbf with SMTP id v23-20020a05622a189700b0042a8c39fbbfmr9108615qtc.41.1706635100845; Tue, 30 Jan 2024 09:18:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706635100; cv=pass; d=google.com; s=arc-20160816; b=iqoB7HIvMykL7UAdQi/vbsqpyGevapZcxZEk4Y5m1rz7Cpz1VDjol+q7eS1tvoyJfe 4vvjOcQwGFsCLjvf7X8yY7q1DzQd5SO7KjxxQHCQnC979ZCZbtmH8JYsnaG8HJ5oRuyL C+L7f5d/2F8u/6pMJ/Gw0xKynnHAa8JD9PaNMvDIsiUryv5iuMCL2OoXPpOe28c1Hu8L S60G7Gx3BpCc24ShComG3RQU3f4kvgJ5rtmQ29/nvT3KH6+s80yENdTTiM0Zp9k1lnkH 8expxQg/eKHfLA+c6uEdpUJrTNS6KxHN4Tg+W7usTj9iljR2ERipmV/sd6nN91wAikzQ R5JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NNImHxXmQ5ulkndnBxd7GFovliEMcYjuVkrw8tLfCA8=; fh=kYFG+YbDIzGLVtCPpZnYAfa06MWVJFqYBS6PI8o61rI=; b=QiNqH0qdurIjoGX4yIN7lGTytzC9bg6EXiYpwr83wexFkmaFMJ1EI9znPjJhzIwddt MgIFMx8iwTXHE9kmx1/qy8hjf6yKz7rgE7YsXHKmE7356UHFqUStw5pV/qk1IWGjHtcX pGY27RF7wpAZZw9e58kq6JqcxUru6A7yaIhl35uaqFPySnrnt8fhjAHGLeY/xLqSeOS+ KlZLgiCX+AS8Q9+GGpspN7rCfO/Cu0twPW39UaLjbGSxaHQKLtoYUGPT1wdrvSWNy+tN LzLYDgX7yuhIvaVza04Rf7PrP52dtPjsSSbKHgEq7YdeVVLNgMrih35euxTY91DH2fYC 0khg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=a7s2um2L; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-45029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v3-20020a05622a188300b0042a8a7a864dsi8431125qtc.577.2024.01.30.09.18.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:18:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=a7s2um2L; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-45029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C6B81C2513C for ; Tue, 30 Jan 2024 17:18:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 247401292DC; Tue, 30 Jan 2024 17:18:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="a7s2um2L" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A3F5128388 for ; Tue, 30 Jan 2024 17:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635094; cv=none; b=r0utei1IfQOQJxeztOesn1jb84fyMA3+d6DAXEw77UVdoBGpsTC2a2J3xOI4qwhWY+n47iGmn8lseWkfPBhAlv741CZRWI/y4QoMTPTDIhgfpR4oltDMc5pWdPeenJOWrxVxvvKoVO7R6i/Rn4rn5M8u0GC1VazZ0ChP9Sz++6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635094; c=relaxed/simple; bh=bSH0ASnXZjcDVpolqCxHH09VljozYJWnQ2GDWK1l+uI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UXLWhYpwvIrdaF1mko2U6fOX6902xh3ErtA15ULAs+22Bqsnt6asV5JsKcrL3yG9YDkDqgq4C8R7ef5DkvUVFfw/X31wiJ5W8pSKqC3a5boHUSFGEaLGi8pIc9iLSQHjvpHTz5srI7Aq4S+hVgMnq/3wKyMTbJu+Ewjdf+6Y29E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=a7s2um2L; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D099E40E01BB; Tue, 30 Jan 2024 17:18:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id E5CUda0pWPF4; Tue, 30 Jan 2024 17:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706635086; bh=NNImHxXmQ5ulkndnBxd7GFovliEMcYjuVkrw8tLfCA8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a7s2um2Lj/MjtzcHX/h/ESf2v8CerKa0Vof+l0TCEJCdU72vUnNGcEUyclENaMLUJ EPGW2aIFQBWPEeCEsd2qF47kh+V6gPJb2Kwjal+DqBa9b0KMR2LbGfvSmZahyWFw1e Vwu9AkMN2UDLY1DyOFHNOl94lwRgrghJC+YauyeOTJXImVDB/tXxfNuB3TsIpKjVDv 4NthZ6csJ9lEAcUNpT8wLf1Fvxn+O8IpPLJi4FsVtxfefdDEzyKpqzoW4kMeysHv8Y 3I2kk2WTyGcNM3sqsHPoxtb6eBLii71++Ch7jcnOErsAZ2AWDgDOgnJ4zl7KTjnh8D wwlCCKkTg6X9JiA3Zj+gqMUUP5L024YGZLMSZqg6qxJcdtMSJVAW6HMvaI9hfjK+Z0 Gl4ROyZIAb0YMtqSxcGRG+c8w80ynytYzAaTB/JtdXBQXW/RhoHrSpfHaqcxHoOIEu 2jgcVVPLQsuzRdfBBNEWKcslqbEIES/2OVCDVxeKeIeMWiqzSG4KMzv+KhyUda3O/C bG0cKJMk/hMuq+4lCSXxcMGH9NLN9n0LxLbkKX2NVjyQv903+hhUpv3goAmNUhyQn5 MEYoewbgesGdkEkrKjDkxp6SdIy4jN+V42SFpJ/DmtWVjG0ilx7Kc2mbwH7jnPlSXc nZSftqWeglhEmzUDJEQSev40= Received: from zn.tnic (pd953033e.dip0.t-ipconnect.de [217.83.3.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B529040E0177; Tue, 30 Jan 2024 17:17:56 +0000 (UTC) Date: Tue, 30 Jan 2024 18:17:51 +0100 From: Borislav Petkov To: "Li, Xin3" Cc: "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "luto@kernel.org" , "Shankar, Ravi V" , "andrew.cooper3@citrix.com" Subject: Re: [PATCH 2/2] x86/fred: Fix build with CONFIG_IA32_EMULATION=n Message-ID: <20240130171751.GIZbkvP2yfHF4vBt4g@fat_crate.local> References: <20240127093728.1323-1-xin3.li@intel.com> <20240127093728.1323-3-xin3.li@intel.com> <20240130124816.GCZbjwEFrZS55FLxb8@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Jan 30, 2024 at 03:22:01PM +0000, Li, Xin3 wrote: > diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h > index c7ef6ea2fa99..01342d343c19 100644 > --- a/arch/x86/include/asm/ia32.h > +++ b/arch/x86/include/asm/ia32.h > @@ -81,7 +81,7 @@ static inline void ia32_disable(void) > > #else /* !CONFIG_IA32_EMULATION */ > > -static inline bool ia32_enabled(void) > +static __always_inline bool ia32_enabled(void) > { > return IS_ENABLED(CONFIG_X86_32); So I always-inlined both versions since they're small enough, see diff below. That works with this .config, I'll run some more overnight to make sure... Thx. diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h index c7ef6ea2fa99..4212c00c9708 100644 --- a/arch/x86/include/asm/ia32.h +++ b/arch/x86/include/asm/ia32.h @@ -69,7 +69,7 @@ extern void ia32_pick_mmap_layout(struct mm_struct *mm); extern bool __ia32_enabled; -static inline bool ia32_enabled(void) +static __always_inline bool ia32_enabled(void) { return __ia32_enabled; } @@ -81,7 +81,7 @@ static inline void ia32_disable(void) #else /* !CONFIG_IA32_EMULATION */ -static inline bool ia32_enabled(void) +static __always_inline bool ia32_enabled(void) { return IS_ENABLED(CONFIG_X86_32); } -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette