Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2906511ybb; Fri, 27 Mar 2020 14:25:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvoPbORjm3cHw6lS0pjGBlBusmiioRd3rq3Z2ZDie/Yw/MWPuIoRMEmzyOFlmV4NKD3ANN/ X-Received: by 2002:aca:3dd7:: with SMTP id k206mr633167oia.87.1585344305086; Fri, 27 Mar 2020 14:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585344305; cv=none; d=google.com; s=arc-20160816; b=M+u8HQeK5DPWSdY9sgrxijPwqxBk6FSoQWeUNBW6qKE24Q5wSLWx7nolgZCjuVVW/o F5B8BCkF0D3PUaAlx9mtmKUwe3j2QhtOCiapgpvR2dHObG4TB0J9SO9U064vTMFxCu62 t6m9utZWaLHZ82M1K4Hm0epprrthqhe3jh/XFICYEB7nDva+YEhKwKo2rlKWIERH6BIL yHWQvFWafOXDADhvdAc8nAXFt0j/zt3Kwgf2MmO4Erb8i2LCANBLboBcSi+Lmg+xNyO9 pZUrPh32uYk9cMKVKBwzG/UzDyE0nTtm1mx2KteprLl2iRaAIxWw28TrjxGArfrNs5n+ Hgeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4xPO8eVqTt9l/uaZnaIr8tbja2hwuVvwRYCjBY7pIEI=; b=yAVAGP5m7fLsxD7LpaiDBI2gg/WV+D1TnR3ZSOwsHk1TXCKjNpfWpMWbgn94NPijfH 0NpsipAxao9L0msAeaGb6/UYBINwqCNon224EZYhk3EkwlZr1RzdQkfrgq2O96RW5314 i9dfFmfnLdq5sq4Y5dAR/Y6oMh1gpAjEXs/AmYnp4KaA0bYj68XoXGVOVPDUsnb6pbU2 2oRvX8MDQKm0tkbIj2tBOS2h5l3d+0hpylbqZZcCGZzHl+B3ONaDGbAlQlwJcui1rW43 /x2EaS3yYKcj5us4PCYouEmDCMKGWntITseuzL/uXUTbt9cnPt7NK2PxtNEpFagWvPVl OiOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cu7jsjpt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q21si2744141ooq.38.2020.03.27.14.24.46; Fri, 27 Mar 2020 14:25: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=@gmail.com header.s=20161025 header.b=Cu7jsjpt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727703AbgC0VYX (ORCPT + 99 others); Fri, 27 Mar 2020 17:24:23 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40129 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbgC0VYX (ORCPT ); Fri, 27 Mar 2020 17:24:23 -0400 Received: by mail-wm1-f67.google.com with SMTP id a81so14030745wmf.5; Fri, 27 Mar 2020 14:24:21 -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 :mime-version:content-transfer-encoding; bh=4xPO8eVqTt9l/uaZnaIr8tbja2hwuVvwRYCjBY7pIEI=; b=Cu7jsjptYx1vrlkZ+q0qkFuoBaDuIBDgeHxvr8Nuk3xWzkEMNQDP0aqJwfu2STJcPW SsYW9f61kOijmKWztqze+OrlpUgHu31J6pbz3MnftiRRm/z1px3yk2OWGGZs7aIWw/LY sKHdff/FGRgPC2ugoDX+FNfuu8zJnPZOk0NJ5tuFmOVEkhQHMZcoakMXjWuT+vjpMArH oVtDq06E6ljA/iBklFxhw1R54woFRTondSOpKMmlYjQ61Nwo4+mC0jmqw6ncFOvG8ru2 jQGQtx7BoCiqK6WNoQ+lUcspy7IJP4EyTerilz3j1OA1umSgXjY1WWp0KfeCHjJiA+ps EXZg== 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:mime-version:content-transfer-encoding; bh=4xPO8eVqTt9l/uaZnaIr8tbja2hwuVvwRYCjBY7pIEI=; b=pmpSSNRgmwwCyyzRQOvpuwIpzJm5lv/rXGQ2jM5sX1PEQYVDW0u7G1BPw7qqIPMfLy dkVmF8dt9j5HOvKt5yfDF6TbOV0uzLHfaRCsEi4BMWWpricOjTetdU1g/DivHbjaBT+Y 1L0LlGOYGeBbsIF7sgfL0PHH+pSRkWHdFgPbmkhj4UfSLd6lVK6CYZJjja7MOwGV67ZB 69HmOB7IE97SoWEl2gTYf5lC9UE8IHQGEaQWYCrM5FC690kDv7bGVrOfGOE5pyBYcdM5 0hcOYbL8yKVwZhGIx0/GAjBNB+h/bwlfzQvpxn99ob+j+VSGU6ad89mtu5GTG4wZLMvD Y4hA== X-Gm-Message-State: ANhLgQ0TStkqDWyqWhRRndsV7CmchLCcyxUhcZl4DxTs2qmC7u57s0DN oelLaE5lXeHzvonl6L0a/Q== X-Received: by 2002:a1c:147:: with SMTP id 68mr795846wmb.28.1585344260673; Fri, 27 Mar 2020 14:24:20 -0700 (PDT) Received: from ninjahost.lan (host-92-23-82-35.as13285.net. [92.23.82.35]) by smtp.gmail.com with ESMTPSA id h132sm10215141wmf.18.2020.03.27.14.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 14:24:20 -0700 (PDT) From: Jules Irenge To: julia.lawall@lip6.fr Cc: boqun.feng@gmail.com, Jules Irenge , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Thomas Gleixner , Peter Zijlstra , Josh Poimboeuf , Jiri Kosina , Ingo Molnar , Vitaly Kuznetsov , Qian Cai , Arnd Bergmann , Tyler Hicks , linux-kernel@vger.kernel.org (open list), rcu@vger.kernel.org (open list:READ-COPY UPDATE (RCU)) Subject: [PATCH 03/10] cpu: Remove Comparison to bool Date: Fri, 27 Mar 2020 21:23:50 +0000 Message-Id: <20200327212358.5752-4-jbi.octave@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200327212358.5752-1-jbi.octave@gmail.com> References: <0/10> <20200327212358.5752-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jules Irenge Coccinelle reports a warning inside __cpuhp_state_add_instance_cpuslocked WARNING: Comparison to bool To fix this, the comparison to bool is removed This not only fixes the issue but also removes the unnecessary comparison. Remove comparison to bool Signed-off-by: Jules Irenge --- kernel/cpu.c | 2 +- kernel/rcu/tree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 9c706af713fb..97f8b79ba5f5 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1682,7 +1682,7 @@ int __cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state, lockdep_assert_cpus_held(); sp = cpuhp_get_step(state); - if (sp->multi_instance == false) + if (!sp->multi_instance) return -EINVAL; mutex_lock(&cpuhp_state_mutex); 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