Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2826134pxv; Mon, 12 Jul 2021 02:54:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp+qs7Fw6IJ51D+9dz4lkITS2Ss5+NjxCN1R6BZi7ysAcQN5acQ4JkQ8w7lEsLDJWov0Dv X-Received: by 2002:a17:906:b2d5:: with SMTP id cf21mr31644349ejb.514.1626083655291; Mon, 12 Jul 2021 02:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626083655; cv=none; d=google.com; s=arc-20160816; b=kYGQIlFYuQIMHzbrKhd2LGyy/m1TIUBeHn75sPITYttFckaPBjVwdRdImicarh1u/3 zSlwKzguz04BMQPYaDzzQrjygwaWRI+vx70s5bTQ0wYI9rxMkgfnfJQKN7RuS3dgk3x3 HXFXazvFMsr5ABmeh8hzIsZCpWVZSya9LO4LZvHtH17yeV32RAlvkwmHSWkBwsj5ttvG X9ON7b/UuEAmFwyJLvAzer3XPKaD51dgvxX0HzuPlSiTz+SIYUrrOhrdj1JDny5NNIpB z1hTjPeinVnjFMMJNwDRZiyo2fblT7ewQ9EUSzlAyw3FWIECqIRinEOf4XiSUE5vDGs2 nKkA== 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=F/KPJCv0HgK5g9EOY7QClAMpfD//5VuJQ2SWGaxFNKo=; b=s7nFtvXvyJXejTT1n31afGVOnLBDuuLLHqLCR51bPtQ/c/G6MHGYH0qbKSXsOxaJpE 10FMsvbuyzCqUv/nFMht423GnzooHa0LBzbh9uiz45QxiiO3/BZMe27MaDM45d1sf716 9hzLhIIzwNDfAsLOx6dwLWaEXh8rpy2YBxV4ltbB0/kqkSI4J05yvTQG5HeKixxSmL/f dgFzd0iPJ+ipM6mF5OXBqiQ5a9hUB8eNtd2pGK754dEH71oDmilalf3vW6EbgPWBuaez OmaBgeciSo90JB9AfxRyOk1AYTYW4hODUM+TQxS1fY6zgPvTtUxjsrhrn/RjiS9EFlnu YRhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TIHq1u9K; 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 y18si2335425edo.360.2021.07.12.02.53.52; Mon, 12 Jul 2021 02:54:15 -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=TIHq1u9K; 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 S240063AbhGLGuo (ORCPT + 99 others); Mon, 12 Jul 2021 02:50:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:33904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238329AbhGLGkH (ORCPT ); Mon, 12 Jul 2021 02:40:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3392C610FB; Mon, 12 Jul 2021 06:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626071816; bh=eBswLedJYx/ZLEIT8tcmKoRHn3htzjnt1RXCAbktCrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TIHq1u9Kxk8udv3McrRcP/j18VRv8WKwpuFIIQiQK9aP1AdMsp/ZL819dkjR2vl3+ DZ7RClSiSofg+n66DtnDgiH5t8Co1A/23q+qRE+mRx2+pehbROw4H9ieZqzDvAbeEy XpzoOCahUATl75xxAEIRwoSPC5kSouJp3ISoLA+M= 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.10 231/593] locking/lockdep: Reduce LOCKDEP dependency list Date: Mon, 12 Jul 2021 08:06:31 +0200 Message-Id: <20210712060908.330626233@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060843.180606720@linuxfoundation.org> References: <20210712060843.180606720@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 dcf4a9028e16..5b7f88a2876d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1302,7 +1302,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