mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32
@ 2021-11-17 19:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-17 19:41 UTC (permalink / raw)
  To: Yishai Hadas; +Cc: kbuild-all, linux-kernel, Jason Gunthorpe, Leon Romanovsky

[-- Attachment #1: Type: text/plain, Size: 2337 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37466 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-17 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 19:41 drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome