[xlnx:xlnx_rebase_v5.4 478/1765] drivers/media/platform/xilinx/xilinx-csi2rxss.c:326:27: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '200000000000' to '2431504384'

kernel test robot lkp at intel.com
Wed Jul 21 04:04:21 PDT 2021


Hi Vishal,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   2f686fa6c0bf7fa168dc45dd7ce1359217212911
commit: 8caa8fb47aa0429f2a25100cf4f957463ba00801 [478/1765] v4l: xilinx: xcsi2rxss: Add support for clock framework
config: i386-randconfig-a005-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
        # https://github.com/Xilinx/linux-xlnx/commit/8caa8fb47aa0429f2a25100cf4f957463ba00801
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 8caa8fb47aa0429f2a25100cf4f957463ba00801
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   drivers/media/platform/xilinx/xilinx-csi2rxss.c: In function 'xcsi2rxss_probe':
>> drivers/media/platform/xilinx/xilinx-csi2rxss.c:326:27: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '200000000000' to '2431504384' [-Woverflow]
     326 | #define XCSI_DPHY_CLK_REQ 200000000000UL
         |                           ^~~~~~~~~~~~~~
   drivers/media/platform/xilinx/xilinx-csi2rxss.c:1819:8: note: in expansion of macro 'XCSI_DPHY_CLK_REQ'
    1819 |        XCSI_DPHY_CLK_REQ);
         |        ^~~~~~~~~~~~~~~~~
   drivers/media/platform/xilinx/xilinx-csi2rxss.c:1828:12: warning: comparison is always true due to limited range of data type [-Wtype-limits]
    1828 |   if (rate < XCSI_DPHY_CLK_MIN && rate > XCSI_DPHY_CLK_MAX) {
         |            ^
   drivers/media/platform/xilinx/xilinx-csi2rxss.c:1828:40: warning: comparison is always false due to limited range of data type [-Wtype-limits]
    1828 |   if (rate < XCSI_DPHY_CLK_MIN && rate > XCSI_DPHY_CLK_MAX) {
         |                                        ^


vim +326 drivers/media/platform/xilinx/xilinx-csi2rxss.c

   323	
   324	#define XCSI_DPHY_CLK_MIN	197000000000UL
   325	#define XCSI_DPHY_CLK_MAX	203000000000UL
 > 326	#define XCSI_DPHY_CLK_REQ	200000000000UL
   327	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 31472 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210721/50ce7ba2/attachment-0001.gz>


More information about the linux-arm-kernel mailing list