drm/amdgpu: fix incompatible types in conditional expression
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix incompatible types in conditional expression
Fixes ab041551f4a7 ("drm/amdgpu: add VPE 6.1.0 support")
Signed-off-by Lang Yu <[email protected]>
Reported-by kernel test robot <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h | 2 +- drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h +1 -1
@@ -31,7 +31,7 @@ struct amdgpu_vpe;struct vpe_funcs {uint32_t (*get_reg_offset)(struct amdgpu_vpe *vpe,uint32_t inst,uint32_t offset); -void (*set_regs)(struct amdgpu_vpe *vpe); +int (*set_regs)(struct amdgpu_vpe *vpe);int (*irq_init)(struct amdgpu_vpe *vpe);int (*init_microcode)(struct amdgpu_vpe *vpe);int (*load_microcode)(struct amdgpu_vpe *vpe);
drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c +3 -1
@@ -254,13 +254,15 @@ static int vpe_v6_1_process_trap_irq(struct amdgpu_device *adev,return 0 ; } -static void vpe_v6_1_set_regs (struct amdgpu_vpe *vpe) +static int vpe_v6_1_set_regs (struct amdgpu_vpe *vpe) { vpe->regs.queue0_rb_rptr_lo = regVPEC_QUEUE0_RB_RPTR; vpe->regs.queue0_rb_rptr_hi = regVPEC_QUEUE0_RB_RPTR_HI; vpe->regs.queue0_rb_wptr_lo = regVPEC_QUEUE0_RB_WPTR; vpe->regs.queue0_rb_wptr_hi = regVPEC_QUEUE0_RB_WPTR_HI; vpe->regs.queue0_preempt = regVPEC_QUEUE0_PREEMPT; + +return 0 ; }static const struct vpe_funcs vpe_v6_1_funcs = {
Signature · 1 line
2.25.1
[AMD Official Use Only - General]
Looks good to me.
Series is:
Reviewed-by Solomon Chiu <[email protected]>
________________________________
From: Yu, Lang <[email protected]>
Sent: Monday, September 4, 2023 12:22 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chiu, Solomon <[email protected]>; Yu, Lang <[email protected]>; kernel test robot <[email protected]>
Subject: [PATCH] drm/amdgpu: fix incompatible types in conditional expression
Fixes ab041551f4a7 ("drm/amdgpu: add VPE 6.1.0 support")
Signed-off-by Lang Yu <[email protected]>
Reported-by kernel test robot <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h | 2 +- drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h +1 -1
@@ -31,7 +31,7 @@ struct amdgpu_vpe;struct vpe_funcs {uint32_t (*get_reg_offset)(struct amdgpu_vpe *vpe,uint32_t inst,uint32_t offset); -void (*set_regs)(struct amdgpu_vpe *vpe); +int (*set_regs)(struct amdgpu_vpe *vpe);int (*irq_init)(struct amdgpu_vpe *vpe);int (*init_microcode)(struct amdgpu_vpe *vpe);int (*load_microcode)(struct amdgpu_vpe *vpe);
drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c +3 -1
@@ -254,13 +254,15 @@ static int vpe_v6_1_process_trap_irq(struct amdgpu_device *adev,return 0 ; } -static void vpe_v6_1_set_regs (struct amdgpu_vpe *vpe) +static int vpe_v6_1_set_regs (struct amdgpu_vpe *vpe) { vpe->regs.queue0_rb_rptr_lo = regVPEC_QUEUE0_RB_RPTR; vpe->regs.queue0_rb_rptr_hi = regVPEC_QUEUE0_RB_RPTR_HI; vpe->regs.queue0_rb_wptr_lo = regVPEC_QUEUE0_RB_WPTR; vpe->regs.queue0_rb_wptr_hi = regVPEC_QUEUE0_RB_WPTR_HI; vpe->regs.queue0_preempt = regVPEC_QUEUE0_PREEMPT; + +return 0 ; }static const struct vpe_funcs vpe_v6_1_funcs = {
--
2.25.1
Quoted 6 lines · Lang Yu
Fixes ab041551f4a7 ("drm/amdgpu: add VPE 6.1.0 support")Signed-off-by Lang Yu <[email protected]>Reported-by kernel test robot <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h | 2 +- drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h +1
-1@@ -31,7 +31,7 @@ struct amdgpu_vpe;struct vpe_funcs {uint32_t (*get_reg_offset)(struct amdgpu_vpe *vpe,uint32_t inst,uint32_t offset); -void (*set_regs)(struct amdgpu_vpe *vpe); +int (*set_regs)(struct amdgpu_vpe *vpe);int (*irq_init)(struct amdgpu_vpe *vpe);int (*init_microcode)(struct amdgpu_vpe *vpe);int (*load_microcode)(struct amdgpu_vpe *vpe);drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c +3
-2@@ -254,13 +254,15 @@ static int vpe_v6_1_process_trap_irq(struct amdgpu_device *adev,return 0 ; } -static void vpe_v6_1_set_regs (struct amdgpu_vpe *vpe) +static int vpe_v6_1_set_regs (struct amdgpu_vpe *vpe) { vpe->regs.queue0_rb_rptr_lo = regVPEC_QUEUE0_RB_RPTR; vpe->regs.queue0_rb_rptr_hi = regVPEC_QUEUE0_RB_RPTR_HI; vpe->regs.queue0_rb_wptr_lo = regVPEC_QUEUE0_RB_WPTR; vpe->regs.queue0_rb_wptr_hi = regVPEC_QUEUE0_RB_WPTR_HI; vpe->regs.queue0_preempt = regVPEC_QUEUE0_PREEMPT; + +return 0 ; }static const struct vpe_funcs vpe_v6_1_funcs = { --2.25.1