Commit cf41cebf authored by Thomas Hellström's avatar Thomas Hellström

drm/exec, drm/gpuvm: Prefer u32 over uint32_t

The relatively recently introduced drm/exec utility was using uint32_t
in its interface, which was then also carried over to drm/gpuvm.

Prefer u32 in new code and update drm/exec and drm/gpuvm accordingly.

Cc: Christian König <christian.koenig@amd.com>
Cc: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDanilo Krummrich <dakr@redhat.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240119090557.6360-1-thomas.hellstrom@linux.intel.com
parent 87399f1f
...@@ -72,7 +72,7 @@ static void drm_exec_unlock_all(struct drm_exec *exec) ...@@ -72,7 +72,7 @@ static void drm_exec_unlock_all(struct drm_exec *exec)
* *
* Initialize the object and make sure that we can track locked objects. * Initialize the object and make sure that we can track locked objects.
*/ */
void drm_exec_init(struct drm_exec *exec, uint32_t flags) void drm_exec_init(struct drm_exec *exec, u32 flags)
{ {
exec->flags = flags; exec->flags = flags;
exec->objects = kmalloc(PAGE_SIZE, GFP_KERNEL); exec->objects = kmalloc(PAGE_SIZE, GFP_KERNEL);
......
...@@ -18,7 +18,7 @@ struct drm_exec { ...@@ -18,7 +18,7 @@ struct drm_exec {
/** /**
* @flags: Flags to control locking behavior * @flags: Flags to control locking behavior
*/ */
uint32_t flags; u32 flags;
/** /**
* @ticket: WW ticket used for acquiring locks * @ticket: WW ticket used for acquiring locks
...@@ -135,7 +135,7 @@ static inline bool drm_exec_is_contended(struct drm_exec *exec) ...@@ -135,7 +135,7 @@ static inline bool drm_exec_is_contended(struct drm_exec *exec)
return !!exec->contended; return !!exec->contended;
} }
void drm_exec_init(struct drm_exec *exec, uint32_t flags); void drm_exec_init(struct drm_exec *exec, u32 flags);
void drm_exec_fini(struct drm_exec *exec); void drm_exec_fini(struct drm_exec *exec);
bool drm_exec_cleanup(struct drm_exec *exec); bool drm_exec_cleanup(struct drm_exec *exec);
int drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj); int drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj);
......
...@@ -514,7 +514,7 @@ struct drm_gpuvm_exec { ...@@ -514,7 +514,7 @@ struct drm_gpuvm_exec {
/** /**
* @flags: the flags for the struct drm_exec * @flags: the flags for the struct drm_exec
*/ */
uint32_t flags; u32 flags;
/** /**
* @vm: the &drm_gpuvm to lock its DMA reservations * @vm: the &drm_gpuvm to lock its DMA reservations
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment