Re: [PATCH v7 11/17] cxl/pci: Change find_cxl_port() to non-static
From: Dan Williams
Date: Thu Feb 13 2025 - 18:16:07 EST
Terry Bowman wrote:
> CXL PCIe Port Protocol Error support will be added in the future. This
> requires searching for a CXL PCIe Port device in the CXL topology as
> provided by find_cxl_port(). But, find_cxl_port() is defined static
> and as a result is not callable outside of this source file.
>
> Update the find_cxl_port() declaration to be non-static.
>
> Signed-off-by: Terry Bowman <terry.bowman@xxxxxxx>
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> Reviewed-by: Ira Weiny <ira.weiny@xxxxxxxxx>
> Reviewed-by: Gregory Price <gourry@xxxxxxxxxx>
> ---
> drivers/cxl/core/core.h | 2 ++
> drivers/cxl/core/port.c | 4 ++--
> 2 files changed, 4 insertions(+), 2 deletions(-)
Looks ok, but this tiny patch has no justification by itself and should
be squashed with the first consumer.