Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3705024pxj; Mon, 24 May 2021 12:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztMXACLk0tWSSfOfxs5lc489sguP6Za7N62d+CIbUNgvh8S0pIltC7BTj4L3bqH5GCU6wi X-Received: by 2002:a17:906:edaf:: with SMTP id sa15mr24809987ejb.174.1621885873341; Mon, 24 May 2021 12:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621885873; cv=none; d=google.com; s=arc-20160816; b=IJBiTbein3suo5uKoHWvx2IwzcH/7H29Jqnt2mj7cENYVljlxsWHxp4PWLl89EBTD1 SRfna437/RMnZP0EubHlTn673jCdJEvtqYcitSB87r44y8xsGZdXErZi9xqszJ9e7UIF UBUhJoPPah2LHzWA/uX+h6mU/x6WJzEK4PSUmVohNO2wUBMSOboaZvJEafhhb1VRUkjq 7+j6hN0uca83pTuP+pDDYMuqZApuYcUX03rGXcPsjk0I02g02IEdf1n+Gp0ktqDP+Aj1 xa8sqmNRvpT5rt6ttBdYV66o/B/Ba06lk+aLkMi3S68wlpRd/sm0mU2sqnf3p3IBWZMO N8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ueXZs8cexf40eXOLPWpayhlqbDnFMflQnUaLHq6vDfQ=; b=eBVcxOTdA0pA3KFUF1B1rQToNAUWTL1cJ7aLkvEm7CTpTcIFL6382R17S+OJuOGJwq 2VtHYkZKeZbT4n6Q8DlPhj26fH29U3Rr/B7IjptH9+NYOdkmliS3FtmH2cXfrLYSG3Po ktpGy9L63RDMvTB2b5e01cjCEq2fAGL390hibTFI2P9UzcwSeAtwXr9aBJbrUMMTV1a9 sMgTO0HWmnH+5OY2n+L04RkFwr98DtRQMJh8RcEyNOjEWHFmwiHHwy9rf4WGd11Z4/ra 5iPe/iu7O6hPuhvMBULj74ga0AVfyirihHr87naPOhV5wJZCshdgHemQfhhffOyLgTFr v30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=rqdEHht0; 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 mp20si13334102ejc.31.2021.05.24.12.50.48; Mon, 24 May 2021 12:51:13 -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=rqdEHht0; 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 S232870AbhEXTtD (ORCPT + 99 others); Mon, 24 May 2021 15:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbhEXTtC (ORCPT ); Mon, 24 May 2021 15:49:02 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A31C061574 for ; Mon, 24 May 2021 12:47:33 -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: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=ueXZs8cexf40eXOLPWpayhlqbDnFMflQnUaLHq6vDfQ=; b=rqdEHht07oTHZjjHxReWamHZss JirAi4IGOLKHX2MCTM8mb/XYL1WYWDTUcMGChsVa1FJ0e/G8mF8t/0naXQkT3IRSStiwpP/ZHmVo2 xZs6tclQlvVh/jt0wmcnwRhw61IhChSVkWAGfBz06wfApB2cDi+7BEhtHtE0MMHyd2VH2vjNFOtBu 2nF8uSDopKyY8AWeGU14lnXRtLUZLAYtcPX/ax2ndP/oiSqx9BkudbbVaPb2Ul1tQNLTbUxMMkwjZ 1Bj9Czs4wK9ycjbuvBBgt2kLja5VzJhy6+EHNX3uODvThEUY2I/NNa6G3Y+P1rjXiSlxjNUeQCCz0 AWxUkR3w==; Received: from [2601:1c0:6280:3f0::7376] by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1llGXe-001jab-6I; Mon, 24 May 2021 19:47:10 +0000 Subject: Re: [PATCH] LOCKDEP: use depends on LOCKDEP_SUPPORT instead of $ARCH list To: Waiman Long , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Johannes Berg , Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org References: <20210517034430.9569-1-rdunlap@infradead.org> <1284b997-b9da-769f-2d36-4d4232c7df88@redhat.com> From: Randy Dunlap Message-ID: Date: Mon, 24 May 2021 12:47:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <1284b997-b9da-769f-2d36-4d4232c7df88@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/21 7:02 AM, Waiman Long wrote: > On 5/17/21 3:11 AM, Ingo Molnar wrote: >> * Randy Dunlap wrote: >> >>> Both arch/um/ and arch/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. >>> >>> Fixes this kconfig warning: (for both um and 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] >>> >>> 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 >>> --- >>>   lib/Kconfig.debug |    2 +- >>>   1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> --- linux-next-20210514.orig/lib/Kconfig.debug >>> +++ linux-next-20210514/lib/Kconfig.debug >>> @@ -1383,7 +1383,7 @@ config LOCKDEP >>>       bool >>>       depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT >>>       select STACKTRACE >>> -    depends on FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86 >>> +    depends on FRAME_POINTER || LOCKDEP_SUPPORT >> Ok - the FRAME_POINTER bit is weird. Are there any architectures that have >> FRAME_POINTER defined but no LOCKDEP_SUPPORT? > > LOCK_DEBUGGING_SUPPORT depends on LOCKDEP_SUPPORT. So this patch is equivalent to just delete the second depends-on line. Yes, if we disregard the FRAME_POINTER part. > Beside LOCKDEP, LATENCYTOP also have exactly the same depends-on line. True, but I don't get any implication that the same patch applies there. Do you? > So isn't FRAME_POINTER used mainly to support STACK_TRACE? However, LOCK_DEBUGGING_SUPPORT has already included STACK_TRACE_SUPPORT in its dependency. So why there is a FRAME_POINTER dependency? FRAME_POINTER is one way but it does not seem to be required for STACKTRACE_SUPPORT. Do you have any patch suggestions? thanks. -- ~Randy