drm/msm/dpu: Remove some unused variables
PATCH 1/1 drm/msm/dpu: Remove some unused variables
Variables 'sc8280xp_regdma' and 'sm8350_regdma' are defined in the dpu_hw_catalog.c file, but not used elsewhere, so remove these unused variables.
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2029:37: warning: unused variable 'sc8280xp_regdma'. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2053:37: warning: unused variable 'sm8350_regdma'.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 16 ---------------- 1 file changed, 16 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -16
@@ -2026,14 +2026,6 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = { }, }; -static const struct dpu_reg_dma_cfg sc8280xp_regdma = { - .base =0x0 , - .version =0x00020000 , - .trigger_sel_off =0x119c , - .xin_id =7 , - .clk_ctrl =DPU_CLK_CTRL_REG_DMA , -}; -static const struct dpu_reg_dma_cfg sdm845_regdma = { .base =0x0 , .version =0x1 , .trigger_sel_off =0x119c };
@@ -2050,14 +2042,6 @@ static const struct dpu_reg_dma_cfg sm8250_regdma = { .clk_ctrl = DPU_CLK_CTRL_REG_DMA, }; -static const struct dpu_reg_dma_cfg sm8350_regdma = { - .base =0x400 , - .version =0x00020000 , - .trigger_sel_off =0x119c , - .xin_id =7 , - .clk_ctrl =DPU_CLK_CTRL_REG_DMA , -}; -static const struct dpu_reg_dma_cfg sm8450_regdma = { .base =0x0 , .version =0x00020000 ,
Signature · 1 line
2.20.1.7.g153144c
Dmitry Baryshkov
NAKQuoted 7 lines · Jiapeng Chong
Variables '
sc8280xp_regdma' and 'sm8350_regdma' are defined in thedpu_hw_catalog.cfile, but not used elsewhere, so remove these unused variables.
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2029:37: warning: unused variable 'sc8280xp_regdma'.drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2053:37: warning: unused variable 'sm8350_regdma'.
Quoted 6 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 16 ---------------- 1 file changed, 16 deletions(-)
NAK, the patch should change catalog entries to use correct regdma entries instead of deleting them.
Signature · 2 lines
With best wishes Dmitry
Quoted 10 lines · Jiapeng Chong
Variables '
sc8280xp_regdma' and 'sm8350_regdma' are defined in thedpu_hw_catalog.cfile, but not used elsewhere, so remove these unused variables.
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2029:37: warning: unused variable 'sc8280xp_regdma'.drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2053:37: warning: unused variable 'sm8350_regdma'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
We should be adding the regdma entries to .dma_cfg of these chipsets.
Quoted 38 lines
--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 16 ---------------- 1 file changed, 16 deletions(-)drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-16@@ -2026,14 +2026,6 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = { }, }; -static const struct dpu_reg_dma_cfg sc8280xp_regdma = { - .base =0x0 , - .version =0x00020000 , - .trigger_sel_off =0x119c , - .xin_id =7 , - .clk_ctrl =DPU_CLK_CTRL_REG_DMA , -}; -static const struct dpu_reg_dma_cfg sdm845_regdma = { .base =0x0 , .version =0x1 , .trigger_sel_off =0x119c };@@ -2050,14 +2042,6 @@ static const struct dpu_reg_dma_cfg sm8250_regdma = { .clk_ctrl = DPU_CLK_CTRL_REG_DMA, }; -static const struct dpu_reg_dma_cfg sm8350_regdma = { - .base =0x400 , - .version =0x00020000 , - .trigger_sel_off =0x119c , - .xin_id =7 , - .clk_ctrl =DPU_CLK_CTRL_REG_DMA , -}; -static const struct dpu_reg_dma_cfg sm8450_regdma = { .base =0x0 , .version =0x00020000 ,