]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Accept a const xe device
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 22 Sep 2023 17:43:20 +0000 (10:43 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:41:16 +0000 (11:41 -0500)
commitbabba646785d6855cba64fb0480beb8d3421cc52
tree26b196cb86c56494b60e07e8dd0d3ec4db52eb08
parentbc18dae50f165bc1c18284fe59d77dd00617b530
drm/xe: Accept a const xe device

Depending on the context, it's preferred to have a const pointer to make
sure nothing is modified underneath. The assert macros only ever read
data from xe/tile/gt for printing, so they can be made const by default.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20230922174320.2372617-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_assert.h