Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2835018pxv; Mon, 12 Jul 2021 03:07:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHlcP1PrxcVxXNVKHOfQpTtS5jpkJSoz/ZCKZPq985LgH3Ip1phgyM6NpHMzusqmZf4EWc X-Received: by 2002:a02:3505:: with SMTP id k5mr43724134jaa.123.1626084431485; Mon, 12 Jul 2021 03:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626084431; cv=none; d=google.com; s=arc-20160816; b=cLzySuaTHsSexz4f27ObT9Pe43X4cO2EhY21grJgeZfpMQt9KPynRjcb11l24XON6d 7n9+RlBtQ0uK2Uy29PRltwhRtJdTWEZxoxrdDj/BC8Af8aEh40RGuZItHtV3AWEEyEkM mPGtwZNPviwQcR8x/nh3qzOy+RGdAzI0XGqbGgHRzmwVydzBizwJx2xl8AxEoCJJEYxK AZK3eTNNt/39YEHQH+vLecd7ddui3MeLQyi1LN4K/KA5HF1Vncyu60Cp5PNOch9oseZF Q+323LJW0X7r2+u1E7DEQ5gAegmWkN4JIUBjzYkamUzqryPTcX2gsNPrbT6C7oQIEPYs oHQw== 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=Rhnc6Fd6ZdgOH9Y2d9CIQsz93EM89F7qL/JjyQRFUWQ=; b=r5zFXPwr2Ze7qam6/yADz8od2UfD6Py/BGvTBvMWI+tqxayR+d2xQUhBnbKZg7iisM 4VIKcXHbNZIvUje9agloc2UYRBfXvLJmhUbqSs361SvR42f0GxhadzhxzqSV8BQR2gkn D38iBpkfm+G4ouNkyjAzcESLDsDCddnjqIuoHRnnz8E5H44whBTJp0d9WtdpuhGMuJho dUzNivCdcmG9JFc2NKEjIl94KeQDYeCdhqWMLpegs8UU0XhcA2su7EI3JTaYdluY3t3B bnjtR8pKtes/DqZSX01Zya9MtXnVxqVzPO97aHnisFYtXn+FwPO2GGTs3002eOh6X1EI HkZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r0+99S3g; 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 n2si18599276jaj.36.2021.07.12.03.06.59; Mon, 12 Jul 2021 03:07:11 -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=r0+99S3g; 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 S244034AbhGLHgl (ORCPT + 99 others); Mon, 12 Jul 2021 03:36:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:42596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243527AbhGLHKN (ORCPT ); Mon, 12 Jul 2021 03:10:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C5C261175; Mon, 12 Jul 2021 07:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626073520; bh=7RHGcgWTWKwphXIpuv4skHUa6/6IMA5IT/NC8/GFqxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r0+99S3giKhm5qpiinP296Z+JKTANCAvITCvhVks3qg7kq+3TH7qxnvWO1iWBpn9H iPpANFnDRA8npJ/tnq2lefwYUUCYsm3gA8rrBhs/5hMU58EP8M3gJMECTFlTuT2fTf qNc/zXy0XDPZ5HE98PEDY31gcogjnklCD9v6rE/k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , "Peter Zijlstra (Intel)" , Waiman Long , Sasha Levin Subject: [PATCH 5.12 271/700] locking/lockdep: Reduce LOCKDEP dependency list Date: Mon, 12 Jul 2021 08:05:54 +0200 Message-Id: <20210712061005.094693950@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060924.797321836@linuxfoundation.org> References: <20210712060924.797321836@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: Randy Dunlap [ Upstream commit b8e00abe7d9fe21dd13609e2e3a707e38902b105 ] Some arches (um, sparc64, riscv, xtensa) cause a Kconfig warning for LOCKDEP. These arch-es select LOCKDEP_SUPPORT but they are not listed as one of the arch-es that LOCKDEP depends on. Since (16) arch-es define the Kconfig symbol LOCKDEP_SUPPORT if they intend to have LOCKDEP support, replace the awkward list of arch-es that LOCKDEP depends on with the LOCKDEP_SUPPORT symbol. But wait. LOCKDEP_SUPPORT is included in LOCK_DEBUGGING_SUPPORT, which is already a dependency here, so LOCKDEP_SUPPORT is redundant and not needed. That leaves the FRAME_POINTER dependency, but it is part of an expression like this: depends on (A && B) && (FRAME_POINTER || B') where B' is a dependency of B so if B is true then B' is true and the value of FRAME_POINTER does not matter. Thus we can also delete the FRAME_POINTER dependency. Fixes this kconfig warning: (for um, sparc64, riscv, xtensa) WARNING: unmet direct dependencies detected for LOCKDEP Depends on [n]: DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=y] && (FRAME_POINTER [=n] || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86) Selected by [y]: - PROVE_LOCKING [=y] && DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=y] - LOCK_STAT [=y] && DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=y] - DEBUG_LOCK_ALLOC [=y] && DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=y] Fixes: 7d37cb2c912d ("lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS") Signed-off-by: Randy Dunlap Signed-off-by: Peter Zijlstra (Intel) Acked-by: Waiman Long Link: https://lkml.kernel.org/r/20210524224150.8009-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 417c3d3e521b..5c9f528dd46d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1363,7 +1363,6 @@ config LOCKDEP bool depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT select STACKTRACE - depends on FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86 select KALLSYMS select KALLSYMS_ALL -- 2.30.2