[linux-next:master 9470/14048] drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c:1148:48: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 5000000000 to 705032704

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   593ef1658ecf61d3619885bdbbcfffa3d1417891
commit: 076437c9e360737c85d443bbf81d5ea02b3d182d [9470/14048] drm/msm/dsi: move min/max PLL rate to phy config
config: arm-randconfig-r025-20210420 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project ca8eef7e3da8f750d7c7aa004fe426d1d34787ea)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=076437c9e360737c85d443bbf81d5ea02b3d182d
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 076437c9e360737c85d443bbf81d5ea02b3d182d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c:1148:48: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 5000000000 to 705032704 [-Wconstant-conversion]
           .max_pll_rate = (5000000000ULL < ULONG_MAX) ? 5000000000ULL : ULONG_MAX,
                                                         ^~~~~~~~~~~~~
   1 warning generated.


vim +1148 drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c

  1125	
  1126	const struct msm_dsi_phy_cfg dsi_phy_7nm_cfgs = {
  1127		.src_pll_truthtable = { {false, false}, {true, false} },
  1128		.has_phy_lane = true,
  1129		.reg_cfg = {
  1130			.num = 1,
  1131			.regs = {
  1132				{"vdds", 36000, 32},
  1133			},
  1134		},
  1135		.ops = {
  1136			.enable = dsi_7nm_phy_enable,
  1137			.disable = dsi_7nm_phy_disable,
  1138			.pll_init = dsi_pll_7nm_init,
  1139		},
  1140		.pll_ops = {
  1141			.get_provider = dsi_pll_7nm_get_provider,
  1142			.destroy = dsi_pll_7nm_destroy,
  1143			.save_state = dsi_pll_7nm_save_state,
  1144			.restore_state = dsi_pll_7nm_restore_state,
  1145			.set_usecase = dsi_pll_7nm_set_usecase,
  1146		},
  1147		.min_pll_rate = 600000000UL,
> 1148		.max_pll_rate = (5000000000ULL < ULONG_MAX) ? 5000000000ULL : ULONG_MAX,
  1149		.io_start = { 0xae94400, 0xae96400 },
  1150		.num_dsi_phy = 2,
  1151		.quirks = DSI_PHY_7NM_QUIRK_V4_1,
  1152	};
  1153	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux