Received: by 10.223.185.116 with SMTP id b49csp2119218wrg; Sat, 17 Feb 2018 12:41:59 -0800 (PST) X-Google-Smtp-Source: AH8x224vKWGeYlQFD6t6j28n+yNByZSaSofOd3jstIgr1vwWZMncOkeq3LXX9+taZNmfxh2TdiNg X-Received: by 10.101.72.75 with SMTP id i11mr8180645pgs.78.1518900119028; Sat, 17 Feb 2018 12:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518900118; cv=none; d=google.com; s=arc-20160816; b=sfrHJbVVJjxTxOfbJT1LrorB/ml4u0b5Q6pcLgTYOxK0YKd9/OpUGZM2arN/79Ct/q faTEkH8bl7SMUZmCU52bngqBeUTGHA0NAdiG5lBJEZQwi2BLKgmRJ+a86PvBNFeAiZ9G CUpWWtzBBE4Is30lMCKjt9MDP0j9k1okvh+EDrbfHvTzVJRaVZYDtR0NX+ArriU1Exd4 pKcEBrGjgMyZQ9Exnz5Ep7NlCaqgeQrq9QfpnoLqjVNi9K3ku6mm8WLNqMbGomidfubc pwj1vZA50bQjY3JlFt6rLd2AFRD5Z+OAiLEvkosau5elt9DMBPqPHo5q+QKA02ldnfdh 8WnQ== 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=wzux0qv84GDzwDI9/DohrX1O6tPfambWTw21y+QkJPc=; b=nidcBbBAK747qi3EpK2modC7cXiAPOnl58PXVrUuaZwIZbFM7H8j1zUb/bWhcg8Hmp NWkf8n34sNtfafqaQRK70pvNZQnnANVyeyGZuKUvMiYQ7XwAhWIhymOO78pQFqpmI1Tt D0onTRdS3LL9pLK8klPgCW7nZiANnWwVbGKOiNXDCoSA1a4Z95PbpEjfdXPyH8sY9jQc TRiOidPcD0vNpvvesJrNRjGcmRkN2HrrhBN1y5ZXIWh21UXJt5rHOcKTx53XDYhCwRo+ ef0iRH7AfOArsRGaa9OApXVNPpgkGOtSbxvo+z21hgwGhFtECQ7wDZACdRTWScSHbw7d gEUQ== 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 3-v6si1346773plz.209.2018.02.17.12.41.44; Sat, 17 Feb 2018 12:41:58 -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 S1751367AbeBQUdv (ORCPT + 99 others); Sat, 17 Feb 2018 15:33:51 -0500 Received: from g9t5009.houston.hpe.com ([15.241.48.73]:50034 "EHLO g9t5009.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbeBQUdt (ORCPT ); Sat, 17 Feb 2018 15:33:49 -0500 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 5246263; Sat, 17 Feb 2018 20:33:49 +0000 (UTC) Received: from anatevka.americas.hpqcorp.net (anatevka.americas.hpqcorp.net [10.34.81.6]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 820A84A; Sat, 17 Feb 2018 20:33:48 +0000 (UTC) Date: Sat, 17 Feb 2018 13:33:48 -0700 From: Jerry Hoemann To: Marcus Folkesson Cc: Guenter Roeck , 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 Subject: Re: [v3,04/11] watchdog/hpwdt: white space changes Message-ID: <20180217203348.GC27788@anatevka.americas.hpqcorp.net> Reply-To: Jerry.Hoemann@hpe.com References: <20180215234400.5022-5-jerry.hoemann@hpe.com> <20180217161734.GA671@roeck-us.net> <20180217193208.GA27788@anatevka.americas.hpqcorp.net> <20180217202753.GA13626@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180217202753.GA13626@gmail.com> 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 09:27:53PM +0100, Marcus Folkesson wrote: > On Sat, Feb 17, 2018 at 12:32:08PM -0700, Jerry Hoemann wrote: > > 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. > > Well, it does not follow our coding style. > > Documentation/process/coding-style.rst: > > At the end of any non-trivial #if or #ifdef block (more than a few lines), > place a comment after the #endif on the same line, noting the conditional > expression used. For instance: > > .. code-block:: c > > #ifdef CONFIG_SOMETHING > ... > #endif /* CONFIG_SOMETHING */ > > > > > 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... > > '%' in vim let you jump between matching ifdef/endif as well. Interesting. Didn't know that. In that light, I'll redact the white space changes. Thanks > > > > > There is a similar sequence for emacs. > > > > > > > > Deferring to Wim. > > > > > > Guenter > > > > > > > -- > > > > ----------------------------------------------------------------------------- > > Jerry Hoemann Software Engineer Hewlett Packard Enterprise > > ----------------------------------------------------------------------------- > > Thanks, > Marcus Folkesson -- ----------------------------------------------------------------------------- Jerry Hoemann Software Engineer Hewlett Packard Enterprise -----------------------------------------------------------------------------