Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2469122pxb; Mon, 19 Apr 2021 06:31:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdR4lIph1sbKlUaNCx7n4mgKuu6N9Gzh+DbUl1YgWHZJ8dfPwrGf9PqtIIxC8aKQb6x6cq X-Received: by 2002:aa7:c90e:: with SMTP id b14mr25603468edt.93.1618839084663; Mon, 19 Apr 2021 06:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618839084; cv=none; d=google.com; s=arc-20160816; b=p3qBLz2v/UiopsLaHMscybFPWIFHmNg7r9mFikhufGI60Z9vqkMnrJE/BHEYafXgbZ ech5YhYqj9UkR2XGVtIlc2RNRUx/uPVV4d2oyQaHyKZEWXsJq8QKY27q/DyYq8lvieOL pBIaDRnZbynAJ5fhwnMSEyQ1cK4UprPDx0RfcGAJHSKub181GOVpmKCpjRoRsVVLQU2O jxiMAIQZENa01cqWPxpx0RCeF92bjYSSkAvx2X8oPxhZjgKFEwoJ29QKbwTR7b2A6cuh TAZgSnWqprfTryzoJq0HvvtD9L8aWcm+O04bpqVvCJ1U6xvF+84CGZzpRSTd6m1IKqB3 IjMg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=W9faHgChudPHL4TI99eM/9ij/o73iaay2ZhJdp84fPE=; b=FKga4LE74M+KTQNU1aNCWESL8MISzKzuhq71BWX+3zraBGuA39QeTWinz8d/yrruFC lk/+wJfX4NUyUPBSjjRjzbxx14MXWTKjO4qXWSn44Gla31o/dPHqfkFEz4+5K/WfhO5u YG4uC1KMNKA8u3pONVY0Ubi8mqkyVBkh6rvh+UseZ3OQzE3Rzp+bEJDYHtQ3HlqFQbft mGaphKy77FguZVWS9PdnjLFvqEojyaQVTBekpXVyU32E0DeHZCkueyeRgj2b9yPfSFbm XH6aO0uOzxDf3/wP6GIHMYBTkxkrnSXpu9LF1xb/eWTCCZYpcGInZ09ATEcDmUsDyTjt /s1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="WlG/gAcs"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si9295470ejr.684.2021.04.19.06.30.58; Mon, 19 Apr 2021 06:31:24 -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=@linuxfoundation.org header.s=korg header.b="WlG/gAcs"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240981AbhDSN2p (ORCPT + 99 others); Mon, 19 Apr 2021 09:28:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:54556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241434AbhDSNUd (ORCPT ); Mon, 19 Apr 2021 09:20:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8DE85613FE; Mon, 19 Apr 2021 13:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618838204; bh=wXWpex12SHrBn0sW3zIXCkNd8glVnd6jKRfNdBjBuGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WlG/gAcsiURKmpoVzeGwRt/7awVI1mCUV7EAz3xB+f8RcfXvqG5tCqaqGF/DphkpM BYBLktrEGsyD/Fi0xK6srdDdH43MBOGQ3lAqtkEyKbleOCiLV8Q6O7cAmba4UG5Tru KY0g6InEL0eA4tuErQIbZQF/rmBH0+tD85jmCsZs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Braha , Andreas Schwab , Geert Uytterhoeven , Necip Fazil Yildiran , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.10 046/103] lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS Date: Mon, 19 Apr 2021 15:05:57 +0200 Message-Id: <20210419130529.400704138@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419130527.791982064@linuxfoundation.org> References: <20210419130527.791982064@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julian Braha [ Upstream commit 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 ] When LATENCYTOP, LOCKDEP, or FAULT_INJECTION_STACKTRACE_FILTER is enabled and ARCH_WANT_FRAME_POINTERS is disabled, Kbuild gives a warning such as: WARNING: unmet direct dependencies detected for FRAME_POINTER Depends on [n]: DEBUG_KERNEL [=y] && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS [=n] || MCOUNT [=n] Selected by [y]: - LATENCYTOP [=y] && DEBUG_KERNEL [=y] && STACKTRACE_SUPPORT [=y] && PROC_FS [=y] && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86 Depending on ARCH_WANT_FRAME_POINTERS causes a recursive dependency error. ARCH_WANT_FRAME_POINTERS is to be selected by the architecture, and is not supposed to be overridden by other config options. Link: https://lkml.kernel.org/r/20210329165329.27994-1-julianbraha@gmail.com Signed-off-by: Julian Braha Cc: Andreas Schwab Cc: Geert Uytterhoeven Cc: Necip Fazil Yildiran Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/Kconfig.debug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index c789b39ed527..dcf4a9028e16 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1302,7 +1302,7 @@ config LOCKDEP bool depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT select STACKTRACE - select FRAME_POINTER if !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86 + depends on FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86 select KALLSYMS select KALLSYMS_ALL @@ -1596,7 +1596,7 @@ config LATENCYTOP depends on DEBUG_KERNEL depends on STACKTRACE_SUPPORT depends on PROC_FS - select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86 + depends on FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86 select KALLSYMS select KALLSYMS_ALL select STACKTRACE @@ -1849,7 +1849,7 @@ config FAULT_INJECTION_STACKTRACE_FILTER depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT depends on !X86_64 select STACKTRACE - select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86 + depends on FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86 help Provide stacktrace filter for fault-injection capabilities -- 2.30.2