Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3183336pxk; Tue, 15 Sep 2020 12:14:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzZ9ZnwpePsNdVZXpfFtrSVLw52Ru+5Ktbel2knsXqP8CQisqtjGgTUPl8kEA2xJqMgSm0 X-Received: by 2002:aa7:d959:: with SMTP id l25mr23537986eds.383.1600197253630; Tue, 15 Sep 2020 12:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600197253; cv=none; d=google.com; s=arc-20160816; b=bc0qrheCgjlfD2UknwMSczMkOMelRTo7/uFyo3lRUjXNiyrJ019uJpOoaLrFdy3Ky+ HxIptPzJkHwDS9DUj/TLf9DKyhE3sIAyNqgL0vdGmvBsSPbndxqnJ6xEGv1+s3T9s5KA F1LLbUwlkQ3KRzYAvD8N3xUQNfAs0obhHx5pfvOYW6kJkOrRwp9L0YRkGPjnIaPdIbNb xTibJOL220S5OuHs1vR74XWR544X1DrL9+UzDgp9oqUiD1deWgutlBUg3+pXPTBgMgXP ODM39VwaoPjL4cX335U02xQloBmUl4ixMtCJ9TOR/yvtK3u4mD5hfFUPD34/XDz5iuRu SPXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=YM22+rCU7ygL7YCCmJpph2nJontw/E7R3xla8P8HCYA=; b=g7+7jtjmGDBldvwG/BY+P07sdWqsxm+QumYN8Iy8lQOaARjxvso1eNMWOAmlF3pUUy I6RYAGJs3Ks8zTd0rJZgPrS0ceAkNb6lHhGzoxjh+QNCDYhDUHE8hlu5Vhh7O882AL9U +EcbgW6KWhCuM4k54XnSO7gWRO+3ih9Jc6qlC3BIjCWSlJLbdc/BsGRJH+HXLuAuzxE4 7mlFTzQE5xk3pG3x1G/Q1r7m8BC64bOI+GLKW13tNPnQ9o86ndmeiz+dCdkG3H8V8+Uz da9IqwO9TQ7/X4tGt8dc1J6zaUKUfXRaB6etiZlKWfWZXTQsqFpnastcjvyCKAYYj6lQ pyew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=US2HCjeq; 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 h12si10306998eji.301.2020.09.15.12.13.50; Tue, 15 Sep 2020 12:14: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=@kernel.org header.s=default header.b=US2HCjeq; 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 S1727697AbgIOTCC (ORCPT + 99 others); Tue, 15 Sep 2020 15:02:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:48312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbgIORLm (ORCPT ); Tue, 15 Sep 2020 13:11:42 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 253A92193E; Tue, 15 Sep 2020 17:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600189339; bh=IUpCyffZBng6VxFe1zQQa34I+E1YixGJRW8ke5R6BkU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=US2HCjeq5zZ7QUapdgMHz7lBhcKDI8o4/0gc5V48E3u5ZnY7Qry05+cAsbbP6UK8w GL0/27NqNOhjC+Ugi35BkiO5QL1ozuwuULmKDZECcGDyvL4AJpmMGghqBLqUs9bVei zAYnUjwmkJNBd1b/FPKRilsTyAC9MnKfC1Ii/Kkg= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id E824235226B7; Tue, 15 Sep 2020 10:02:18 -0700 (PDT) Date: Tue, 15 Sep 2020 10:02:18 -0700 From: "Paul E. McKenney" To: Jakub Kicinski Cc: Joel Fernandes , nikolay@cumulusnetworks.com, davem@davemloft.net, netdev@vger.kernel.org, josh@joshtriplett.org, peterz@infradead.org, christian.brauner@ubuntu.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, sfr@canb.auug.org.au, roopa@nvidia.com Subject: Re: [PATCH net-next] rcu: prevent RCU_LOCKDEP_WARN() from swallowing the condition Message-ID: <20200915170218.GN29330@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200908090049.7e528e7f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200908173624.160024-1-kuba@kernel.org> <5ABC15D5-3709-4CA4-A747-6A7812BB12DD@cumulusnetworks.com> <20200908172751.4da35d60@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200914202122.GC2579423@google.com> <20200914154738.3f4b980a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200915002011.GJ29330@paulmck-ThinkPad-P72> <20200914173029.60bdfc02@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200914173029.60bdfc02@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 05:30:29PM -0700, Jakub Kicinski wrote: > On Mon, 14 Sep 2020 17:20:11 -0700 Paul E. McKenney wrote: > > > Seems like quite a few places depend on the macro disappearing its > > > argument. I was concerned that it's going to be had to pick out whether > > > !LOCKDEP builds should return true or false from LOCKDEP helpers, but > > > perhaps relying on the linker errors even more is not such poor taste? > > > > > > Does the patch below look acceptable to you? > > > > The thing to check would be whether all compilers do sufficient > > dead-code elimination (it used to be that they did not). One way to > > get a quick sniff test of this would be to make sure that a dead-code > > lockdep_is_held() is in common code, and then expose this patch to kbuild > > test robot. > > I'm pretty sure it's in common code because kbuild bot complaints were > the reason I gave up the first time around ;) > > I'll expose this to kbuild bot via my kernel.org tree in case it > doesn't consider scissored patches and report back! Sounds good, thank you! Thanx, Paul