Received: by 10.213.65.68 with SMTP id h4csp4126521imn; Tue, 10 Apr 2018 09:36:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx490Vkr+6isielpLlUCXSRX9HEkvNAY4rk8UGzER98j9hRImDF3LzyvQ2Ya8xUmPhsYzuygP X-Received: by 10.98.157.157 with SMTP id a29mr965487pfk.39.1523378213889; Tue, 10 Apr 2018 09:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523378213; cv=none; d=google.com; s=arc-20160816; b=jcs8DTFHAa0i8pnH9ygcecppZn1oU97cgIS8MVFE2hbbyIYJ49wt0N/bDSFNX9gEle +7S2J4/bR0DBhcfsP0fr+1ZNGEbNlcT7dxRdnSirVqRRWAw9J46LbfkpAblLUmzr4z/W vbztEAo9lFUoNRZvHRrivWt81i4os3wMY7hD76nN0O1a9HUSry0zIYmxKj+329aEeXk6 oo/bBsaWKgjn15a7Hfn1xSsG+yHZUGoLFfdfNtEnviKsAqJiHJ01ayOIYIISWPIq2843 kkRBqgAMQ9gdMtpcxMsNqJyIxF7+mqEMMs54ssgFQLlU0Y6vIZFdpsCOojsrbHDvy96U OITA== 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=N74POLIzXZ6yrx8Rf7AOc5/JHhIsTmYMuWHhr6f8AyQ=; b=PbEnhtxs2r4J89YyGcME9LVpuCGcCciGc/SHo0PRdgf83ZobxZZknYd9gF0YFS2GDr I5jTaRIBQh1O0kKZXxTGdGi0nAAJW+L9+0134oN0KrzEdgKEqMcpyfvvEDSt3OIkkUQb iZBGEjKC+FrtuihtTqtgGAqtuetveOCp/kb6tHQmkhwSaB+yAVkTEVRxMkB6HImcQPml RpjroOE5UqPhE/1fVXfOMSnNfahh1Ylu72ZN5mb7TKOfT+XT/4FhhC9jKRZKbC4gefzk r9t4rZ5LpokxbtKfdfK1lSgjbB4tc57OIBQo+ZacZws61CF6wcdbNMce/9YLDo0Xr9T6 jQ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dZPvaA3R; 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 e18si1360758pgr.216.2018.04.10.09.36.16; Tue, 10 Apr 2018 09:36:53 -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=dZPvaA3R; 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 S1751770AbeDJQab (ORCPT + 99 others); Tue, 10 Apr 2018 12:30:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50892 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751504AbeDJQaa (ORCPT ); Tue, 10 Apr 2018 12:30:30 -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=N74POLIzXZ6yrx8Rf7AOc5/JHhIsTmYMuWHhr6f8AyQ=; b=dZPvaA3R2zn+MccGai7dVOtA4 2WhoHPOpTMdpjqbVW9bYIG7nHaVWEWBxcS+z1yooiGR9q1aHTHzpZ7tAltBy2HwH1Ke1Swkfx/iV8 0EYP/ShaGLnq0PRHFQTCxgE+wWcziLnrSKvz6j+FjGk6HlFAbRjtSQmJlBeO4XQZr2yFXz9jybmzF 4XmyLwNmRTotsRi0qwgq7uG7baXFI97xqMUNAcJwWanskvdRJVXd3lHr4vG1ioYcCS6pFxsn6kBhK RtW9dMesDczNVGbAwR1VpQcC8d1NzdyXOLDUpmoea+BWvq78Knuy4xMbv97oDJnbsfa9Hsmv8j+Ea zbOfqpH8A==; 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 1f5w9y-0001r9-ML; Tue, 10 Apr 2018 16:30:18 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 12DB12029B0F8; Tue, 10 Apr 2018 18:30:17 +0200 (CEST) Date: Tue, 10 Apr 2018 18:30:17 +0200 From: Peter Zijlstra To: Joe Perches Cc: "Rafael J. Wysocki" , yuankuiz@codeaurora.org, Linux PM , "Rafael J. Wysocki" , Frederic Weisbecker , Thomas Gleixner , aulmck@linux.vnet.ibm.com, Ingo Molnar , Len Brown , Linux Kernel Mailing List , apw@canonical.com Subject: Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped Message-ID: <20180410163017.GH4082@hirez.programming.kicks-ass.net> References: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> <20180410123305.GF4082@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 Tue, Apr 10, 2018 at 08:14:54AM -0700, Joe Perches wrote: > Whinging about bool : seems entirely sensible > and straightforward to do. > > I'm not so sure about bool in structs as a patch context > could be adding a bool to local stack definitions and > there's no real ability to determine if the bool is in a > struct or on the stack. > > Also, I think there's nothing really wrong with using > bool in structs. Steven Rostedt's rationale in > https://lkml.org/lkml/2017/11/21/207 isn't really right > as sizeof(int) is 4 not 1 and sizeof(bool) is 1 on arches > without alignment issues. I believe when using gcc, > sizeof(bool) is always 1 and there may be alignment padding > added on some arches. Dunno. C std simply does not define sizeof(_Bool) and leaves it up to architecture ABI, therefore I refuse to use _Bool in composite types, because I care about layout. Also, not all architectures can do byte addressing, see Alpha But I think the battle is already lost anyway. > > git grep -P '(? 1543 Yes I know, doesn't mean we shouldn't discourage it for new code; also Linus.