Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3810277pxj; Mon, 24 May 2021 15:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaGIluGrg18PbufPuvDssI3nGpgJeQJanwodyVa0uNwahClgI5qV2AGAvEhj2inEyAJWEw X-Received: by 2002:a02:8787:: with SMTP id t7mr26100095jai.53.1621896234503; Mon, 24 May 2021 15:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621896234; cv=none; d=google.com; s=arc-20160816; b=xl+PsSiGyOCkTbIXfDKERceH+0SHY60yharu8YN74Lo5UTYsB0eMrpgbw5lCFLl+3z 3ManVYk3EJQ9/iGmIu/TC3SZ3FC8xTsw/wQAH8Vu5zTCxbMe6JNUkQ77aYKZ82aWP006 av5DI40cc1vHQvyuqiy2vXpWLgdG6dkQSi2LSbZKZrzQiNSOi5Nas+YNpLcrPmdN/5+6 weZeofnu/jE6oohDIjpe4VCBM2oDs0+MOrO3FNmEYDZ50zcYf3UBiDdJ0xv1Klz45hRM VTSxsd4VVhxUsYIR1uzQ3/no/oIi+bUsgDHLiHHcWvvwW1abqB+yQfkJLK3GNkAgf4jU xv2w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=KZXb/tLr9YFiA/T3KrJSdP6LyxwsCT3QXewBPoMTKsE=; b=PuUe2IgxbGGeYrovtX2/z0v3Hpvt3gvJp10LXBu8NOGwNOc5/6AbAVtTF0GPnMzw7s 3YHjaFz5iKLf8u9nzCPEabjH3qUCAuoijluFi4LYjMZkhd/MVtn275dKzrPu9SIZzLER Wb+GQnEVJnVYSm6HeZpk2c10KCo189wvU8MkjxgFCjfbSmB/Gk/xQuxRt+N3aSyDwEtH 0qI3vrWtGxWqTQYHSRHuM9lVQiViq4sRfvd7cQ88uYppfAgCXQaXOsSyPpLEfFu8bnYC 24XQM7exwbBKKtXVf9CAsRwEcMrW9UgVM89un5rFN/TkH2oRvGLIYNwxpgbEw9bbgGiS 9mAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=g5bGXx5O; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si16584370ilu.13.2021.05.24.15.43.41; Mon, 24 May 2021 15:43:54 -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=@infradead.org header.s=bombadil.20210309 header.b=g5bGXx5O; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229555AbhEXWn1 (ORCPT + 99 others); Mon, 24 May 2021 18:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhEXWn0 (ORCPT ); Mon, 24 May 2021 18:43:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CC9C061574; Mon, 24 May 2021 15:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=KZXb/tLr9YFiA/T3KrJSdP6LyxwsCT3QXewBPoMTKsE=; b=g5bGXx5OXeTJgLIdaHL7wrYzDy ug/SzbkUytOW/Wo6NIcbnStWecwnmqr0wzFJgh1JKVyg2CvdKXQMLVAr3ZSQpzCmP8U4B8N9iUNKG kGqziSr/xYr+DVSVKoi1VGlmJEnjJhj7etjnNpoE4cNUfB47DRJjyy1JaEeWAHc91Qx2CZK8xJ5fa 1PJyhf6SEb8drQ9c0fHHbknMOabnz7HMJXtnWfB+F+zlctGQEvpgv+1kng5rwvSRvQco5a6yMdOpZ rsAJ3mf28iuhTS72wpjoQ+CGKg9cP6eLb1ZMNtHw+pJeB28VL60CaJSCc/HdJCK71HKsTiUIPdNDg ayQYdgHA==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1llJGi-002B2q-Cf; Mon, 24 May 2021 22:41:52 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Johannes Berg , Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org, Julian Braha , linux-arch@vger.kernel.org Subject: [PATCH v2] LOCKDEP: reduce LOCKDEP dependency list Date: Mon, 24 May 2021 15:41:50 -0700 Message-Id: <20210524224150.8009-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] Link to v1: https://lore.kernel.org/lkml/20210517034430.9569-1-rdunlap@infradead.org/ Fixes: 7d37cb2c912d ("lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS") Signed-off-by: Randy Dunlap Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will Deacon Cc: Waiman Long Cc: Boqun Feng Cc: Chris Zankel Cc: Max Filippov Cc: linux-xtensa@linux-xtensa.org Cc: Johannes Berg Cc: Jeff Dike Cc: Richard Weinberger Cc: Anton Ivanov Cc: linux-um@lists.infradead.org Cc: Julian Braha Cc: linux-arch@vger.kernel.org --- @Julian: please take a look. I'm a little concerned about the FRAME_POINTER dependency going away when our 2 patches are combined. v2: drop depends on LOCKDEP_SUPPORT for LOCKDEP; the use of LOCK_DEBUGGING_SUPPORT already covers that dependency; drop FRAME_POINTER dependency (thanks to Waiman Long for both of these suggestions) v2: add CC: to linux-arch lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-) --- linux-next-20210524.orig/lib/Kconfig.debug +++ linux-next-20210524/lib/Kconfig.debug @@ -1383,7 +1383,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