Re: [PATCH] RDMA/ocrdma: remove use of idr use pci bdf instead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 12, 2019 at 7:37 PM Jason Gunthorpe <jgg@xxxxxxxxxxxx> wrote:
>
> On Wed, Apr 10, 2019 at 05:10:07AM -0400, Devesh Sharma wrote:
> > removing the use of IDR variable just to name the
> > function ids. Using the PCI_FUNC(pdev->devfn) instead
> > to create the device name, associated resources and
> > to print driver into at various places.
> >
> > Reported-by: Matthew Wilcox <willy@xxxxxxxxxxxxx>
> > Signed-off-by: Devesh Sharma <devesh.sharma@xxxxxxxxxxxx>
> > ---
> >  drivers/infiniband/hw/ocrdma/ocrdma_main.c | 13 ++-----------
> >  1 file changed, 2 insertions(+), 11 deletions(-)
>
> I'm going to apply this so we can progress on the IDR conversion, but
> please send a patch fixing this driver to not call pr_err/warn/etc
>
> Drivers should be calling dev_warn/etc and not trying to print their
> own device name. As is this driver has broken logging in the presense
> of device rename.
>
> However, it is worth waiting until Gal's patch is merged to add ib specific
> printing functions is merged and use those functions instead.
Okay sure, I will keep track of it.
>
> https://patchwork.kernel.org/patch/10874849/
>
> Hopefully Gal will resend his patch soon, we can apply it..
>
> Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux