Received: by 10.192.165.148 with SMTP id m20csp3220545imm; Mon, 23 Apr 2018 02:47:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/vVbdwqB37KZ5Mrg3Zjou+21xwKHmUyYdcj2rYM/XJZmAwoY3zNs0DXbmmnM7D9urE9mGB X-Received: by 10.99.177.68 with SMTP id g4mr16432004pgp.253.1524476834502; Mon, 23 Apr 2018 02:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524476834; cv=none; d=google.com; s=arc-20160816; b=Lw2rO85j6dX/6bUirDJTQmaD0nf1tQLrUdYvDJ3+Xx0synjsqjnIf6C7g/A64oFR5X /RNK/Po5zkIeK1gIhd+cwPkmty/MVodTrYgcDFB22RJ248JyZXDE9Uh7f5fUaTRfQ9bZ 71QmldqQ392oneCw96UiOfT/njTrXoQsVK5Kjk5xzHgLwHNHPdhteIxgnoyQfL/vKBAM zqdEi5Cd0pxrpkYqwFObGd0zrCIWcIoNM9oQT86us3VUAqLbcOPkQhV7+boWxGzoUoY8 YAYh9lZoF9F7IACZm0ZLrnCFlY562CLkmB2rh92ZPVMKE3v+/QWKEjeoBhJGoja8zivC AeTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=BcmvnF4my8xyqYtqPp5Yh1IxgkMID1ORWpl1NjBZQLs=; b=ChIqhhYFizuFh/6xqTP3dYYE6R6VBrTPUqpVGDfq5A3Tupwugq8YUDmzmqZpsNqKIP 38fb5+CSubzlF8p5/z59ko8zZfmrFUsYsBaRP7GVHtto9PmclE3UtQj4IVHlYSN/zOZ/ UR9IzZaXqQjKOchp/8a3PuvdRnCNog9bluflwncOBwVnOVfvzxywNpSY1AuvDaS1rpyd xPjJh892INtKtzIOjDnrkEKY0ljBsVpYEe/E1+sMRkrqVACJQ8NApoKOBztiU/uTvJmp WeFVtmgFObev5wRpzI2oQidQHihk6QWVIz5PHJApvbF5kzU3w2aP4g+sHIEdYoHxJ4hC y1hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FjfaN+iR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si9205499pgf.354.2018.04.23.02.47.00; Mon, 23 Apr 2018 02:47:14 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FjfaN+iR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754579AbeDWJpu (ORCPT + 99 others); Mon, 23 Apr 2018 05:45:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41790 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754545AbeDWJps (ORCPT ); Mon, 23 Apr 2018 05:45:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BcmvnF4my8xyqYtqPp5Yh1IxgkMID1ORWpl1NjBZQLs=; b=FjfaN+iRyJqKoC8iGYt75i2Tq S7Fn4cgi2jnJklfrTHpGuWIabLdFvU9NyBhWCrTRLHRNvEcx5ASJKGhyvooO9DQ3AoJHINcd2Zfsn dj0SUD8fe3B3tiYENyQith/m9UGbEuaVx/RUrCzpN5gNuhcM9pcJuk3Z0jN6jfjVCIIdyRBBQ31Sj wMbkaTufxpSmNWhP7OmCnqZuijz7ty1/6n5hYvwnROb8m9Cv5FcNHsofwnLIF1xjLYPRuIJ6u+KGl myRXc2HKJlAk4RDePYc4tsLGepTVnvJFnk0vRlhOWHRWFdEY2M9hI2n50qLlSnsN9BWZ9LC6/NUJV yyaEd+j9A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAY2N-0007wq-LI; Mon, 23 Apr 2018 09:45:31 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2F009203BFA02; Mon, 23 Apr 2018 11:45:30 +0200 (CEST) Date: Mon, 23 Apr 2018 11:45:30 +0200 From: Peter Zijlstra To: Lukas Bulwahn Cc: Philipp Klocke , kernelnewbies@kernelnewbies.org, llvmlinux@lists.linuxfoundation.org, sil2review@lists.osadl.org, der.herr@hofr.at, Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair: Change sched_feat(x) in !CONFIG_SCHED_DEBUG case Message-ID: <20180423094530.GW4064@hirez.programming.kicks-ass.net> References: <20180416085426.24157-1-Phil_K97@gmx.de> <20180420075717.GB4064@hirez.programming.kicks-ass.net> <34572fee-36d0-36e1-ba6d-f098b145aba4@gmx.de> <20180420165139.GP4064@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 11:29:33PM +0200, Lukas Bulwahn wrote: > > On Fri, 20 Apr 2018, Peter Zijlstra wrote: > > > On Fri, Apr 20, 2018 at 06:29:07PM +0200, Philipp Klocke wrote: > > > The gain is stopping a warning that clutters the output log of clang. > > > > Well, you should not be using clang anyway. It is known to miscompile > > the kernel. > > > > There are some advantages of having a second compiler that can compile > the kernel (https://lwn.net/Articles/734071/). Some people in the kernel > community and LLVM community are trying to get that to work. Sure, not arguing against that. Just saying clang isn't there yet and it has much bigger problems than a stray warning. > We also want a zero-warning policy for clang, similar to gcc. > Hence, this motivates to have a look at those few clang warnings and come > up with patches for them. > > This does not imply to make changes at any cost, and we need to determine > a proper patch to either change the source code, disable the warning in > the build script or annotate the file with some clang-specific pragmas. > > To us, a minor change in the source sounded most reasonable after looking > at all three possible patches. Philipp might need another iteration, but > it generally looks sound to me if we get the details flattened out. Given the history of compiler warnings; I would really like to have some text that explains why the warning is useful and should be worked around. To me the warning under discussion seems very dodgy and I would propose to disable it entirely. Using a value other than 0/1 for boolean expressions is fairly common, it being a compile time constant doesn't seem to make much difference to me.