Re: [PATCH v1 1/4] ACPI: PCI: Use a mutex guard to simplify acpi_get_pci_dev()
From: Andy Shevchenko
Date: Wed Jul 15 2026 - 11:54:14 EST
On Wed, Jul 15, 2026 at 05:15:02PM +0200, Rafael J. Wysocki wrote:
> Use a mutex guard in acpi_get_pci_dev() for the physical_node_lock
> locking and drop local variable pci_dev that becomes redundant after
> that change.
>
> No intentional functional impact.
...
> - mutex_lock(&adev->physical_node_lock);
> + guard(mutex)(&adev->physical_node_lock);
This needs a cleanup.h to be included (yes, I see the current inclusion block
and it's a mess :-( ).
--
With Best Regards,
Andy Shevchenko