Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2901856pxj; Mon, 17 May 2021 12:35:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzERVMGLenVq1v/VAVjWz18uQwQ2vKWRuJCIY+reaBI1v5nwFb/p0QZaq9cMizO+WQ2AWGz X-Received: by 2002:a05:6402:30a2:: with SMTP id df2mr1999649edb.176.1621280151896; Mon, 17 May 2021 12:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621280151; cv=none; d=google.com; s=arc-20160816; b=PEYHiCjAjbvnsGWH6WWDBh3uzMHX4Cwh0ZI3OemhF+PHcdcFxrnX3IVWmDjRF5vr9z 81EqOVQR4zr47gBQeCyU/JIhsSjESEVcvCOgw/t8zxCLbSys/iUVfCRtGEVw0z+cmFMy ziUFclFavEWrvePqy1OB4hZOZBGwEJCM2LCI27dd6trcbU+1D6IijZzW+P7DvVpNYK/5 4HEoQabLDPZ8OIfsOEYJlnK6Y2cUsQV1F1rACRi0HGFNgdnUh/Pzk5H4/8ED1Et6Dgt9 iCkB8ul4ID/TC2NUCW/01YrPp9+eH6/E/TmXxjVa2R3FdQ5SZCSWgeDJv+eDko0NRxMI i35w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=w6s1yDNXr5UsIpHaO+R8G1tNC83nwkRLaMHkcLolQzE=; b=tIlsmpmBgdPGytcfcTiWd6kpLiIJUZ55mDzau/h0nuTuoINqBbkybnHGh8moxwbYTP 9OqNpzphNEzy1cQiWOlOazvRTbjIqBDIaJifNFR/jrkSPzY+1+sHVdXYs1klD8JQfj0W V0ASbZUr72EGPPsklf/lhAjzbG1fP1nOBvqyiTWye3bLR7L5PNcc8jfjZV/5euZI8oC5 NKObt1pUJGn5E9dlitrqNmmyfyLoyIaLiBWu210E/f0KD/G5P0cGBcArYUGwr5Jgx3Ax if+LOh2ICtxlxPQ+Xts2BJAY3c5zU07z9kJ+DLI6Babdfhu6LYQQ9b3N2kKietkMvq0Q nXRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S6B0U5Zr; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq26si7866157ejb.113.2021.05.17.12.35.28; Mon, 17 May 2021 12:35:51 -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=@redhat.com header.s=mimecast20190719 header.b=S6B0U5Zr; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbhEQODt (ORCPT + 99 others); Mon, 17 May 2021 10:03:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:24542 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237558AbhEQODk (ORCPT ); Mon, 17 May 2021 10:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621260143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w6s1yDNXr5UsIpHaO+R8G1tNC83nwkRLaMHkcLolQzE=; b=S6B0U5Zr2XwpoC+uIB4UYroKTMdVfM7t0wavbqWg4EkZtcmlt3rarfKsB2yL2u7hdNiz0K Zk6faOZQgwez+9IpcIgGL2JxQ6utJSvMDjVMsIq3bM2r8MhqHBJga/pKjbjJh2Hc37WDGZ pmMdTPPaXHadby22yDknYLcgAfVj+30= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-x01rq60HMBmiN2RE6h5I9A-1; Mon, 17 May 2021 10:02:21 -0400 X-MC-Unique: x01rq60HMBmiN2RE6h5I9A-1 Received: by mail-qv1-f69.google.com with SMTP id t1-20020a0ca6810000b029019e892416e6so4816947qva.9 for ; Mon, 17 May 2021 07:02:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=w6s1yDNXr5UsIpHaO+R8G1tNC83nwkRLaMHkcLolQzE=; b=ruOXKvcyGo/zktt9q68PCC4WbuaibWukddZmetZb0l/nldSATX4xeP+1U/npB1JieJ n79dmaJtY5irqKT1effx+U62awUndlGhFLEs6h5OlVWo8Zq3esF+V6Pj+HooTCWX+evE qq3fm5a25a7QuwcCMlFKP2gziJEhIeC6hPE9xxTR1zm83ctZV1X8p7RCMSvRcr48sHE9 lGVEujWufXPnfdR3TmsEzHsazRGu7MfMCoZMCGhLk4FmQETz5fGQzl7NKFkxbzJIOaQx k8uTyQ6nn/wsFytelLMThjlRkVDIhv8RMiJsUbrKlRB5wxcvQOxX1D+5Ae6a9Q8OFRdN y3qQ== X-Gm-Message-State: AOAM532UXsJV1/+KbZnb7SyCcctOAX8zmRkA6RUWnyE6moEGMG5HNt2n LdRqSn487msNXLXNUmtk6v3a/DjfJRWHIWZSqt8AAINh46DC5MgV0FLkW4zUaXYTwQ8ANiR+0U1 VBhqs/DVxEETVet57FhyhThuI X-Received: by 2002:a0c:eed4:: with SMTP id h20mr8343785qvs.40.1621260140563; Mon, 17 May 2021 07:02:20 -0700 (PDT) X-Received: by 2002:a0c:eed4:: with SMTP id h20mr8343742qvs.40.1621260140330; Mon, 17 May 2021 07:02:20 -0700 (PDT) Received: from llong.remote.csb ([2601:191:8500:76c0::cdbc]) by smtp.gmail.com with ESMTPSA id k2sm8893323qtg.68.2021.05.17.07.02.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 07:02:19 -0700 (PDT) From: Waiman Long X-Google-Original-From: Waiman Long Subject: Re: [PATCH] LOCKDEP: use depends on LOCKDEP_SUPPORT instead of $ARCH list To: Ingo Molnar , Randy Dunlap 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> Message-ID: <1284b997-b9da-769f-2d36-4d4232c7df88@redhat.com> Date: Mon, 17 May 2021 10:02:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Beside LOCKDEP, LATENCYTOP also have exactly the same depends-on line. 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? Cheers, Longman