From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21D51C2D0CE for ; Tue, 21 Jan 2020 23:53:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0123220665 for ; Tue, 21 Jan 2020 23:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbgAUXxJ (ORCPT ); Tue, 21 Jan 2020 18:53:09 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:46712 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgAUXxJ (ORCPT ); Tue, 21 Jan 2020 18:53:09 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id EBB7122C30; Tue, 21 Jan 2020 18:53:05 -0500 (EST) Date: Wed, 22 Jan 2020 10:53:04 +1100 (AEDT) From: Finn Thain To: Stephen Hemminger cc: "David S. Miller" , Thomas Bogendoerfer , Chris Zankel , Laurent Vivier , Geert Uytterhoeven , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2 05/12] net/sonic: Fix receive buffer handling In-Reply-To: <20200121142356.2b17ad74@hermes.lan> Message-ID: References: <20200121142356.2b17ad74@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 21 Jan 2020, Stephen Hemminger wrote: > On Wed, 22 Jan 2020 08:22:08 +1100 > Finn Thain wrote: > > > > > +/* Return the array index corresponding to a given Receive Buffer pointer. */ > > + > > +static inline int index_from_addr(struct sonic_local *lp, dma_addr_t addr, > > + unsigned int last) > > Why the blank line between comment and the start of the function? > The driver mostly uses this style: /* * We have a good packet(s), pass it/them up the network stack. */ static void sonic_rx(struct net_device *dev) { } To my eyes, style I used is the closest readable approximation of the existing style that doesn't upset checkpatch. Anyway, I will remove the blank lines. > Also, the kernel standard is not to use the inline keyword on functions > and let the compiler decide to inline if it wants to. OK. Thanks for your review.