Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2345972pxj; Sat, 22 May 2021 20:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF8TASmV5rgl1AMtBpYTm2Qon4ksDE6leIkWbuklJqhIsJxKW+w9KW6nIycC2B2wXwe5Ed X-Received: by 2002:a92:db0e:: with SMTP id b14mr6943480iln.171.1621739790756; Sat, 22 May 2021 20:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621739790; cv=none; d=google.com; s=arc-20160816; b=AEBBLmuCggCSXWt0L+SMWfiujrCauXOXzaIYV0HiGrpzDA+/0GVTdCA5JOBv+V35cg c7wHlCcaMz6jDhq3twQaCZfliLBMiRjoNITG3wkBjrm8YzhVoi9/LZoTBFHmsNbH/1AO 7nrOw7jxL4abhXfkgI1sU4PYfjwyRYBGehXh/++y6G+/fnFT8QS9N8+NaTfapKazO2k1 3r/L0B8Y8XbDT6UmM1oMtaei7I0WOqH8H5hpS38CwJzp3B6MAEwzpiubz1s9zZXULZDR 7ddwjWvS1bT/Ka+EgbaiaiaH4is5gNt+ysr31lXi222h5WUOnjDV9Uoo1++SZPrakCIu 1OVw== 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=c/3S4mjblqRvWz49Q5GSxxKMFgTWlF36O3esIve3S3c=; b=RA0U6PG6Y9iK771fvBNsNhHW+VOrh8tI0zpkSSibTJ2hdpuS6p3gXZOojBOEnBwspn AuIcJpEwpDhtbgu6mPzrTcBMnHPhnoPh8uJkx6XfRdeL486roAzXUqAw9Nan9u9W1dcy ntS3QHE386Zt3S4Wxjrm2SnJB7fZu+E+1Uvx4a6cbGADpPge/6WjtmA+shgyaWpXXspv wK6ISYWV/AUp4OfSSdQNYkOCQ0FO93UJK5pom75sQz9NROAPj0DdG348rx9k7gNP3MrX DL4aGK2Uxx6cvgeQQViHcY3ObrjFQSqym2jC7Wre9tt22Cit5ggC/jTXk+0M6P6jBsyr jG8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=fx1HuzO5; 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 w14si9914164iom.23.2021.05.22.20.16.18; Sat, 22 May 2021 20:16:30 -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=fx1HuzO5; 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 S231584AbhEWDLp (ORCPT + 99 others); Sat, 22 May 2021 23:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbhEWDLl (ORCPT ); Sat, 22 May 2021 23:11:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B5E8C061574 for ; Sat, 22 May 2021 20:10:16 -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=c/3S4mjblqRvWz49Q5GSxxKMFgTWlF36O3esIve3S3c=; b=fx1HuzO5D5v44oIml1QNR3pzpu T1GVxnnz55GMV1yqkmRLIMIYxz7lg7mhiJoe/QAOFHqXjIFgwM63K/FXy2gqqS+Zs57ndoqOSE1Lq SSfyet17w/3KKHrIY0a2NXzQNgMV6fvM6XUEg+1atPpqZPCCoW1Fvf5lquV+xQFqwZ5h6ZDS3eI7d NgPhu3bK7qU5Z7mc/HOiya+/FPm05yx3XZ0KEZkTWlo5WksYeoWQQ6M3OFsBKax78RVKghY029Or1 Ni17KDB+QqxPkzpaBeyCCN89bzd/w/9KfWBNRyNmMd9z2M4KCvVfLKHR+2dIfWlxY/ulqPmqC1JlR XIJ5AR+w==; Received: from [2601:1c0:6280:3f0::7376] by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lkeV1-000I5t-FV; Sun, 23 May 2021 03:09:55 +0000 Subject: Re: [PATCH] LOCKDEP: use depends on LOCKDEP_SUPPORT instead of $ARCH list To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, 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 References: <20210517034430.9569-1-rdunlap@infradead.org> From: Randy Dunlap Message-ID: <71d07ade-af7a-8f7e-90d8-f4431943c7f1@infradead.org> Date: Sat, 22 May 2021 20:09:54 -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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/21 12: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? arch/h8300/ does AFAICT. and arch/parisc/ has user-choosable FRAME_POINTER and no LOCKDEP support. -- ~Randy