Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2933675imb; Mon, 4 Mar 2019 18:49:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwRzh/0clswm7Ufu/VKwepsgVbFbno9T2lv1jxPNL1zwaxJgsGDrpXgappoI6lvEDmUd/40 X-Received: by 2002:a63:4924:: with SMTP id w36mr21164285pga.227.1551754199570; Mon, 04 Mar 2019 18:49:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551754199; cv=none; d=google.com; s=arc-20160816; b=G0EB3uhhUpDVdGIVq7somXE4YnDecM34VXXHNvEtgcxTnhMPMYgbrAq28Q7bryTUAq gIcTbSF/mpXCh59YJRwNppFURM5doQgDB5qnVDrQIVXZmn74/Y79zRXvvSH5wJP6CwU2 GwgKyJb5BqgiPQvqw1gwr5mjiD4uw6dKj+vZGOEjs0e5XSjO8vo2WWvmXgpCA2ip+pb5 iMMZaF/tDVFTVw7uEaXfwTCB601Q9moJHkOJGmjMCtxdsUMHOrgURwjiegRO4IGiavs2 1o1AzF2WbSE4gWuleDMYvat7DOBJhTMuSKNCtoOIuOdmAzcqeWpLJU4Qg4maziSZQhyo Mm7A== 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=zVhdjbV+QOasM81/B7m5peT0Wj1/zl9ChlfjX4Gx43g=; b=hIw3JBpso0PRvRY90ejl6GGIKy65hraCdtXutiBrzbteZnRhxH+skKCeQbloi/CEAw ZboE3fzLjA/7v5K0xgQUU3lUoUEscduZ6UfR8oDF2nYr0iB5EZR368gpyi0ilB4Np8yi 1d6mX3gO3nJvo6GdDrimv/TueFGHsHnRN11OioXifTRJ2SYoo6RBLsQhDZ2t0ATi7mK5 8d9L8bkUgftFhRaSURS7F+/z/HIWyQ+tp1NKcEq1JXAyNwnStW3u/QwnpB5HrHSdbWlC mvqQ+99bYLgQM1mSFFq8ZZzL0TvVcFNm2E7m7PuZM88Hz1raP4VF/PV85egqnGBD8xHc oIwg== ARC-Authentication-Results: i=1; mx.google.com; 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 q17si6833202pll.343.2019.03.04.18.49.44; Mon, 04 Mar 2019 18:49:59 -0800 (PST) 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; 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 S1726957AbfCECtD (ORCPT + 99 others); Mon, 4 Mar 2019 21:49:03 -0500 Received: from smtprelay0085.hostedemail.com ([216.40.44.85]:40169 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726553AbfCECtD (ORCPT ); Mon, 4 Mar 2019 21:49:03 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 96096100E86C8; Tue, 5 Mar 2019 02:49:01 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:800:960:967:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2559:2564:2682:2685:2828:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:7903:8957:9025:9040:9121:9707:10004:10400:10848:11026:11232:11233:11473:11657:11658:11914:12043:12048:12262:12296:12438:12555:12679:12740:12760:12895:13069:13311:13357:13439:14096:14097:14181:14659:14721:14777:21080:21365:21451:21627:21788:30054:30070:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: toe73_1469bae26ef47 X-Filterd-Recvd-Size: 2507 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Mar 2019 02:49:00 +0000 (UTC) Message-ID: Subject: Re: [PATCH v6 1/4] can: m_can: Create a m_can platform framework From: Joe Perches To: Dan Murphy , Wolfgang Grandegger , mkl@pengutronix.de, davem@davemloft.net Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 04 Mar 2019 18:48:58 -0800 In-Reply-To: References: <20190301185043.9037-1-dmurphy@ti.com> <7ffc0639-de4a-87da-68e0-2d170c241824@grandegger.com> <5b0959b9-58b7-cc3c-7014-b7cdb883a7cf@ti.com> <2863c42d-065d-39e8-ed20-8279f76f00ae@grandegger.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 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 Mon, 2019-03-04 at 13:12 -0600, Dan Murphy wrote: > On 3/4/19 12:13 PM, Wolfgang Grandegger wrote: > > Am 04.03.19 um 18:22 schrieb Dan Murphy: > > > > > + int pm_clock_support; > > > > > > > > A "bool" would be more appropriate, I think. > > > > > > I was abiding by this checkpatch warning I got on the is_peripherial. > > > > > > CHECK: Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384 > > > #94: FILE: drivers/net/can/m_can/m_can.h:94: > > > + bool is_peripherial; > > > > > > > Ah, right! I was also surprised to get that warning. The kernel is full > > of bool's, but well, we should make "checkpatch" happy (and Linus). That check has been removed from checkpatch by commit 7967656ffbfa493f5546c0f18bf8a28f702c4baa Author: Jason Gunthorpe Date: Fri Jan 18 15:50:47 2019 -0700 coding-style: Clarify the expectations around bool There has been some confusion since checkpatch started warning about bool use in structures, and people have been avoiding using it. Many people feel there is still a legitimate place for bool in structures, so provide some guidance on bool usage derived from the entire thread that spawned the checkpatch warning. Link: https://lkml.kernel.org/r/CA+55aFwVZk1OfB9T2v014PTAKFhtVan_Zj2dOjnCy3x6E4UJfA@mail.gmail.com