From: kernel test robot <lkp@intel.com>
To: Yishai Hadas <yishaih@nvidia.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Jason Gunthorpe <jgg@nvidia.com>,
Leon Romanovsky <leonro@nvidia.com>
Subject: drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32
Date: Thu, 18 Nov 2021 03:41:05 +0800 [thread overview]
Message-ID: <202111180351.vJ58VRHj-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-11-17 19:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111180351.vJ58VRHj-lkp@intel.com \
--to=lkp@intel.com \
--cc=jgg@nvidia.com \
--cc=kbuild-all@lists.01.org \
--cc=leonro@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=yishaih@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®