drm/xe: Don't use __user error pointers
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 17 Jan 2024 13:40:47 +0000 (14:40 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 31 Jan 2024 13:34:35 +0000 (14:34 +0100)
commit78366eed6853aa6a5deccb2eb182f9334d2bd208
treecfee02e26ea6484a5c0032a10bcb14b8b02ec31b
parent97fd7a7e4e877676a2ab1a687ba958b70931abcc
drm/xe: Don't use __user error pointers

The error pointer macros are not aware of __user pointers and as a
consequence sparse warns.

Have the copy_mask() function return an integer instead of a __user
pointer.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240117134048.165425-5-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_query.c