Received: by 10.223.185.116 with SMTP id b49csp2071449wrg; Sat, 17 Feb 2018 11:34:15 -0800 (PST) X-Google-Smtp-Source: AH8x227Yp5oPucKpL/JyfVEbT5lqkpLIqVU1zemcAjBD6va/O5L+sIywJQA2WF3jY57iMxTyC8wR X-Received: by 10.101.93.134 with SMTP id f6mr2587229pgt.293.1518896055461; Sat, 17 Feb 2018 11:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518896055; cv=none; d=google.com; s=arc-20160816; b=gF+jXNC+F2VzouSquAUFu2fIOrfkpg55yJH7TooIrP1EhsLCwzSX+qgreMxl/IwYnA fFJszV2pWPU8ExkRPfODHTWgR7m/PF/vloQ7eBve80XECDYVmGrL8cz608fzA8lXqeUW Yv5/tKnJTucnLBpLKDCs/ttkxiQgjl7OcZ0u3zzTCB01WmRsQa4ub5Az9T9QKCAn/O9R jpgpQgvbGQnMjWt9+KG9djzWqItKkXiRI/7fJMcWG5UmWZKXKpK+s2nay2dHj9kogvwZ r4CpKDPMebRFEw7pvcXn/b1gVhaQUeanp1gL45E4CC3005ePJKpAVrsrmfo4ZhtVY0bm CL0g== 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:reply-to:message-id :subject:cc:to:from:date:arc-authentication-results; bh=ZZDEVkXxKkC3BFYNYvJDzl84iQvOkXqUOktIPb0h/YY=; b=dRkfO52NOxMmsrulEQWSpm2IglEa7qSAfhWdZ1xwc0+Pw9DgaMYC2st9W+XTCnL/I3 SxDcJ1mKVmEKJ/IFH/EP5mhLDpMZMKAyi71SN0DKPif3hgldPeSnl0eilRo6feKyjwm9 tjjpQeDZwXGWH/NDLPzX/EErcV4+zO2fzSOaZbcXTlRrXgXD//C1fDaBrZA79r7pcILK 7kRnI8HuuSQjJ/PSiXH7XMX4b8e6nSJoijxK4b+9JWBivN7dA/ln7n287Fu3gOoMoitv /LX7buuHmQbkXd0z3tyz+Z/TnYMvYZXmU1mG1+LsXLUq1uQSZM3qrsX6sBNV5bkxte1r e1Tw== 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 k9-v6si5195648pll.578.2018.02.17.11.33.26; Sat, 17 Feb 2018 11:34:15 -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 S1751248AbeBQTcL (ORCPT + 99 others); Sat, 17 Feb 2018 14:32:11 -0500 Received: from g2t2354.austin.hpe.com ([15.233.44.27]:51164 "EHLO g2t2354.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbeBQTcK (ORCPT ); Sat, 17 Feb 2018 14:32:10 -0500 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id A8BED91; Sat, 17 Feb 2018 19:32:09 +0000 (UTC) Received: from anatevka.americas.hpqcorp.net (anatevka.americas.hpqcorp.net [10.34.81.6]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id DDD8436; Sat, 17 Feb 2018 19:32:08 +0000 (UTC) Date: Sat, 17 Feb 2018 12:32:08 -0700 From: Jerry Hoemann To: Guenter Roeck Cc: wim@linux-watchdog.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, rwright@hpe.com, maurice.a.saldivar@hpe.com, mingo@kernel.org, marcus.folkesson@gmail.com Subject: Re: [v3,04/11] watchdog/hpwdt: white space changes Message-ID: <20180217193208.GA27788@anatevka.americas.hpqcorp.net> Reply-To: Jerry.Hoemann@hpe.com References: <20180215234400.5022-5-jerry.hoemann@hpe.com> <20180217161734.GA671@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180217161734.GA671@roeck-us.net> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 17, 2018 at 08:17:34AM -0800, Guenter Roeck wrote: > On Thu, Feb 15, 2018 at 04:43:53PM -0700, Jerry Hoemann wrote: > > Minor white space changes and some name clean up. > > > > Signed-off-by: Jerry Hoemann > > --- > > MODULE_DEVICE_TABLE(pci, hpwdt_devices); > > > > @@ -102,7 +100,7 @@ static int hpwdt_time_left(void) > > return TICKS_TO_SECS(ioread16(hpwdt_timer_reg)); > > } > > > > -#ifdef CONFIG_HPWDT_NMI_DECODING > > +#ifdef CONFIG_HPWDT_NMI_DECODING /* { */ > > static int hpwdt_my_nmi(void) > > { > > return ioread8(hpwdt_nmistat) & 0x6; > > @@ -133,7 +131,7 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs) > > > > return NMI_HANDLED; > > } > > -#endif /* CONFIG_HPWDT_NMI_DECODING */ > > +#endif /* } */ > > I disagree with those changes. While I don't object to adding the '{' > per se, I find it very useful to have the 'CONFIG_HPWDT_NMI_DECODING' > with an endif to be able to associate it with the matching #ifdef. The matching /* { */ and /* } */ allow for quickly the finding of the matching ifdef/endif. In the "vim" editor, the command '%' will take one from one curly paren to its matching curly paren... There is a similar sequence for emacs. > > Deferring to Wim. > > Guenter > -- ----------------------------------------------------------------------------- Jerry Hoemann Software Engineer Hewlett Packard Enterprise -----------------------------------------------------------------------------