static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev)
static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev, struct ib_ucontext *context, struct ib_udata *udata)
static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev){	struct mthca_pd *pd;	int err;	pd = kmalloc(sizeof *pd, GFP_KERNEL);	if (!pd)		return ERR_PTR(-ENOMEM);	err = mthca_pd_alloc(to_mdev(ibdev), pd);	if (err) {		kfree(pd);		return ERR_PTR(err);	}	return &pd->ibpd;}