]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/pxp: Use the correct define in the set_property_funcs array
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 22 May 2025 22:54:03 +0000 (15:54 -0700)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 5 Jun 2025 16:07:25 +0000 (18:07 +0200)
The define of the extension type was accidentally used instead of the
one of the property itself. They're both zero, so no functional issue,
but we should use the correct define for code correctness.

Fixes: 41a97c4a1294 ("drm/xe/pxp/uapi: Add API to mark a BO as using PXP")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://lore.kernel.org/r/20250522225401.3953243-6-daniele.ceraolospurio@intel.com
(cherry picked from commit 1d891ee820fd0fbb4101eacb0d922b5050a24933)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_bo.c

index 3c48a8c5f439199c42e76b9c24f35fb456eca17a..7aa2c17825da9abce0dea946b94e12dc6b522c8c 100644 (file)
@@ -2567,7 +2567,7 @@ typedef int (*xe_gem_create_set_property_fn)(struct xe_device *xe,
                                             u64 value);
 
 static const xe_gem_create_set_property_fn gem_create_set_property_funcs[] = {
-       [DRM_XE_GEM_CREATE_EXTENSION_SET_PROPERTY] = gem_create_set_pxp_type,
+       [DRM_XE_GEM_CREATE_SET_PROPERTY_PXP_TYPE] = gem_create_set_pxp_type,
 };
 
 static int gem_create_user_ext_set_property(struct xe_device *xe,