Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp873979pxa; Wed, 12 Aug 2020 15:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM2CR5QltvXXYTm07dBG1pmBI/7oUXr7OjDR1dNd6CoJuQoB1H5VvMeotRM9cXkVnFm3t8 X-Received: by 2002:a17:906:2c4a:: with SMTP id f10mr2075521ejh.352.1597272585411; Wed, 12 Aug 2020 15:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597272585; cv=none; d=google.com; s=arc-20160816; b=dFD7KVg0GlJWkYa80V+McN4TX3EkScLp2gAorKHW4VkTYCo1ot3vbb3+K7351vRXuK eGSmZ2bgnZSzVXjvXXk7PWgi05n2ZErBsXBQgniEuHUa5EXbEffRGdePCRj9K06x/QWV nDWjCcSoJyOzt6S8yLGVW0tv/7aMivbfMM2hnQO+nu3hAKQqfdKu0k2rHp2L7OcPtTbe qvtTjcMNIcLI0CTzA+ofbdAXi7Gpf/qFjRYwCqXIL1C8wrlRsU2vB1r2Fe2yIAzgu1N0 eVX3FTqJbocxYyBCo7uVZ9xy56EYXaxOEUeWi+J6RESi3vyqWDIH/CTnPkn5v+uqGxgY MTXQ== 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=KOPIbjiThkuORvQcsj6IuEIrOQQQKq7EOaz9y08pPsk=; b=ELbpee+gi7fXnqtoivmeHGqyjNg3m85bv1FH3g8Q3AajdHaV87sSZIVmEJHVqZEbrw WntxPWKWv2EKtvQY9sAQ1XQ5sp4dTIawCHZvOS6rnxsv4PCtL17Ev2Z8PORKpfBiUdr5 fzDUzPYGMdnvLCGGGRcWMPOMLQ4WbGRv+9Ruw9qIKX6MP6hN1W+OggSF6ynVthdC2yC9 mW1ouwD1bkCXh92p2pjWnw0sDcO1TNI8kuNzwHgu3JEX3evu/nbrcxlCpzBaGn40UeGK mfJNoDnaGGlyC9bnqv022qHiT1d5rP/Eyy/SYyLnNeKsB+FHzwCYk5ZpONl3wASPip5f Iy0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=INtZAQeX; 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 v10si2084971eds.470.2020.08.12.15.49.21; Wed, 12 Aug 2020 15:49:45 -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=INtZAQeX; 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 S1726523AbgHLWqg (ORCPT + 99 others); Wed, 12 Aug 2020 18:46:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:37246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbgHLWqg (ORCPT ); Wed, 12 Aug 2020 18:46:36 -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 197ED20771; Wed, 12 Aug 2020 22:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597272396; bh=oc+ohRag7pYOn+FcUWQS7UZxM6OM07zEbxj2hV6ktV8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=INtZAQeXLlaOFthMX/864ZzbNKQTD+ov/t+kWeNzZUhit0Jf3Jd9Z8nLd4nY9dFqb iCj1Hx9p/2E8NiPhWgyDaGP57Hke6JoYpsGjELW50PP0MAzJXXF/37b9p1DtACAp0Q JDX7rTFJgf/4U6yVCdJzNSL4CdRrBx7mN8mwtGKY= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id EF6943522615; Wed, 12 Aug 2020 15:46:35 -0700 (PDT) Date: Wed, 12 Aug 2020 15:46:35 -0700 From: "Paul E. McKenney" To: Marco Elver Cc: kasan-dev , LKML Subject: Re: [PATCH] kcsan: Optimize debugfs stats counters Message-ID: <20200812224635.GL4295@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200810080625.1428045-1-elver@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Aug 12, 2020 at 03:02:14PM +0200, Marco Elver wrote: > On Mon, 10 Aug 2020 at 10:06, Marco Elver wrote: > > Remove kcsan_counter_inc/dec() functions, as they perform no other > > logic, and are no longer needed. > > > > This avoids several calls in kcsan_setup_watchpoint() and > > kcsan_found_watchpoint(), as well as lets the compiler warn us about > > potential out-of-bounds accesses as the array's size is known at all > > usage sites at compile-time. > > > > Signed-off-by: Marco Elver > > --- > > kernel/kcsan/core.c | 22 +++++++++++----------- > > kernel/kcsan/debugfs.c | 21 +++++---------------- > > kernel/kcsan/kcsan.h | 12 ++++++------ > > kernel/kcsan/report.c | 2 +- > > 4 files changed, 23 insertions(+), 34 deletions(-) > > Hi Paul, > > I think this one is good to apply. I do not expect conflicts with current -rcu. Applied and pushed, thank you! And as you say, no drama. ;-) Thanx, Paul