Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp692951ybg; Mon, 1 Jun 2020 11:50:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf/CMpldexlclXqBuGCdOuVpvr5HW0BsBzKCeVPBZtVb0vO6EIPyJWOitz3NYmMILdQAjw X-Received: by 2002:a17:906:2c10:: with SMTP id e16mr11294867ejh.189.1591037450488; Mon, 01 Jun 2020 11:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591037450; cv=none; d=google.com; s=arc-20160816; b=nEvdhWXz7ZvDQR7aSTI/g3RVws/nB9DqRtHoWmgpg6o4tVN/I8NYSep7vm+yvpMorT iBzEouUiNmSuNU06p3gOSNngfI3Vsnyi6FyotiONzRH3bHdi1RU0uHe6oyiCcJqIt5AD 9e9eE0eC7TN6zeaZFbGH9YHFoCCAgm/vD1BhnjbR+BJ5ahaFCH5rI6k18pP3BdPh5Lw9 T5AvIs4iIXEP8STbJmBzLtHBya4uxeM06EKaI7ZDYwrzHdwAhxR4mXBDSPE9bw8ugTqb vJmR4rtl1hnd9zRI96DUzQ4sbhHgjfU8DKxiwHIHbSJEJW7SM5OcV3yP9GJxxzuMvKRv SHxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=bTIqwBCxL2U/AuHSchl2Q5kdZGMc+OIpa4Qkndupk1s=; b=dNvUXWGZvyk54CILk5kQo9emMNxYMdiqpNBM+xsxrESEp++c1CFT1f7KLB3wiEB6aD MKI8C9JKhSfKgbKTrGA1zx1jjIhsaBJun5Cr466SS+WoMxOjaeNQtbuUlYHyPL/KUvnq uPt5ZD1PA2v+YNINOkqxgy4gk+8Oa27Gx+8Kfx+XC1iJZ0+xVJwDdQjNECbr1oeF4Old CHQwkBL0a9g0m/FQqQbjzy0zcL9vSxVTlMgL8TE/8JPDG18YQ4hcJQSVomdj2xqgdtNc CohFRjIlKNDGuB2RoC/7vnFWEqhuwYZtQRaoKap+Bwxp75PoJI/esVCyKUUNaeNtRbJY CrGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AO3gY2aS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si117502edz.508.2020.06.01.11.50.27; Mon, 01 Jun 2020 11:50:50 -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=AO3gY2aS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730855AbgFASqm (ORCPT + 99 others); Mon, 1 Jun 2020 14:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730064AbgFASqO (ORCPT ); Mon, 1 Jun 2020 14:46:14 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73733C061A0E; Mon, 1 Jun 2020 11:46:13 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id f5so563889wmh.2; Mon, 01 Jun 2020 11:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bTIqwBCxL2U/AuHSchl2Q5kdZGMc+OIpa4Qkndupk1s=; b=AO3gY2aSYpIr7miNszRocL1B8IKVRQsr5DuPaB3DxvCp57x3TimWhBec0LeTmOd6N3 GiA7u3UmbHRA+jbssGFkbt6AdJcYf6TEhXK63YQ9ha/ZmmxkJRbiV4GlwLxoWByOdOw9 9kibdYByD7/3bk5jDN6qhejTMwSfdERgBFNx8cojtpE5uBREwgEsGXJRJtORt05Wp49t gGtC07WRCEOG+gk8L49hKbPpklhnPfhmrV/gQsxNiHfk2whlPiLrhvVVazhpu/jZ52Zn 3H8BixGLMvxaiKKB2/snPODahcvJNlW1VIB3sq4Z3viSLfpmuoTtZn5C00HqULgaDEQM fUvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bTIqwBCxL2U/AuHSchl2Q5kdZGMc+OIpa4Qkndupk1s=; b=mjFyCa/7qzUT5LJ3KkVevoqAANdR5PQbxhytYqaC4FYgmrPIu+ybGAh7Mpk5xMqlOa B+shsjFpyY6CnDTFKd33xJ02ZAMCmd7D/xQ/CFUZYyGXd2ZeUOX/RGyRDAjeb/vyUZYe wFDfkw0yX97QU+VdtmZ9lckXlMSJZR1CKVR6s9GlujeeMCEHrPNnaPDppeSnp7HPdbot Bu0o2z2iKOBaro/3ZfpGKjaeo35gKW4TVIe6eYEVR38wdRqk/5VuAGpuQLNj++IS6RXW dgV2Xpq7azobU2ID5CSG7GbRhPxDgo0wMAlE8KK2xrm9i2m3Yb6Sg3zLUgzESWieLlmQ e+Pg== X-Gm-Message-State: AOAM5334bofqAZ+6MoQ+8K2PjiposAMBpXSBQUuFtJSIAZHHgqyImeVC SghzxQjWXcsMrLaj2+I8TVDe7cxhFauy X-Received: by 2002:a1c:4143:: with SMTP id o64mr553051wma.157.1591037171943; Mon, 01 Jun 2020 11:46:11 -0700 (PDT) Received: from earth3.lan (host-92-15-172-76.as43234.net. [92.15.172.76]) by smtp.googlemail.com with ESMTPSA id 23sm302229wmg.10.2020.06.01.11.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 11:46:11 -0700 (PDT) From: Jules Irenge To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, paulmck@kernel.org, mingo@redhat.com, boqun.feng@gmail.com, Jules Irenge , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu@vger.kernel.org (open list:READ-COPY UPDATE (RCU)) Subject: [PATCH 2/5] rcu: replace 1 with true Date: Mon, 1 Jun 2020 19:45:49 +0100 Message-Id: <20200601184552.23128-3-jbi.octave@gmail.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20200601184552.23128-1-jbi.octave@gmail.com> References: <20200601184552.23128-1-jbi.octave@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Coccinelle reports a warning WARNING: Assignment of 0/1 to bool variable The root cause is the variable rcu_boot_ended of bool type is initialised with integer 1 Replacing 1 with true fixes the issue. Signed-off-by: Jules Irenge --- kernel/rcu/update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 28a8bdc5072f..c18ae0cca512 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -193,7 +193,7 @@ void rcu_end_inkernel_boot(void) rcu_unexpedite_gp(); if (rcu_normal_after_boot) WRITE_ONCE(rcu_normal, 1); - rcu_boot_ended = 1; + rcu_boot_ended = true; } /* -- 2.18.2