Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1290231lqo; Fri, 17 May 2024 18:47:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk2Ema0G6kC9Q1cH040wAqM6ADNoUXFiPePC7fipKHNbsarGbLiWFMOw9HzP/+FnHOb1cRoaBUO5Hc9FZyaPaQQHjsThHZKEu/5Pim+Q== X-Google-Smtp-Source: AGHT+IGV7szzRiR2i+/nHk+Woe3W6CkLB41ckE8BqAGO0WuuNXCzzFGY2HJ5yE3xjMS/8fmUCgpD X-Received: by 2002:a17:907:9625:b0:a59:db0f:6bdd with SMTP id a640c23a62f3a-a5a2d5d56b7mr1888348566b.44.1715996830516; Fri, 17 May 2024 18:47:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715996830; cv=pass; d=google.com; s=arc-20160816; b=P//x3arWuhDjVaUj0Ldg1o1kcK4tzodZ1B5mAvbHmohU7x7CrqfsZZgpNWP2b7q/I5 ZaMg7KKvtXU+pwZ5s8f43Q3tHIFNOKe2eWuwa1ZtTEFXvgQpmQRcdJD0rm3SbsQsWWmv xJQyOeQS6m8JvetwPvxCGcgCl08TWOoeUQ8bS0LWVxXS3/OuPtWMP48CZIU4yfBsoFzJ 6DIT5xN1iHlTYnrCbIb5vef354GVgm8964uMee2dUuYaCfdxKqhsuvzUnE745kX1YwUw Qv+c+cXyWtHFWPpH8yIB17UHDVuLMkyp64UjcXZQjUSLbF/QwNOMVGMxcniEk9XNamwI 7jrg== 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=hByR3YDF6OOGKqdBP5RLjIN4tDmabWvomRHJko3ssqo=; fh=+vcb624dU23hWSS2kWpfMIma9GcK/Vso2vpHuN8uOZ8=; b=k6kz0Cu79qW1LXdhiath83ShhzTl6MuJxe6dNQjROF4ctC4KElmq4vL3r5U12lv/SZ rZye972X0v8IwYEgmu3btl7Y6CiHQaZL03VvqnKWZbosQIzOTCrYALrezaF9FOgNu330 mNshLS1Kbirq8wOKeOzg+D5JHZ+RW3ZHwryXcWtj552avFSN9WU4tiRWsDpZI21A3lg2 UE0UmxKNI3HVOT34LavvL5/EITNUMjXVCc7S3zffcYyQ0Rcu7ey/HTxbBhhddOfugW2L HmDyDOn98MabIE61VLXGMvtTUGOwydeEM5Yd2Mhkl1CoBWzA3I1jE0BDGAGRruqAhHCm diLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m6T21Bfu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182742-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21b93si1017098966b.364.2024.05.17.18.47.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 18:47:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182742-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m6T21Bfu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182742-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 403041F21D90 for ; Sat, 18 May 2024 01:47:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34570748F; Sat, 18 May 2024 01:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m6T21Bfu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 576CC6AA7 for ; Sat, 18 May 2024 01:47:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715996823; cv=none; b=ccm+u122CHjgdpTspNcSyFDvpy2Vk21b1giC5LzwoKYyg1OFpsjuoTUDSp2mk0yE6AuMVkytGNjBPn+HVTI1wn7RPfSkiCHYvMvSUQm6W3OyTehMrsXWOeMg4+Mp1+hg0TlOy1R++9KU8RcG8SOUCzHF6/Mhx68Xb6SykZH+2VQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715996823; c=relaxed/simple; bh=3w6erTs0VsX7bzWfjAMEaC++hcnvOlzJH8P9cpgslP8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BbCcKerxOpkZaspJOXyfOGtx1RIjdSk81xagDIXQt7jF6tumlqtprMsWXqVPD3wpioddaysuFiVDMXBNA9BG6TRWJUSrIh3h3KAic7YXS7MTqWJWifb2aUBZEGLw0B3qYJagSvYYQCoYKW/RHkaOr82dsFW3Gmr1GpIF73fhIF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m6T21Bfu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EE7AC2BD10; Sat, 18 May 2024 01:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715996822; bh=3w6erTs0VsX7bzWfjAMEaC++hcnvOlzJH8P9cpgslP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m6T21BfuczDC0ek9BVTgqbC60ygfqSCLkGGhUqbS+cU2WsOTHdwekPmYeKkC63/PA CIPKJcK9CCPyN5ApX4ssUQrZsAowwXtZWCnWzVKQ4oxruGvsUKj5+ezj/jfLJfI3WX m9pztPMF6Elvy98zANXox3knqQGsu4QBAImGvFzwc3Ep9exr3dIxVzSq6Ujf1GbXFY cRnxMaF5ulrY1nyohqyqkkkr7scGVPatlNmhSuSSRKwJDmAd7+NPBRamhwF7z1i+yT frtzIH7BBeLxrGFWl68+cIM7klsMTKPGcjThv+DXAtHQaO8+pjIR9hw+AYUGDSYNmU Bfv8t0xnCSTnw== Date: Fri, 17 May 2024 18:47:00 -0700 From: Josh Poimboeuf To: Masahiro Yamada Cc: x86@kernel.org, Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y Message-ID: <20240518014700.3aieomeev4s4rq3a@treble> References: <20240204122003.53795-1-masahiroy@kernel.org> 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: <20240204122003.53795-1-masahiroy@kernel.org> On Sun, Feb 04, 2024 at 09:20:03PM +0900, Masahiro Yamada wrote: > It took me some time to understand the purpose of the tricky code at > the end of arch/x86/Kconfig.debug. > > Without it, the following would be shown: > > WARNING: unmet direct dependencies detected for FRAME_POINTER > > because commit 81d387190039 ("x86/kconfig: Consolidate unwinders into > multiple choice selection") removed 'select ARCH_WANT_FRAME_POINTERS'. > > The correct and more straightforward approach should have been to move > it where 'select FRAME_POINTER' is located. > > Several architectures properly handle the conditional selection of > ARCH_WANT_FRAME_POINTERS. For example, 'config UNWINDER_FRAME_POINTER' > in arch/arm/Kconfig.debug. > > Signed-off-by: Masahiro Yamada Looks good, thanks for fixing that! Fixes: 81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection") Acked-by: Josh Poimboeuf -- Josh