On Tue, Feb 26, 2019 at 02:44:55PM +0200, Shamir Rabinovitch wrote: > @@ -3236,9 +3236,14 @@ enum ib_pd_flags { > > struct ib_pd *__ib_alloc_pd(struct ib_device *device, unsigned int flags, > const char *caller); > + > #define ib_alloc_pd(device, flags) \ > __ib_alloc_pd((device), (flags), KBUILD_MODNAME) > -void ib_dealloc_pd(struct ib_pd *pd); > + > +void ib_dealloc_pd_user(struct ib_pd *pd, struct ib_udata *udata); > + > +#define ib_dealloc_pd(_pd) \ > + ib_dealloc_pd_user((_pd), (NULL)) static inline not defines for all these cases