Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2845570ybb; Mon, 30 Mar 2020 14:17:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvxhNyoCErPq/KYJ5+f5UIbY1hgIoWnMM4XjikqhKX4U1Pp8mpc8mIZoAeCEYoBx9NYJdRO X-Received: by 2002:a4a:240f:: with SMTP id m15mr5918440oof.85.1585603025716; Mon, 30 Mar 2020 14:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585603025; cv=none; d=google.com; s=arc-20160816; b=qwc6M5A9VpijBoQ6nUaeTf8vF3hvxFmHDIVNwWxh4iovstJvQ1oFttcREtJ+48T14G phuMIwFvWSsTDTptDLo+x7lOW5nsxZJ7MNRwbTfpxQpi8mhP5ZL5ACFUV2Jls6kgGEWO 1kmFf7eTOsRfOK0KYKu8ydMCzaWj7RqTk5QUXSF2VFNfIdyWwGUnDLfCRXR04VtqwzeU zx0A0dbi9zJq8iqcq28RyMJXpKwN/Yx9Wyx+XesAiSwOfr8E/0Iu6qNgF6IdMKatHSwc W42SZfON7gmiUK2N10dGCxUa+/DvOzZI5IeTks6+OH41/zMdW/mDikGZG3DHqOQbzzzQ Xo9Q== 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=q0KYH8++LRA57wOH6qMgBb/LqshySAD6DaDBRafSTSw=; b=jPnQu9t3wsWOtsLabWA9Vot4U+Do7MV1nATLxVWa63/EZ+/1k6yCVPsSewX/lw0o87 RSC5C4fsxH6Ijr6WUyGVq3tAdWWV1nOTBsm7IaCd1DsAseN2VUtEkT6403x3q23ZE/aC 9o6fZYSKqlIvgmRbc2Q1KFj/vfkacn3NosCgfWy7RVXpO795MR+x+4C0IWqXmfWCEyWo /iJQgFHGM4zoHsdMfu9eC6+f+q/1jSeLa2G3mgA/sXtJzk/psZrsrpEid9kRggUwvwSw ZypU4mvdUNXR+RAVQE26Qy+G6QBdxjMLDkWa2cFw8IQ9lstz+Y6QnvRoJCJrpGT0lcPq 2XJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ua79KH5U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 30si6403024oth.68.2020.03.30.14.16.53; Mon, 30 Mar 2020 14:17:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ua79KH5U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728874AbgC3VQF (ORCPT + 99 others); Mon, 30 Mar 2020 17:16:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:52868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbgC3VQE (ORCPT ); Mon, 30 Mar 2020 17:16:04 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 56A7E20733; Mon, 30 Mar 2020 21:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585602964; bh=yYQpEqTlJC/6Uz9HelZxuRA+BqiQPCT+jSly2DQyKv4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=ua79KH5UDCgdqxwUx0v+TEn1ok2zYWzFF967w2Z3/t22zNnxcU/8fwrAujtyXqsTh 7oFgJWBYNpE7SO6KD/L6CO/0qHfC/8EKSBnnt374pb7OPens6HN9N5+LKfN5WrJbod lmwPoDNmz9RdMrsT7aEwoeN0EF92MN2l6WpU9KoY= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 2C3AA35229BC; Mon, 30 Mar 2020 14:16:04 -0700 (PDT) Date: Mon, 30 Mar 2020 14:16:04 -0700 From: "Paul E. McKenney" To: Jules Irenge Cc: linux-kernel@vger.kernel.org, julia.lawall@lip6.fr, boqun.feng@gmail.com, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , "open list:READ-COPY UPDATE (RCU)" Subject: Re: [PATCH v2 2/4] rcu: Replace 1 by true Message-ID: <20200330211604.GA6655@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <0/4> <20200330012450.312155-1-jbi.octave@gmail.com> <20200330012450.312155-3-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200330012450.312155-3-jbi.octave@gmail.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, Mar 30, 2020 at 02:24:48AM +0100, Jules Irenge wrote: > Coccinelle reports a warning at use_softirq declaration > > WARNING: Assignment of 0/1 to bool variable > > The root cause is > use_softirq a variable of bool type is initialised with the integer 1 > Replacing 1 with value true solve the issue. > > Signed-off-by: Jules Irenge Queued for review and testing, thank you! Thanx, Paul > --- > kernel/rcu/tree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index d91c9156fab2..c2ffea31eae8 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@ -100,7 +100,7 @@ static struct rcu_state rcu_state = { > static bool dump_tree; > module_param(dump_tree, bool, 0444); > /* By default, use RCU_SOFTIRQ instead of rcuc kthreads. */ > -static bool use_softirq = 1; > +static bool use_softirq = true; > module_param(use_softirq, bool, 0444); > /* Control rcu_node-tree auto-balancing at boot time. */ > static bool rcu_fanout_exact; > -- > 2.25.1 >