[PATCH v3 1/7] drm/xe: Introduce const cast helper

Lucas De Marchi lucas.demarchi at intel.com
Sun Jul 21 02:46:32 UTC 2024


On Sat, Jul 20, 2024 at 04:25:22PM GMT, Michal Wajdeczko wrote:
>Typically we want to preserve pointer constness when converting
>from one xe pointer to another, but in some rare cases, like kunit
>parameter conversions, we might want to discard this constness.
>Add a helper that we will use to clearly indicate our intention.
>
>Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
>Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com> #v1
>Cc: Lucas De Marchi <lucas.demarchi at intel.com>
>---
>v2: use explicit cast (Lucas)

Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>



More information about the Intel-xe mailing list