Re: [PATCH net v2 05/12] net/sonic: Fix receive buffer handling

From: Stephen Hemminger
Date: Tue Jan 21 2020 - 17:24:08 EST


On Wed, 22 Jan 2020 08:22:08 +1100
Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx> 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.