Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/pxp: Don't use 0 to indicate NULL
@ 2025-02-04 20:01 Daniele Ceraolo Spurio
  2025-02-04 22:52 ` Rodrigo Vivi
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Daniele Ceraolo Spurio @ 2025-02-04 20:01 UTC (permalink / raw)
  To: intel-xe; +Cc: Daniele Ceraolo Spurio, John Harrison

Explicitly using NULL is the correct approach.

Reported-by: kernel test robot <lkp@intel.com>
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 <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
---
 drivers/gpu/drm/xe/xe_pxp_submit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_pxp_submit.c b/drivers/gpu/drm/xe/xe_pxp_submit.c
index b50fe037c74b..d92ec0f515b0 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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-02-05  6:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 20:01 [PATCH] drm/xe/pxp: Don't use 0 to indicate NULL Daniele Ceraolo Spurio
2025-02-04 22:52 ` Rodrigo Vivi
2025-02-05  0:17 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-05  0:17 ` ✓ CI.checkpatch: " Patchwork
2025-02-05  0:18 ` ✓ CI.KUnit: " Patchwork
2025-02-05  0:34 ` ✓ CI.Build: " Patchwork
2025-02-05  0:37 ` ✓ CI.Hooks: " Patchwork
2025-02-05  0:38 ` ✓ CI.checksparse: " Patchwork
2025-02-05  0:57 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-02-05  6:34 ` ✗ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox