* [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)
@ 2024-11-18 10:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-18 10:41 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-18 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 10:41 [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) kernel test robot
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.