Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2906524ybb; Fri, 27 Mar 2020 14:25:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsnGhoPiKdP5CGIbCFX2DH0oFB4RYxMG1ylc3vMPUW5HH8SvTJ/EB0Bta0NUVW9yw9hZq2/ X-Received: by 2002:a9d:6ad9:: with SMTP id m25mr605711otq.160.1585344305396; 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=PaAILP74OXMAUC43Don1zYDr7kXJQRwmY9VBywm1MOENmStDlIG2VpClqzLCViTV+A 6lwoaw6DGhPizH5iMCaQhBDHeZiVtH6GkPkxNX+iWRuHrHbOnL0cyVM2op9gpUKWql40 koxlcg1KBQBwg07pr4fimhFOEHdrAtDjogmgNONwadOXUQs+WUR2Mh2SgseMJ4v50PyX Xrqp/9++ZXjGmg6MDVeJfvFgltzaU3h0I9b/L6HsGhGHbjhLfiZ9GF30hLnzMwhyNTVW CgwnpxH696FyUtT1iWgVIAkmdzi67xzsq/BEpwq3v6Z+Yb4VRJDYHTSWuit1ndVgC1Dy EaIw== 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=2U7oLUCsJOQ4a/FLlJ460vCsETAhV3DLpMjadPQVC5c=; b=OqmrD0eXJKcC7xrpDWVyaf9TTXKkeuc1KdF1UYsN9cF5dDg4j6YnEC9M1+22cwtzUM Wx9ga25Bk2qNw2Ak4wNSSvFp9b5bj+7/FZtX8otFYRVQVT788E3P6AwRzSmAwTpYR8WN ymepOgD3nTzNZqB1A+T9a2o8gc7GukVGOYcWvFbEanola8D9bfH0+eDJcDwRE6b62KOE 0Z+WbKr/gCKyJQcHY7x44/m4Yuzx2unxxuyOCXhSgTof0Bw7JEyqB+/9Y/Z9uZSK8dRP nD95f1GPCCB+oWu14iqc74gnpZg3yph3ChZNsZwVL1H/zyJ8GBQRA5ltGmEt7wrlPLM8 npNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ki/AziaD"; 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 p3si3307928otf.106.2020.03.27.14.24.36; 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="ki/AziaD"; 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 S1727620AbgC0VYU (ORCPT + 99 others); Fri, 27 Mar 2020 17:24:20 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51907 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbgC0VYT (ORCPT ); Fri, 27 Mar 2020 17:24:19 -0400 Received: by mail-wm1-f68.google.com with SMTP id c187so13034380wme.1 for ; Fri, 27 Mar 2020 14:24:18 -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=2U7oLUCsJOQ4a/FLlJ460vCsETAhV3DLpMjadPQVC5c=; b=ki/AziaDhT4ywGicvQ/vCu4L+QgCFYdcK6+O79hjwsD210Ks1920AJhKVDC1+qJspu YCxtKpnOt4fu8KFH1IHTMe+AHsuux+Q4Mgti7+rKo9FR1kt6+nwhwHLO+RxEqqZfQmul joAZlzHzoCTbAer4s/c2WE9JTBgRWyOIreg9s18UeVCcIhkC1D3bdB/QryomEVjt+y6G 46O+pLYN0TMVtcQn1roKGMdNFcyopmdIZEFmOpAyO96BNAQ3jP88V5z9BmTQmWb2h3QN K/PCbTE0APX6hZRGE1STrdocLxnYwt258rus9XExM6dcrdXk7TLIv4jCUSX2iP4gETqW 6uWQ== 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=2U7oLUCsJOQ4a/FLlJ460vCsETAhV3DLpMjadPQVC5c=; b=Ix0gJlAQoKIldd7QeBNQL26rm5uTHMgZHwwgcygrrO7LPhGDpdIKvD0kmfAjrf+vIF y5k42CykWZpxd0ywvCMWW7zfn6tUcinD3N3J4ZgQPPFmKLg+N+hp0U5Hv2dkQJAC0EEG y1t9cHXMl0kJ3K8H8cXITvw8rEwC9D65oqIB/82GKA+MjMI2HZqKKHXZwaXyojEO0oGi 4oSqBmffkH+WG4DepRSPiJgnNPdt1FlwbLkY9o2GUpWMefhTyKIJP3svMUR2vwmR9Awf Ce9Scu1A4YMNwCnAkmReLfzXf7p83CT8zXRCfuPBwhblurY6k2WTsU797JVt1t6l5Cbv r3GQ== X-Gm-Message-State: ANhLgQ2Hp94YaCDQ14br6m3/AFF6dk0Ii4iWp6PeNGc7Q3N3ID4Nfwp0 8XENmWVgNJMIG2mrmtsqIQ== X-Received: by 2002:a05:600c:20a:: with SMTP id 10mr739151wmi.135.1585344257389; Fri, 27 Mar 2020 14:24:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 14:24:16 -0700 (PDT) From: Jules Irenge To: julia.lawall@lip6.fr Cc: boqun.feng@gmail.com, Jules Irenge , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org (open list:SCHEDULER) Subject: [PATCH 02/10] sched/topology: Replace 1 and 0 by boolean value Date: Fri, 27 Mar 2020 21:23:49 +0000 Message-Id: <20200327212358.5752-3-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 sched_energy_aware_handler() WARNING: Assignment of 0/1 to bool variable To fix this, 1 is replaced by true and 0 by false. Given that variable sched_energy_update is of bool type. This fixes the warnings. Signed-off-by: Jules Irenge --- kernel/sched/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index dfb64c08a407..9d70cc68e549 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -221,9 +221,9 @@ int sched_energy_aware_handler(struct ctl_table *table, int write, state = static_branch_unlikely(&sched_energy_present); if (state != sysctl_sched_energy_aware) { mutex_lock(&sched_energy_mutex); - sched_energy_update = 1; + sched_energy_update = true; rebuild_sched_domains(); - sched_energy_update = 0; + sched_energy_update = false; mutex_unlock(&sched_energy_mutex); } } -- 2.25.1