[xilinx-xlnx:xlnx_rebase_v5.15_LTS 629/1197] drivers/gpu/drm/xlnx/xlnx_dsi.c:88:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '200000000000' to '2431504384'

kernel test robot lkp at intel.com
Sun Jun 26 06:37:57 PDT 2022


Hi Saurabh,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   1e67f149fb5eb4f5eb4e0d4f69194eac6d2497d7
commit: 32f4c7d25b52562567b652709480223cf36e3229 [629/1197] drm: xlnx: dsi: Adding dsi driver to new framework
config: mips-allmodconfig
compiler: mips-linux-gcc (GCC) 11.3.0
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
        # https://github.com/Xilinx/linux-xlnx/commit/32f4c7d25b52562567b652709480223cf36e3229
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 32f4c7d25b52562567b652709480223cf36e3229
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/xlnx/ drivers/media/platform/xilinx/ drivers/phy/xilinx/ drivers/staging/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/xlnx/xlnx_dsi.c: In function 'xlnx_dsi_probe':
>> drivers/gpu/drm/xlnx/xlnx_dsi.c:88:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '200000000000' to '2431504384' [-Woverflow]
      88 | #define XDSI_DPHY_CLK_REQ       200000000000UL
         |                                 ^~~~~~~~~~~~~~
   drivers/gpu/drm/xlnx/xlnx_dsi.c:967:48: note: in expansion of macro 'XDSI_DPHY_CLK_REQ'
     967 |         ret = clk_set_rate(dsi->dphy_clk_200M, XDSI_DPHY_CLK_REQ);
         |                                                ^~~~~~~~~~~~~~~~~


vim +88 drivers/gpu/drm/xlnx/xlnx_dsi.c

    85	
    86	#define XDSI_DPHY_CLK_MIN	197000000000UL
    87	#define XDSI_DPHY_CLK_MAX	203000000000UL
  > 88	#define XDSI_DPHY_CLK_REQ	200000000000UL
    89	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-arm-kernel mailing list