[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 00/11] PCI: Drop duplicated tracking of a pci_dev's bound driver
- To: Bjorn Helgaas <helgaas@xxxxxxxxxx>
- From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
- Date: Wed, 13 Oct 2021 12:58:56 +0200
- Cc: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Sathya Prakash <sathya.prakash@xxxxxxxxxxxx>, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>, linux-pci@xxxxxxxxxxxxxxx, Alexander Duyck <alexanderduyck@xxxxxx>, Russell Currey <ruscur@xxxxxxxxxx>, Jesse Brandeburg <jesse.brandeburg@xxxxxxxxx>, oss-drivers@xxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, Oliver O'Halloran <oohall@xxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Jiri Olsa <jolsa@xxxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, Marco Chiappero <marco.chiappero@xxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, linux-scsi@xxxxxxxxxxxxxxx, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Ido Schimmel <idosch@xxxxxxxxxx>, x86@xxxxxxxxxx, qat-linux@xxxxxxxxx, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Rafał Miłecki <zajec5@xxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Jakub Kicinski <kuba@xxxxxxxxxx>, Yisen Zhuang <yisen.zhuang@xxxxxxxxxx>, Frederic Barrat <fbarrat@xxxxxxxxxxxxx>, Fiona Trahe <fiona.trahe@xxxxxxxxx>, Andrew Donnellan <ajd@xxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Suganath Prabu Subramani <suganath-prabu.subramani@xxxxxxxxxxxx>, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Jack Xu <jack.xu@xxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Michael Buesch <m@xxxxxxx>, Jiri Pirko <jiri@xxxxxxxxxx>, Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Salil Mehta <salil.mehta@xxxxxxxxxx>, Sreekanth Reddy <sreekanth.reddy@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Vadym Kochan <vkochan@xxxxxxxxxxx>, MPT-FusionLinux.pdl@xxxxxxxxxxxx, linux-usb@xxxxxxxxxxxxxxx, linux-wireless@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx>, Mathias Nyman <mathias.nyman@xxxxxxxxx>, Zhou Wang <wangzhou1@xxxxxxxxxxxxx>, linux-crypto@xxxxxxxxxxxxxxx, kernel@xxxxxxxxxxxxxx, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Simon Horman <simon.horman@xxxxxxxxxxxx>, Wojciech Ziemba <wojciech.ziemba@xxxxxxxxx>, Tomaszx Kowalik <tomaszx.kowalik@xxxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, Taras Chornyi <tchornyi@xxxxxxxxxxx>, linux-perf-users@xxxxxxxxxxxxxxx
- Delivery-date: Wed, 13 Oct 2021 11:00:13 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hello,
On Wed, Oct 13, 2021 at 05:54:28AM -0500, Bjorn Helgaas wrote:
> On Wed, Oct 13, 2021 at 10:51:31AM +0200, Uwe Kleine-König wrote:
> > On Tue, Oct 12, 2021 at 06:32:12PM -0500, Bjorn Helgaas wrote:
> > > diff --git a/drivers/misc/cxl/guest.c b/drivers/misc/cxl/guest.c
> > > index d997c9c3ebb5..7eb3706cf42d 100644
> > > --- a/drivers/misc/cxl/guest.c
> > > +++ b/drivers/misc/cxl/guest.c
> > > @@ -20,38 +20,38 @@ static void pci_error_handlers(struct cxl_afu *afu,
> > > pci_channel_state_t state)
> > > {
> > > struct pci_dev *afu_dev;
> > > + struct pci_driver *afu_drv;
> > > + struct pci_error_handlers *err_handler;
> >
> > These two could be moved into the for loop (where afu_drv was with my
> > patch already). This is also possible in a few other drivers.
>
> That's true, they could. I tried to follow the prevailing style in
> the file. At least in cxl, I didn't see any other cases of
> declarations being in the minimal scope like that.
I don't care much, do whatever you consider nice. I'm happy you liked
the cleanup and that you took it.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature
|