On Thu, Jul 28, 2022 at 09:32:38PM +0200, David Marchand wrote: > On Thu, Jul 28, 2022 at 6:38 PM Bruce Richardson > <bruce.richard...@intel.com> wrote: > > > > On Thu, Jul 28, 2022 at 05:26:22PM +0200, David Marchand wrote: > > > RTE_FUNC_PTR_OR_* macros have nothing to do with the rte_device object > > > and associated API. > > > Move them to rte_common.h and include it where needed. > > > > > > Signed-off-by: David Marchand <david.march...@redhat.com> > > > --- > > > > Personally, I really don't like these macros at all. I think having the > > check explicitly in the code would be far more readable, and would only be > > one line of code longer than the macro call. Is there some private header > > file we could move these to instead of rte_common.h so we can drop their > > use in future if we decide to? > > I don't like them either. > Not sure where to put them though... > > My "grep-all" shows no user in the projects consuming DPDK I track. > We could mark those macros deprecated, fix our code and drop them later. > +1 to that. Can they be marked as deprecated as part of the move perhaps (assuming we get agreement to kill them?)
- [RFC v3 06/26] examples/ethtool: prefer device name David Marchand
- Re: [RFC v3 06/26] examples/ethtool: prefer device n... Bruce Richardson
- Re: [RFC v3 06/26] examples/ethtool: prefer devi... David Marchand
- [RFC v3 07/26] dev: hide debug messages in device iterato... David Marchand
- Re: [RFC v3 07/26] dev: hide debug messages in devic... Bruce Richardson
- [RFC v3 09/26] devargs: remove dependency on bus header David Marchand
- Re: [RFC v3 09/26] devargs: remove dependency on bus... Bruce Richardson
- [RFC v3 08/26] dev: move unrelated macros from header David Marchand
- Re: [RFC v3 08/26] dev: move unrelated macros from h... Bruce Richardson
- Re: [RFC v3 08/26] dev: move unrelated macros fr... David Marchand
- Re: [RFC v3 08/26] dev: move unrelated macro... Bruce Richardson
- Re: [RFC v3 08/26] dev: move unrelated m... David Marchand
- Re: [RFC v3 08/26] dev: move unrela... David Marchand
- Re: [RFC v3 08/26] dev: move unrela... Thomas Monjalon
- RE: [RFC v3 08/26] dev: move unrela... Morten Brørup
- Re: [RFC v3 08/26] dev: move unrela... Thomas Monjalon
- [RFC v3 10/26] build: export drivers headers David Marchand
- Re: [RFC v3 10/26] build: export drivers headers Bruce Richardson
- [RFC v3 11/26] bus/auxiliary: make driver-only headers pr... David Marchand
- [RFC v3 12/26] bus/dpaa: make driver-only headers private David Marchand
- [RFC v3 13/26] bus/fslmc: make driver-only headers privat... David Marchand