Received: by 10.192.165.156 with SMTP id m28csp1675612imm; Thu, 12 Apr 2018 01:17:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tpmpW8tDTCPLNwdqPt2k5JzV9EgrsCM/YUi0hkxU7AmT7BEJfPPjdP937boCOV8oPouqn X-Received: by 10.99.136.194 with SMTP id l185mr6028021pgd.419.1523521043437; Thu, 12 Apr 2018 01:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523521043; cv=none; d=google.com; s=arc-20160816; b=utGGr/2SA18rRbOMYKaoUg55pd/QJCK5lcajaVo0umkdd2Uzkh65dtxYk7ZEzI/Et3 mmndMnbOEkeDvyr08ylvORX+R/jdihDtHu4v4XkPuF2es2TCaaJtD0i4ei8toFSKDveo Gu4xh+MjWXEnNdHUc/ESlD4u+IXf4jq9TztZQq0fecMuGD0uvfsEH6arwfseN85svfcn wgyEfoZxBUWCPGaP4yLnGCSwC9pbloSFwck4AmvE6OA7ZDxiNSG6Yhr9SFRdJbhGlM5s d5fadF9WAG9A99/kqO12Kst3czyWlpxtRhho4uZqaBZyqaDk6t0v5GMqDTvGoaUR5j3Q g2/g== 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=LWhOXuOz4I7jQGKRR20k3Rh7XHi5kSOJxHRcQ8+NmUI=; b=M8jLW2v0vYCIyIa3RobbkdEQm0EWfVvEwcALt0nQZgUVN61gvs+sD17AoEdqxTpsjh 60txVfjGj2Ex21EmPj0pWjnZI9t/jg0zBu8tkEfHxzeoC/5v28GXoVBdRPjRG+vSn6D6 +hBRUgIsKNd1ueNWK2ouKgeNCQyvOr+jP+QkvpgmYfbctoyxEhxe7jxONYTJdH78MF36 DqJwBmKPxN9HAfQL6PuhihwRtguKhPsAhRAcZv6Xwm/t8cUmKpgI9O/AY+0dMjWFl6pE to+IsyRKB4GhUeUXLG0B3b1kOjB+ZQSbTi0rVOpHDVZrLDRuyq/wyirR9agIw0c/+HCq ZyTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jPElnz3b; 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 v19si1939881pgb.258.2018.04.12.01.16.46; Thu, 12 Apr 2018 01:17:23 -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=jPElnz3b; 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 S1752834AbeDLINg (ORCPT + 99 others); Thu, 12 Apr 2018 04:13:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60056 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbeDLINf (ORCPT ); Thu, 12 Apr 2018 04:13:35 -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=LWhOXuOz4I7jQGKRR20k3Rh7XHi5kSOJxHRcQ8+NmUI=; b=jPElnz3bu/6iI2IXHXcgwOTtH dHSdk5LRP0TCqJllJqEG6P3Xp8aRNC8gejiFoRsB4yeotMssKtbIX8vc0dWYFQ0J5uNOODTIW5fc8 hhJkBCWGR9TTYMJRqJpJORfgHn9SKqRoiYdLDQJk/o98T7DCO1iWUMelOHz0wPFtcMxJj0MGxLm2P JhF7TULn9hQXmx+20lMsCqb/d0D0PdHlqEoY1k2q6lhI5cM95NVuwajyU03sAgFsKfcX7H+6WQg7W zdn4ckcjQcqqcIM07Ksj/tvzW8HNSfno0s8yAbKDZAkI9oMFhEfSErU4uHK3xG1hvsGzGimRZbeRo P1M0A8vKw==; 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 1f6XMC-0001rX-T7; Thu, 12 Apr 2018 08:13:25 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 61F93202A29FD; Thu, 12 Apr 2018 10:13:23 +0200 (CEST) Date: Thu, 12 Apr 2018 10:13:23 +0200 From: Peter Zijlstra To: Joe Perches Cc: Julia Lawall , Andrew Morton , "Rafael J. Wysocki" , Andy Whitcroft , yuankuiz@codeaurora.org, Linux PM , "Rafael J. Wysocki" , Frederic Weisbecker , Thomas Gleixner , paulmck@linux.vnet.ibm.com, Ingo Molnar , Len Brown , Linux Kernel Mailing List Subject: Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions Message-ID: <20180412081323.GV4082@hirez.programming.kicks-ass.net> References: <95477c93db187bab6da8a8ba7c57836868446179.camel@perches.com> <20180410143950.4b8526073b4e3e34689f68cb@linux-foundation.org> <20180410150011.df9e036f57b5bcac7ac19686@linux-foundation.org> <20180411081502.GJ4082@hirez.programming.kicks-ass.net> <20180411092959.e666ec443e4d3bb6f43901d7@linux-foundation.org> <1c9f185f6086e9d89659f93720a27b660ee17c13.camel@perches.com> 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 Wed, Apr 11, 2018 at 11:42:20PM -0700, Joe Perches wrote: > I personally do not find a significant issue with > uncontrolled sizes of bool in kernel structs as > all of the kernel structs are transitory and not > written out to storage. People that care about cache locality, false sharing and other such things really care about structure layout. Growing a structure into another cacheline can be a significant performance hit -- cache misses hurt.