Re: [PATCH] net: sky2: switch from 'pci_' to 'dma_' API

From: Julia Lawall
Date: Sun Jul 12 2020 - 03:05:49 EST




On Sun, 12 Jul 2020, Christophe JAILLET wrote:

> Le 12/07/2020 Ã 08:32, Joe Perches a ÃcritÂ:
> > On Sun, 2020-07-12 at 08:29 +0200, Christophe JAILLET wrote:
> > > Le 11/07/2020 Ã 23:20, Joe Perches a Ãcrit :
> > > > On Sat, 2020-07-11 at 22:49 +0200, Christophe JAILLET wrote:
> > > > > The wrappers in include/linux/pci-dma-compat.h should go away.
> > > > why?
> > > >
> > > >
> > > From Christoph Hellwig
> > > https://marc.info/?l=kernel-janitors&m=158745678307186&w=4
> > There's no why there.
> > There's just an assertion a wrapper should "go away".
> >
> > "the wrappers in include/linux/pci-dma-compat.h should go away"
> >
> > wrappers aren't all bad.
> >
> >
> Adding Christoph Hellwig to shed some light.

Neither the wrapped name nor the unwrapped name is higher or lower level.
Nothing much happens to the arguments. The wrappers and the wrapped
functions are not used entirely consistently, eg some files, and perhaps
even some functions, use a mixture of the two. There a set of confusingly
named constants associated with the two sets of functions, and these
constants are also not always used consistently.

julia