Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3081657ybp; Sun, 6 Oct 2019 04:26:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY6B8OXfF48YeH3XtBr4AMNZ/l2eUMX3vympCSrCQf1rJ7TLhF+iZPeK01LyM8KM6e0ImK X-Received: by 2002:aa7:c910:: with SMTP id b16mr678188edt.121.1570361217880; Sun, 06 Oct 2019 04:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570361217; cv=none; d=google.com; s=arc-20160816; b=jPVC7Bb1Abw8uaKAPzRp8ChEvFE5TMg8y9LWzdfjJvO850LCPnXy8z7NVFqiTG91Xn jEIb8yOtcvhonq1/PpaDnQ9HEZP58Gv80VILYBx4QuIKTjWQi/9xa62IrMJ5wVyQ1zuG ocKIMiZlA7q5mdNYuE5gBZIrBDr8S6gIfM2ob9upQTKalUNNvj+S6bDQx+tthrWvWYjI EO1qb/1He+AfAzOyt0HnaDXU81MDtXGm2DCMQzDxy5WEW85y7XzlzhC8G0qBgwTeFFgR d5lOrh6zn/ByuTdY+8aYOHWKeUXRSn3xPPTYrK9Q0/Urzw1nikXudDKGDlnVm1pRUOyK U5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=JzjXsiXZaCo5yxHgj2wseNPFBhT4I627FcCE4/oVkvM=; b=PbPmvxY9G209/Kn0H4tS6eILJinqtXoMD5YYzzlcocR273FPLMKdMnB8Nx+sWnwnqa yflscaonKEIAjZIVcy8FNyLrKMCjfjrGjby6rPU6mdkDRglpVnx20nV98QM5RUI9kkdX 9S2kdbh+ra9+oL2oQGP1JW1pKj9ZYlfktKdhwRDfsXUSrvCh6Npw4jnJ5ZNm3UtCp+F4 evNmC0pAIB7qhn5cui3FrdYVT5Jbd4h59oGiqmYT9A/IeaSbVS0pw5aZfd8K1Y2fcVf7 hPCLc5UClI+xYxMTxTYyh9R0Zrmb3z4zupEhfl3SrCe56w5lH7k7okVSGhivDVvhzZL0 Nrsg== 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 g20si5294279eje.364.2019.10.06.04.26.33; Sun, 06 Oct 2019 04:26:57 -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; 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 S1726381AbfJFLYL (ORCPT + 99 others); Sun, 6 Oct 2019 07:24:11 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:22116 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbfJFLYL (ORCPT ); Sun, 6 Oct 2019 07:24:11 -0400 X-IronPort-AV: E=Sophos;i="5.67,263,1566856800"; d="scan'208";a="321762246" Received: from 81-65-53-202.rev.numericable.fr (HELO hadrien) ([81.65.53.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Oct 2019 13:24:08 +0200 Date: Sun, 6 Oct 2019 13:24:08 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Joe Perches cc: Greg KH , Gabriela Bittencourt , outreachy-kernel@googlegroups.com, johan@kernel.org, elder@kernel.org, greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [Outreachy kernel] Re: [PATCH] staging: greybus: add blank line after declarations In-Reply-To: <2ed3bf96312dbd9abcd626868ce84e01a066b201.camel@perches.com> Message-ID: References: <20191005210046.27224-1-gabrielabittencourt00@gmail.com> <20191006095042.GA2918514@kroah.com> <2ed3bf96312dbd9abcd626868ce84e01a066b201.camel@perches.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 6 Oct 2019, Joe Perches wrote: > On Sun, 2019-10-06 at 11:50 +0200, Greg KH wrote: > > On Sat, Oct 05, 2019 at 06:00:46PM -0300, Gabriela Bittencourt wrote: > > > Fix CHECK: add blank line after declarations > [] > > > diff --git a/drivers/staging/greybus/control.h b/drivers/staging/greybus/control.h > [] > > > @@ -24,6 +24,7 @@ struct gb_control { > > > char *vendor_string; > > > char *product_string; > > > }; > > > + > > > #define to_gb_control(d) container_of(d, struct gb_control, dev) > > > > No, the original code is "better" here, it's a common pattern despite > > what checkpatch.pl tells you, sorry. > > Statistics please. > > I believe it's not a common pattern. I get 464 that have a blank line before the container_of #define and 185 that have no blank line. Of the 464 that have a blank line, 135 contain clk in the file name. julia