[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200121142356.2b17ad74@hermes.lan>
Date: Tue, 21 Jan 2020 14:23:56 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Finn Thain <fthain@...egraphics.com.au>
Cc: "David S. Miller" <davem@...emloft.net>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Chris Zankel <chris@...kel.net>,
Laurent Vivier <laurent@...ier.eu>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net v2 05/12] net/sonic: Fix receive buffer handling
On Wed, 22 Jan 2020 08:22:08 +1100
Finn Thain <fthain@...egraphics.com.au> 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?
Also, the kernel standard is not to use the inline keyword on functions
and let the compiler decide to inline if it wants to. The compiler is much
smarter at knowing the architectural limitations than humans are.
Powered by blists - more mailing lists