Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3303795ybc; Mon, 18 Nov 2019 12:57:22 -0800 (PST) X-Google-Smtp-Source: APXvYqx6U/YHGvFKo7aa6wPyieVQG5y25gvy75DPqQ6RUDhrQniW7a0HQ1J9wb5lEaglylDXGBQA X-Received: by 2002:a17:906:11cd:: with SMTP id o13mr28814012eja.272.1574110642070; Mon, 18 Nov 2019 12:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574110642; cv=none; d=google.com; s=arc-20160816; b=sUu4E7MfC6RPbq34ap0dwtl1g8UZYvN/6Lp6DK19qMTiofDt7ldRcQx9knTKhZgZRD IJNYhrR83x/KjiSUk5iupYV7wmM7BfV8T138HflbL9v4IA5aDMLZG5hcK4Xgjs8VTnAc 0XhBBglLC/dVTBhlsKFQp23uv2M+rJKaQKW86W8Ojk/mwdQRsejeUsRpp0P+YehDkuDF DQpnODyGmyxhQRJPpYsY6JHbD14RpyCTAIa+CagXmutmwtGpfgfwNYJdmvqhBqIvJnEJ TahLyNNWT9dgKoYZRMRRmMntww5TRcckC1JtW9izJ6DHuncvJMc9qhJAp1iwqCGdwunG jhig== 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=RrtZmEsvNS5RC6W56IOaj6CJTGz2rwr/F2ZKYGhxPYM=; b=VluqsQoR9chz2k0SKgNRSF5mjD2lKULN0/CD9AQaKZwYALCJd0sNhupSGj6HKgTRJu CBOwWJi8SpXXoDvFBtetFHyDH0cB19BZEj6HHOZ+OY4YpKdnhAzttKfmE0mE55zUhKp/ 8up34iYvRap818jCzYCRmd4lO5KlYusXsw8FUxWnteF4I8xUvD1xKqXUp0iuIWfW90Gt LIOhCdIpZWsnBWnsNBlLTOkmWKlJrGYZbGbhF9i/sGpFRUjQPcTjobwrm0X5l2k+dBQM FYnXOIVn3ImIaMghI71HLOy0phSAsmlAXzFL6Si4Hv8T4Lhz7DETkV3Jy4RxReI43DyD kz5A== 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 k15si12248066ejq.153.2019.11.18.12.56.58; Mon, 18 Nov 2019 12:57:22 -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 S1726927AbfKRUzW (ORCPT + 99 others); Mon, 18 Nov 2019 15:55:22 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:39242 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbfKRUzV (ORCPT ); Mon, 18 Nov 2019 15:55:21 -0500 X-IronPort-AV: E=Sophos;i="5.68,321,1569276000"; d="scan'208";a="327162018" Received: from abo-228-123-68.mrs.modulonet.fr (HELO hadrien) ([85.68.123.228]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 21:55:03 +0100 Date: Mon, 18 Nov 2019 21:55:02 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Travis Davies cc: Andrew Morton , "David S. Miller" , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] net: Fix comment block per style guide In-Reply-To: <20191118185724.GA32637@Cheese> Message-ID: References: <20191118185724.GA32637@Cheese> 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 Mon, 18 Nov 2019, Travis Davies wrote: > Signed-off-by: Travis Davies > > --- > > This patch places /* and */ on separate lines for a > multiline block comment, in order to keep code style > consistant with majority of blocks throughout the file. > > This will prevent a checkpatch.pl warning: > 'Block comments use a trailing */ on a separate line' The comments and the signed off by both go above the ---. Comments first. Look at lkml to see what others do. julia > > include/linux/netdevice.h | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index c20f190b4c18..a2605e043fa2 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -95,9 +95,11 @@ void netdev_set_default_ethtool_ops(struct net_device *dev, > #define NET_XMIT_CN 0x02 /* congestion notification */ > #define NET_XMIT_MASK 0x0f /* qdisc flags in net/sch_generic.h */ > > -/* NET_XMIT_CN is special. It does not guarantee that this packet is lost. It > +/* > + * NET_XMIT_CN is special. It does not guarantee that this packet is lost. It > * indicates that the device will soon be dropping packets, or already drops > - * some packets of the same priority; prompting us to send less aggressively. */ > + * some packets of the same priority; prompting us to send less aggressively. > + */ > #define net_xmit_eval(e) ((e) == NET_XMIT_CN ? 0 : (e)) > #define net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0) > > -- > 2.21.0 > >