From: kernel test robot <lkp@intel.com>
To: Leon Romanovsky <leonro@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [leon-rdma:rdma-next 80/81] drivers/infiniband/hw/mlx4/mlx4_ib.h:948:46: sparse: sparse: cast truncates bits from constant value (1fffff000 becomes fffff000)
Date: Mon, 18 Nov 2024 18:41:10 +0800 [thread overview]
Message-ID: <202411181852.09fun6Hi-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: 845d2ffec19e577cacf326ed496df4a7bb12642f
commit: 99af5949be7199ac79c2f922f02eb42c20080554 [80/81] RDMA/mlx4: Use ib_umem_find_best_pgsz() to calculate MTT size
config: arc-randconfig-r133-20241117 (https://download.01.org/0day-ci/archive/20241118/202411181852.09fun6Hi-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241118/202411181852.09fun6Hi-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/202411181852.09fun6Hi-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/infiniband/hw/mlx4/cq.c: note: in included file:
>> drivers/infiniband/hw/mlx4/mlx4_ib.h:948:46: sparse: sparse: cast truncates bits from constant value (1fffff000 becomes fffff000)
drivers/infiniband/hw/mlx4/cq.c: note: in included file (through arch/arc/include/asm/irqflags.h, include/linux/irqflags.h, include/linux/spinlock.h, ...):
arch/arc/include/asm/irqflags-arcv2.h:80:31: sparse: sparse: undefined identifier '__builtin_arc_lr'
arch/arc/include/asm/irqflags-arcv2.h:83:17: sparse: sparse: undefined identifier '__builtin_arc_sr'
--
drivers/infiniband/hw/mlx4/mr.c: note: in included file:
>> drivers/infiniband/hw/mlx4/mlx4_ib.h:948:46: sparse: sparse: cast truncates bits from constant value (1fffff000 becomes fffff000)
--
drivers/infiniband/hw/mlx4/qp.c: note: in included file:
>> drivers/infiniband/hw/mlx4/mlx4_ib.h:948:46: sparse: sparse: cast truncates bits from constant value (1fffff000 becomes fffff000)
vim +948 drivers/infiniband/hw/mlx4/mlx4_ib.h
926
927 struct ib_wq *mlx4_ib_create_wq(struct ib_pd *pd,
928 struct ib_wq_init_attr *init_attr,
929 struct ib_udata *udata);
930 int mlx4_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata);
931 int mlx4_ib_modify_wq(struct ib_wq *wq, struct ib_wq_attr *wq_attr,
932 u32 wq_attr_mask, struct ib_udata *udata);
933
934 int mlx4_ib_create_rwq_ind_table(struct ib_rwq_ind_table *ib_rwq_ind_tbl,
935 struct ib_rwq_ind_table_init_attr *init_attr,
936 struct ib_udata *udata);
937 static inline int
938 mlx4_ib_destroy_rwq_ind_table(struct ib_rwq_ind_table *wq_ind_table)
939 {
940 return 0;
941 }
942 static inline int mlx4_ib_umem_calc_optimal_mtt_size(struct ib_umem *umem,
943 u64 start,
944 int *num_of_mtts)
945 {
946 unsigned long pg_sz;
947
> 948 pg_sz = ib_umem_find_best_pgsz(umem, MLX4_PAGE_SIZE_SUPPORTED, start);
949 if (!pg_sz)
950 return -EOPNOTSUPP;
951
952 *num_of_mtts = ib_umem_num_dma_blocks(umem, pg_sz);
953 return order_base_2(pg_sz);
954 }
955
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-11-18 10: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=202411181852.09fun6Hi-lkp@intel.com \
--to=lkp@intel.com \
--cc=leonro@nvidia.com \
--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.