Re: [PATCH v1] cxl/port: Convert to use ERR_CAST()
From: Alison Schofield
Date: Thu Aug 29 2024 - 17:45:42 EST
On Thu, Aug 29, 2024 at 08:52:35PM +0800, Yuesong Li wrote:
> Use ERR_CAST() as it is designed for casting an error pointer to
> another type.
>
> This macro utilizes the __force and __must_check modifiers, which instruct
> the compiler to verify for errors at the locations where it is employed.
Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>
>
> Signed-off-by: Yuesong Li <liyuesong@xxxxxxxx>
> ---
> drivers/cxl/core/port.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
snip
>