Re: [PATCH v1] xen/xenbus: Convert to use ERR_CAST()

From: Jürgen Groß
Date: Tue Sep 10 2024 - 09:49:18 EST


On 29.08.24 10:47, Shen Lichuan 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.

Signed-off-by: Shen Lichuan <shenlichuan@xxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature