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

From: Finn Thain
Date: Tue Jan 21 2020 - 18:53:11 EST


On Tue, 21 Jan 2020, Stephen Hemminger wrote:

> 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?
>

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.