Messages in this thread | | | Date | Thu, 18 Nov 2021 03:41:05 +0800 | From | kernel test robot <> | Subject | drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32 |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ee1703cda8dc777e937dec172da55beaf1a74919 commit: 2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3 IB/core: Split uverbs_get_const/default to consider target type date: 8 months ago config: x86_64-randconfig-s022-20211116 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/infiniband/core/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>) >> drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32
vim +1314 drivers/infiniband/core/cm.c
067b171b8679f9 Haggai Eran 2015-07-30 1308 87a37ce9e400e4 Håkon Bugge 2018-07-04 1309 static __be64 cm_form_tid(struct cm_id_private *cm_id_priv) a977049dacdef6 Hal Rosenstock 2005-07-27 1310 { a977049dacdef6 Hal Rosenstock 2005-07-27 1311 u64 hi_tid, low_tid; a977049dacdef6 Hal Rosenstock 2005-07-27 1312 a977049dacdef6 Hal Rosenstock 2005-07-27 1313 hi_tid = ((u64) cm_id_priv->av.port->mad_agent->hi_tid) << 32; 87a37ce9e400e4 Håkon Bugge 2018-07-04 @1314 low_tid = (u64)cm_id_priv->id.local_id; a977049dacdef6 Hal Rosenstock 2005-07-27 1315 return cpu_to_be64(hi_tid | low_tid); a977049dacdef6 Hal Rosenstock 2005-07-27 1316 } a977049dacdef6 Hal Rosenstock 2005-07-27 1317
:::::: The code at line 1314 was first introduced by commit :::::: 87a37ce9e400e40daee537ff95343e3c94743c6d IB/cm: Remove unused and erroneous msg sequence encoding
:::::: TO: Håkon Bugge <haakon.bugge@oracle.com> :::::: CC: Jason Gunthorpe <jgg@mellanox.com>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |