Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1087635rdb; Tue, 30 Jan 2024 07:34:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvsc0Mtr4hsZg3SNHWxZGfdrRPeplflIVUBwVXbnv33gRoZTwDbRS2b92s2KVVV9oozbfc X-Received: by 2002:a17:903:2289:b0:1d8:e935:5765 with SMTP id b9-20020a170903228900b001d8e9355765mr5480887plh.18.1706628875203; Tue, 30 Jan 2024 07:34:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706628875; cv=pass; d=google.com; s=arc-20160816; b=iJwKbkdvZCvs6B/PDWZiBuxQX6FHg72rp6Ai2Drbw3HbH7kkN6PtbRWBX1zLlVYALz bpMT38Ek02HNhTZihmc1q0DPKAQS1vkzOxNhOki+MMShQOIPAj/vzp2GyDCgZRJJs8Mx tJ6GCCSqKgzOCvwYxI2WtKQfAcmF1b+q9Lqjw1gLSpdfkOTIFaOmbURRZZo21VBulJZT oKSrHAmqHT4cYTkVz65uBnT3y69x7uQdRKFCsj0rS3tvOFlkpQR4sWzFr9SO3QxQcwj2 BPKIRWNn5i7e5Adny2iMUaS5K0lTPeFCdw26PFccP36sgODTp4yE0vfH/I9wa5mhmDHp Tl/g== 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=QBO0DN0ipIKH7sKZQJ7hGPJ0BINXkDod39T7fhCWYlA=; fh=kYFG+YbDIzGLVtCPpZnYAfa06MWVJFqYBS6PI8o61rI=; b=rlc+w4000JhODZgaqY+bmKgpLzP7p6N2EV9g58yGa8Pw77BYvQlXSfzRBti6W/Xn+B 9AyFMhKDj0q5b/+/gOl9xcnfdiac+//gSklv/sHQF4+R6oWtxwrG/dgpCTExwe8Kr6/o JLC2oP2dqUjVA7NAj4piITEWXXArrjak3N4OeZK/hLwxuvCBj/Dztd9Q62h65sZfFISM EAPZTXeUUtZfFNlyUPBPbR9i48f3ll7n2lubAsQzyDr0TKnxkJpQ5lJDDRG6m3Fv/jWa CLjo1beWSWwWerxM7T2Rv2GIaXoJybkdEsRX3M/LeQejSs27lLJC+R1kYz6qG2xYDPSg J9xg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=HPpvSE07; 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-44846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j14-20020a170903024e00b001d893990719si7771942plh.359.2024.01.30.07.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 07:34:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=HPpvSE07; 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-44846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44846-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 485902838E8 for ; Tue, 30 Jan 2024 15:32:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F147B823D3; Tue, 30 Jan 2024 15:32:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="HPpvSE07" 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 981C182D85 for ; Tue, 30 Jan 2024 15:32:01 +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=1706628724; cv=none; b=CYbD5xDKxUBqzhkc4KOJqMhDZJ9Z09IQdy2x6cPx14QrsCfjLHWemytCFgVEdlmGWMvfycK0+a/JAWLpcuuFUOKfqCmjOUShM/vP20Hvfp+UZ2RfvyqCCuzGAl6tOyJAC/ln9IAcJEgE8FFJrrbJVNohSs9IOW4Ri1lKf4v86Kg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706628724; c=relaxed/simple; bh=/mb0FlNJsasGY09t2fVBMH3IJJ17htS6caWYWfCl6nY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WxVrJY6ANaalwkbCmPUQEIaSdZ/fcNEFgZEFtryIJEDY7rQ63WZfDqIBqYirvFv7mqVRmNhJZ6AHKq1vPrW7X4MMNu8WUz/WCzSsjH07vxDRQxXoK6EQ/MjLyCd2rOaywxtrFNjDjNe9/EnnREr2jEf/q5L0L6r5ccoF3rg5D44= 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=HPpvSE07; 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 3CAD740E016C; Tue, 30 Jan 2024 15:31:59 +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 gPMgD9ziwYsG; Tue, 30 Jan 2024 15:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706628716; bh=QBO0DN0ipIKH7sKZQJ7hGPJ0BINXkDod39T7fhCWYlA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HPpvSE07XxIN+63fjfGCnA4yTxw27SQoLz1KMeIYbyYSzL4ZB0RLpy1Odj6b+pxHD p4YKH6wb4t76jCHVRyOisLbzvHkD3hTvsBPH5GhHQSkfo/RBDuVlLyxe1ty9I7bTiY pbrnMUZj0zYAqp4inRN91mp6jRWGOEhNJWAvWcEanByIBAojcxP6fpxdQTpl1zuP7Y JERt2A4s9kdoR5SqKNnCY78Qy+oesLxGGb98hQAxUkLOLYTy74Yv6LhX9D2lu9bGHV ZKvs/K6jBumTZtpJox6dxM3lAiF5OJqe4aCot19fpE7rLN6fZqwBFStecyKG0oy6Ip l0iN3KHxpYAVH0eLyFPhUbPXQKzmIIQIpE2b3IfZ2gAflulAnQ7GXK0prhASL1cNip vbNd8YbF8DDiDJ4RCejLwYArKzlDLfSbl5j5yEoYwIpv8693DXbGfRBCiYid4QzZp+ oKNwcBmetiS1rPCAHoEfJm3WhnJQVGmeObujwsSN+dpo84nUnDX/qkQiYlNwl+XZNc XpOlLIjuKlO6KdKJEYBsAAf62Uk9L0FbXY/OndOoakgyj6GfZ34uh/tPFOsmLdtIVZ TW/ygqrgxNaRH1eVwEA2/1F/LO5CuVEHv45s2iiDdCyOP7KhNdA+hY2LDu9EVv9vgq AoAgcPpjXCoj+QtjKnNbOOmA= 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 6146640E00C5; Tue, 30 Jan 2024 15:31:46 +0000 (UTC) Date: Tue, 30 Jan 2024 16:31:41 +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: <20240130153141.GEZbkWXQt2H3JHHGHx@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: > How do you think? Interesting. For some reason gcc doesn't constant-fold it away like clang does. > 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); > } Looks good to me. Lemme try it here. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette