Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2595418pxj; Mon, 17 May 2021 05:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ2FC2iubvSn8Az8QaFwR5G4O6RerEaQYV42R72e2lGUx3l5+uDuP2fhfUuZoYmVhQfVJ8 X-Received: by 2002:a05:6602:21ca:: with SMTP id c10mr15625653ioc.10.1621254612736; Mon, 17 May 2021 05:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621254612; cv=none; d=google.com; s=arc-20160816; b=I2KWbYyGDyNrTQ+/gwLeqFMZlST4t6e86FpGsYder91C83yoD2gMKwwAIVFMXC3/VP eENBMEVkrq5SQ89ajYG0NEmd/P2eOWxyiTNX41wX11O8PrRl5iyPq9TmRx7TreJFNsw0 YVLA4Z4faucHck42gCly0k8KHOD62TYkFT8YZtSNQL5mkq4l33UJ+VkEGVk/Ov1K1gS8 7dJMXjBklB6M+84aC/So3BimhTogxygcr6SX5QfxdEJZuc9lR+qWtWA5729BrJGfLb3T y/7UNaBAE3yGk0omjrzVZn7Zz6B70U2fC29johG1wDAfEp9Hb6DsE0yE03sgxKrKO6lq vQNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=EWyJokz4bieElImfwurmiJOl8vOUBld5Swkb1bhKswc=; b=cBlNE/jgPcYjYvcLdTy3iBfk1qGxD9q9U/gFAdHGhZ/DSlVU6FhiShhO8ctLZgJkJD esbAjuf2OgTL1oWiYOteKRhoukcpHKflg5a+tv54qD01YJYBpQvYWgUai5LDAb+6lyJz SbX6jVnw704JepsvzZxrsbhLC2RVOee2KzPrTqgEnPP0Xp+Tj8WFvh4juKJRSwCWjVU6 qoKgH/gkETnokcpzbmeuYJAJKWNqUuLj5t2vAKOw0R45EQP4jGQSunRDZjC95FrJ3rIx T9p8M/IoUwVmtm7Foq3Ih2JLWq0TpFaElM8zzL1oUOCe5SzZ+F/i6XXJH2LImNRw9Ned Os/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dmrhbzy0; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si5361271jan.54.2021.05.17.05.29.59; Mon, 17 May 2021 05:30:12 -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=@gmail.com header.s=20161025 header.b=Dmrhbzy0; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234649AbhEQHMX (ORCPT + 99 others); Mon, 17 May 2021 03:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbhEQHMW (ORCPT ); Mon, 17 May 2021 03:12:22 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C027C061573 for ; Mon, 17 May 2021 00:11:06 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id r11so5516092edt.13 for ; Mon, 17 May 2021 00:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EWyJokz4bieElImfwurmiJOl8vOUBld5Swkb1bhKswc=; b=Dmrhbzy0x2SMKqESiOBZjHxgUn61zc6Xsh2TIaAznGX4WLXegX/aY7uoN2EHbwSCg4 3V3gw/vyIaN1ZdhKpXHTepT9CDpwZW4oT5HMHtbzxPsZLjnZe5PzjSkyNKd3ilyRCgts RwR6loIsMMua/WgUv5aHK6UFobOQinzdYxNpAeDGPxK94n9K4RY7fNNYT514ko7No83e 0eCYxqrGc70W0xa7iUb7JIKRVxJrUWx4Yr43snORpt/mh8gxMbE7geStNiecbZ76i0Tg LkR5r4/Gm9fN2G4iZW2Gkar9uR/6ZZR4hYC+P42YSW/TA6wQSiyafFieH5+U+P8gaZBf nF9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=EWyJokz4bieElImfwurmiJOl8vOUBld5Swkb1bhKswc=; b=R/1BDV6BqPq647e3FpBrpxVXynTaH0aM2AufxYuKJPGL06lEmzvUSE1o+l+9nTM9pi sGmrXmnXIN2DIXvY3pdPHp6TY905gtZTs5zBjVGN3l8Jfl5VwkXBh31Rvq6bH2eYtoj2 RM2BH2F7/fJfIyI0wywjy+yfWgWT8OKjPkGQdnl9X42CyMmTbXcpnm8VnbfZmYY5iBdE yhrFeeYhQ+VuzGO4xMVN+jA+BmTGeBeD9NBXPJx9JRj2NE0/yfm5bh1X+drvW2PLswxf NC5CqKyjf4Kgl8Tc/QhOFKlk3mzLFA6gShpSAcXdzWuBM9waFJGcbgxyWxF+eiCX+47D Gifg== X-Gm-Message-State: AOAM533HddoLk7ZsPl2VqECLDiUWlMWE4WJv9jPnaYk+rZ9eDNjNh2TC kgpkHh+YEultHfapLWr1mU8= X-Received: by 2002:aa7:d3c8:: with SMTP id o8mr8054972edr.181.1621235464732; Mon, 17 May 2021 00:11:04 -0700 (PDT) Received: from gmail.com (563BBFD3.dsl.pool.telekom.hu. [86.59.191.211]) by smtp.gmail.com with ESMTPSA id d15sm5917572eds.68.2021.05.17.00.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 00:11:04 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 17 May 2021 09:11:02 +0200 From: Ingo Molnar To: Randy Dunlap 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 Subject: Re: [PATCH] LOCKDEP: use depends on LOCKDEP_SUPPORT instead of $ARCH list Message-ID: References: <20210517034430.9569-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210517034430.9569-1-rdunlap@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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? Thanks, Ingo