From: kernel test robot <lkp@intel.com>
To: Ian Rogers <irogers@google.com>
Cc: oe-kbuild-all@lists.linux.dev, "Thomas Weißschuh" <linux@weissschuh.net>
Subject: [thomas-weissschuh:vdso/unaligned 1/3] include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers)
Date: Tue, 29 Jul 2025 13:56:27 +0800 [thread overview]
Message-ID: <202507291356.KX5dMLQw-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git vdso/unaligned
head: d826530fc107faa320a7a88b939b72fa5f6734b5
commit: 3e7bf09e7bd5dce36df14f6770211fd1bc98a538 [1/3] vdso: Switch get/put unaligned from packed struct to memcpy
config: i386-randconfig-062-20250729 (https://download.01.org/0day-ci/archive/20250729/202507291356.KX5dMLQw-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250729/202507291356.KX5dMLQw-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507291356.KX5dMLQw-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/infiniband/core/cm.c:1296:20: sparse: sparse: cast from restricted __be32
drivers/infiniband/core/cm.c: note: in included file (through include/rdma/ibta_vol1_c12.h, drivers/infiniband/core/cm_msgs.h):
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
>> include/rdma/iba.h:48:16: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void * @@ got restricted __be64 const * @@
include/rdma/iba.h:48:16: sparse: expected void *
include/rdma/iba.h:48:16: sparse: got restricted __be64 const *
vim +48 include/rdma/iba.h
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 41
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 42 static inline u64 _iba_get64(const __be64 *ptr)
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 43 {
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 44 /*
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 45 * The mads are constructed so that 32 bit and smaller are naturally
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 46 * aligned, everything larger has a max alignment of 4 bytes.
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 47 */
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 @48 return be64_to_cpu(get_unaligned(ptr));
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 49 }
d05d4ac4c9316a2 Leon Romanovsky 2020-01-16 50
:::::: The code at line 48 was first introduced by commit
:::::: d05d4ac4c9316a2e2ea5be434a7f7a021ec44a3c RDMA/cm: Add SET/GET implementations to hide IBA wire format
:::::: TO: Leon Romanovsky <leonro@mellanox.com>
:::::: CC: Jason Gunthorpe <jgg@mellanox.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-29 5:56 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=202507291356.KX5dMLQw-lkp@intel.com \
--to=lkp@intel.com \
--cc=irogers@google.com \
--cc=linux@weissschuh.net \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.