Skip to content

Commit 6bf4d56

Browse files
dceraoloThomas Hellström
authored andcommitted
drm/xe/pxp: Use the correct define in the set_property_funcs array
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: 41a97c4 ("drm/xe/pxp/uapi: Add API to mark a BO as using PXP") Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Cc: John Harrison <[email protected]> Reviewed-by: John Harrison <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 1d891ee) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 0ee54d5 commit 6bf4d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,7 @@ typedef int (*xe_gem_create_set_property_fn)(struct xe_device *xe,
25672567
u64 value);
25682568

25692569
static const xe_gem_create_set_property_fn gem_create_set_property_funcs[] = {
2570-
[DRM_XE_GEM_CREATE_EXTENSION_SET_PROPERTY] = gem_create_set_pxp_type,
2570+
[DRM_XE_GEM_CREATE_SET_PROPERTY_PXP_TYPE] = gem_create_set_pxp_type,
25712571
};
25722572

25732573
static int gem_create_user_ext_set_property(struct xe_device *xe,

0 commit comments

Comments
 (0)