[xlnx:xlnx_rebase_v5.4 478/1762] 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
Tue Jun 15 14:01:11 PDT 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   d128303e4c53bcf7775c46771bf64c71596f3303
commit: 8caa8fb47aa0429f2a25100cf4f957463ba00801 [478/1762] v4l: xilinx: xcsi2rxss: Add support for clock framework
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.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: 60543 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210616/72a705ff/attachment-0001.gz>


More information about the linux-arm-kernel mailing list