Re: [PATCH v14 10/34] PCI/AER: Update is_internal_error() to be non-static is_aer_internal_error()
From: Bowman, Terry
Date: Tue Jan 20 2026 - 10:16:09 EST
On 1/19/2026 8:20 PM, dan.j.williams@xxxxxxxxx wrote:
> Terry Bowman wrote:
>> The AER driver includes significant logic for handling CXL protocol errors.
>> The AER driver will be updated in the future to separate the AER and CXL
>> logic.
>>
>> Rename the is_internal_error() function to is_aer_internal_error() as it
>> gives a more precise indication of the purpose. Make is_aer_internal_error()
>> non-static to allow for other PCI drivers to access.
>
> Not even sure this rename is needed given that it is private to
> drivers/pci/pcie/ and the sharing is only for cxl_{rch,vh}.c, not for
> "other PCI drivers". Consistent with the idea that internal errors are
> not going to become a first-class citizen let us keep this a CXL-only
> consideration.
>
> I'll update the changelog to drop the "other PCI drivers" comment.
The name choice was addressed by Bjorn here:
https://lore.kernel.org/linux-cxl/20251208180624.GA3300935@bhelgaas/
Terry