Hi Yongqiang,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on pza/reset/next linus/master v5.12-rc7]
[cannot apply to next-20210413]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    
https://github.com/0day-ci/linux/commits/Yongqiang-Niu/gamma-set-with-cmdq/20210412-143659
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm64-randconfig-r023-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
9829f5e6b1bca9b61efc629770d28bb9014dec45)
reproduce (this is a W=1 build):
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # 
https://github.com/0day-ci/linux/commit/b562bd6c318f4681373221cc292c78d51cb819e6
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review 
Yongqiang-Niu/gamma-set-with-cmdq/20210412-143659
        git checkout b562bd6c318f4681373221cc292c78d51cb819e6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/mediatek/mtk_disp_gamma.c:76:50: warning: incompatible 
>> pointer to integer conversion passing 'void *' to parameter of type 
>> 'unsigned int' [-Wint-conversion]
                           mtk_ddp_write(cmdq_pkt, word, cmdq_reg, regs, 
(lut_base + i * 4));
                                                                         
^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h:199:19: note: passing argument 
to parameter 'offset' here
                      unsigned int offset);
                                   ^
   1 warning generated.


vim +76 drivers/gpu/drm/mediatek/mtk_disp_gamma.c

    57  
    58  void mtk_gamma_set_common(void __iomem *regs, struct cmdq_client_reg 
*cmdq_reg,
    59                            struct drm_crtc_state *state, struct cmdq_pkt 
*cmdq_pkt)
    60  {
    61          unsigned int i, reg;
    62          struct drm_color_lut *lut;
    63          void __iomem *lut_base;
    64          u32 word;
    65  
    66          if (state->gamma_lut) {
    67                  reg = readl(regs + DISP_GAMMA_CFG);
    68                  reg = reg | GAMMA_LUT_EN;
    69                  mtk_ddp_write(cmdq_pkt, reg, cmdq_reg, regs, 
DISP_GAMMA_CFG);
    70                  lut_base = regs + DISP_GAMMA_LUT;
    71                  lut = (struct drm_color_lut *)state->gamma_lut->data;
    72                  for (i = 0; i < MTK_LUT_SIZE; i++) {
    73                          word = (((lut[i].red >> 6) & LUT_10BIT_MASK) << 
20) +
    74                                  (((lut[i].green >> 6) & LUT_10BIT_MASK) 
<< 10) +
    75                                  ((lut[i].blue >> 6) & LUT_10BIT_MASK);
  > 76                          mtk_ddp_write(cmdq_pkt, word, cmdq_reg, regs, 
(lut_base + i * 4));
    77                  }
    78          }
    79  }
    80  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to