Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp990488ybj; Thu, 7 May 2020 12:09:18 -0700 (PDT) X-Google-Smtp-Source: APiQypLQRc9SaDhuBGM5AKnx1knV+eh+ZeyqZE4GBwkfdKOi2aB2oTwld3wy3EDiAhYuAH4uZ9YR X-Received: by 2002:a17:906:6d90:: with SMTP id h16mr13304144ejt.117.1588878558676; Thu, 07 May 2020 12:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588878558; cv=none; d=google.com; s=arc-20160816; b=ZNmrqlEgtCQtVC4ciq102v/kZOsKm3ouva4ZqXHxgZhHn+yjoQDRdMMkQcN7Wg8Eeu Jh7niVZs4C7RwzvVrYFXQjF3MJnd1puE1gshhkRCyFC2ZEO6bSoXRzliainQ/e0rmhEC m5VjzKEWC0YXMvO/aeXx5zso1djtWIrUcFJuQL3z4UibeTg8fiKpL1sMMNnjUhCc/DcA GjtyWQ9yLrXfokEAqzVAlWWifJ3LNOcxfbbD/ehdDDbIHhjvUBf4j9xsOo/0Jkyep4NQ gy8mMpZXzHD30eIedrMoGl7f+vWLeIULGenInaCJYFJTctRsOJLdA8rJKazA2AZpHQZ/ ACyA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=/1vTOpX9BBKz6srf/0/R8bVecAZmlJROLzu0VibZ960=; b=SwWQa1EvHfj9jOOCaUAXIjkdpqPqq4rRy1Kp+6kpzAUwq3o/X0fTVweCVrX4pikFr0 ZaFCTwTxdr9vMyy91LuMDBBzpT1oL9kD9iCvHkaud74DVVEL3h3FwNikLTsHyzPEcTOY yJfDqJum4TWIecJpwV9ZRMTTogKxHa04GuaTT2eYzasb7RCWwxoYROTLbjRjs/ouMhD1 VnYkdsTSydvEf7yzMso8nRYlOWgBv1FUEfiB8pmicZFmZkwkTlYgpMFlxBz7ePpNObkF SlAyMqt6SqLx+8LIXV3+80cfsaeuTXlLM3U3zBzz8eSGPvNjPriNz+9VAyL8xsfq+5j0 pLhg== 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 y4si3605423edv.549.2020.05.07.12.08.55; Thu, 07 May 2020 12:09:18 -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 S1727904AbgEGTHB (ORCPT + 99 others); Thu, 7 May 2020 15:07:01 -0400 Received: from smtprelay0085.hostedemail.com ([216.40.44.85]:49812 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726320AbgEGTHA (ORCPT ); Thu, 7 May 2020 15:07:00 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id ED28114547; Thu, 7 May 2020 19:06:59 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2691:2692:2828:2895:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:6119:7903:10004:10400:10848:10967:11232:11658:11914:12114:12297:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14181:14659:14721:21080:21627:21990,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: pie60_3cdad48d2c733 X-Filterd-Recvd-Size: 2688 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Thu, 7 May 2020 19:06:58 +0000 (UTC) Message-ID: <96fe70f11245433ce4f19bffaf2d167dbf69a2a0.camel@perches.com> Subject: Re: [PATCH] sched/fair: Return true,false in voluntary_active_balance() From: Joe Perches To: Steven Rostedt Cc: Valentin Schneider , 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 Date: Thu, 07 May 2020 12:06:56 -0700 In-Reply-To: <20200507144534.09abd685@gandalf.local.home> References: <20200507110625.37254-1-yanaijie@huawei.com> <20200507132828.1af39b80@gandalf.local.home> <20200507133024.18dbe349@gandalf.local.home> <20200507144534.09abd685@gandalf.local.home> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-05-07 at 14:45 -0400, Steven Rostedt wrote: > On Thu, 07 May 2020 10:55:33 -0700 > Joe Perches wrote: > > > > 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. > > > > > > > > Most people seem to prefer bool returns with apparent bool constants > > even though true and false are enumerator constants (int) of 1 and 0 > > in the kernel. > > > > from include/linux/stddef.h: > > > > enum { > > false = 0, > > true = 1 > > }; > > Sure, do that for new code, but we don't need these patches popping up for > current code. That is, it's a preference not a bug. People describe changes as a "fix" all the time for stuff that isn't an actual fix for a logic defect but is instead an update to a particular style preference. Then the "fix" word causes the patch to be rather uselessly applied to stable trees by AUTOSEL. It's especially bad when the 'Fixes: ("description")' tag is also added. It's a difficult thing to regulate and I don't believe a good mechanism would be possible to add to checkpatch or coccinelle to help isolate these things. git diff -w sometimes helps, but that's not really a thing that checkpatch could do. Any suggestions?