From: Daniele Ceraolo Spurio Date: Tue, 4 Feb 2025 20:01:44 +0000 (-0800) Subject: drm/xe/pxp: Don't use 0 to indicate NULL X-Git-Tag: v6.15-rc1~120^2~15^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768fec5ff7c1d1183edb14ff7d68b07edc98a6e1;p=thirdparty%2Fkernel%2Fstable.git drm/xe/pxp: Don't use 0 to indicate NULL Explicitly using NULL is the correct approach. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202502050322.VUBMyUHc-lkp@intel.com/ Fixes: dcdd6b84d9ac ("drm/xe/pxp: Allocate PXP execution resources") Signed-off-by: Daniele Ceraolo Spurio Cc: John Harrison Reviewed-by: Rodrigo Vivi Link: https://patchwork.freedesktop.org/patch/msgid/20250204200144.1445800-1-daniele.ceraolospurio@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_pxp_submit.c b/drivers/gpu/drm/xe/xe_pxp_submit.c index b50fe037c74b4..d92ec0f515b03 100644 --- a/drivers/gpu/drm/xe/xe_pxp_submit.c +++ b/drivers/gpu/drm/xe/xe_pxp_submit.c @@ -54,7 +54,7 @@ static int allocate_vcs_execution_resources(struct xe_pxp *pxp) * Each termination is 16 DWORDS, so 4K is enough to contain a * termination for each sessions. */ - bo = xe_bo_create_pin_map(xe, tile, 0, SZ_4K, ttm_bo_type_kernel, + bo = xe_bo_create_pin_map(xe, tile, NULL, SZ_4K, ttm_bo_type_kernel, XE_BO_FLAG_SYSTEM | XE_BO_FLAG_PINNED | XE_BO_FLAG_GGTT); if (IS_ERR(bo)) { err = PTR_ERR(bo);