[ofa-general] sparse output

Michael S. Tsirkin mst at dev.mellanox.co.il
Tue Aug 7 04:29:21 PDT 2007


Running sparse checker (git://git.kernel.org/pub/scm/devel/sparse/sparse.git)
on 2.6.23-rc2 gives the following warnings:


/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/device.c:142:6: warning: incorrect type in argument 1 (different signedness)
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/device.c:142:6:    expected unsigned long const *addr
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/device.c:142:6:    got long *[assigned] inuse
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/ucm.c:625:53: warning: incorrect type in argument 3 (different signedness)
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/ucm.c:625:53:    expected int *qp_attr_mask
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/ucm.c:625:53:    got unsigned int *<noident>
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:127:32: warning: incorrect type in argument 3 (different signedness)
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:127:32:    expected int *id
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:127:32:    got unsigned int *<noident>
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:302:46: warning: incorrect type in argument 3 (different signedness)
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:302:46:    expected int *fd
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:302:46:    got unsigned int *<noident>
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:723:46: warning: incorrect type in argument 3 (different signedness)
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:723:46:    expected int *fd
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/uverbs_cmd.c:723:46:    got unsigned int *<noident>
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/ucma.c:781:49: warning: incorrect type in argument 3 (different signedness)
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/ucma.c:781:49:    expected int *qp_attr_mask
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/core/ucma.c:781:49:    got unsigned int *<noident>
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/hw/mlx4/qp.c:460:2: warning: context imbalance in 'mlx4_ib_lock_cqs' - wrong count at exit
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/hw/mlx4/qp.c:474:3: warning: context imbalance in 'mlx4_ib_unlock_cqs' - unexpected unlock
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/hw/mthca/mthca_cmd.c:414:31: warning: potentially expensive pointer subtraction
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/hw/mthca/mthca_qp.c:1336:2: warning: context imbalance in 'mthca_lock_cqs' - wrong count at exit
/home/mst/build/x86_64/linux-2.6/drivers/infiniband/hw/mthca/mthca_qp.c:1350:3: warning: context imbalance in 'mthca_unlock_cqs' - unexpected unlock

Do we want to fix these?

-- 
MST



More information about the general mailing list