Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp937589ybj; Thu, 7 May 2020 10:56:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJCv5of39qGh/8ZaeVA2qLG6xe0XsMHSv2pl5BAS8B5CKepFRWD0XIBw+BavqMHszc1U4YE X-Received: by 2002:a17:906:a418:: with SMTP id l24mr13250629ejz.362.1588874180187; Thu, 07 May 2020 10:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588874180; cv=none; d=google.com; s=arc-20160816; b=WT1vJgxkhTFOOUwPJfFzY+rj/BEnXsxDMyDrsISW4Lenrj67sR0JiRUwI20DclIoVc 9ahwgtotLTU8+hRaCa+1GyNYADgHdVKZcwwJZJ+MQCxkQD8bVA0ITvGNtLUF07wiDt5k eExkRMQ50wJ0a2B1FNWJn23Yb2th1DNyqPT22jamDseCdKHtwvT/Rel87fuNZ1uwLdjV EE0CL7B48vpijoJOw2HOIV/Hv48ET9r/ymzZAhhg52DxvTy6NMapRUCAEIzKPu2Rmm6W q2HPdv1rQPPfMXVszMFFqa5XCVevTFIG78PWN1WXhfME5a3CBBa2uG4rWWkk5oMp8tsQ YePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=1NEwy8RLwyzyDvrr+Tp3cQzf6g6H+W9P4bfFeVrhOeY=; b=MNnyV17YvMMZAJSBothvhD6aLUsnfQNOfOwNVdtLWfK10d8bIjsQ2M/GMnvb7FCs+y K29soEOEyUFrtiNCwYLkVs84IoMiPmY1v6+62Ri7nw6QTvHxDvT4t5oIbK+3IwPyRFwc OVG5bVyWPDGRuYRkCbIja6rqgAeGiCbzty0qgE8Gv2jrltxX+Sl4EqOD9uGiNFTRJJh0 MuCcv5JdHrVYYn/XxfgU3Q9J6wX1ck2EJGH9HfoQo0saRMmkwdPHKHkVrYBg/TwCKDG0 /0m22JDb1hgETBzneCsIQEPptWHdwUfvYfZ7zOUBBKaT9Vzj+3ex2JAOXQwDSgQceOpl oYvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si3458655edx.313.2020.05.07.10.55.55; Thu, 07 May 2020 10:56:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728073AbgEGRwL (ORCPT + 99 others); Thu, 7 May 2020 13:52:11 -0400 Received: from foss.arm.com ([217.140.110.172]:36626 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbgEGRwL (ORCPT ); Thu, 7 May 2020 13:52:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E5AF730E; Thu, 7 May 2020 10:52:10 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 91C913F305; Thu, 7 May 2020 10:52:09 -0700 (PDT) References: <20200507110625.37254-1-yanaijie@huawei.com> <20200507132828.1af39b80@gandalf.local.home> <20200507133024.18dbe349@gandalf.local.home> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Steven Rostedt Cc: Jason Yan , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair: Return true,false in voluntary_active_balance() In-reply-to: <20200507133024.18dbe349@gandalf.local.home> Date: Thu, 07 May 2020 18:52:03 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/05/20 18:30, Steven Rostedt wrote: > On Thu, 7 May 2020 13:28:28 -0400 > Steven Rostedt wrote: > >> > It's perfectly safe to return 0/1 in a boolean function; that said seeing >> > as this is the second attempt at "fixing" this I'm tempted to say we should >> > pick it up... >> > >> >> Actually, I disagree. We should push back on the check to not warn on 0/1 >> of boolean. Why is this a warning? > > If anything, we can teach people to try to understand their fixes, to see > if something is really a fix or not. Blindly accepting changes like this, > is no different than blindly submitting patches because some tool says its > an issue. > I don't disagree. To play devil's advocate, AFAICT that one coccinelle script is part of the kernel tree, so some folks may think it worth to reduce the warnings we get from those. To give my side of things, this one felt a bit like the "s/borked/broken/" patches that folks send out because they have a spellcheck linter, i.e. the change is purely cosmetic. But yeah, I suppose less gunk to go through via git blame is preferable. > -- Steve