• Bart Van Assche's avatar
    IB/mlx5: Do not use hw_access_flags for be and CPU data · bf3b4f06
    Bart Van Assche authored
    Avoid that sparse reports the following for the mlx5 driver:
    
    drivers/infiniband/hw/mlx5/qp.c:2671:34: warning: invalid assignment: |=
    drivers/infiniband/hw/mlx5/qp.c:2671:34:    left side has type restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2671:34:    right side has type int
    drivers/infiniband/hw/mlx5/qp.c:2679:34: warning: invalid assignment: |=
    drivers/infiniband/hw/mlx5/qp.c:2679:34:    left side has type restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2679:34:    right side has type int
    drivers/infiniband/hw/mlx5/qp.c:2680:34: warning: invalid assignment: |=
    drivers/infiniband/hw/mlx5/qp.c:2680:34:    left side has type restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2680:34:    right side has type int
    drivers/infiniband/hw/mlx5/qp.c:2684:34: warning: invalid assignment: |=
    drivers/infiniband/hw/mlx5/qp.c:2684:34:    left side has type restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2684:34:    right side has type int
    drivers/infiniband/hw/mlx5/qp.c:2686:28: warning: cast from restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2686:28: warning: incorrect type in argument 1 (different base types)
    drivers/infiniband/hw/mlx5/qp.c:2686:28:    expected unsigned int [usertype] val
    drivers/infiniband/hw/mlx5/qp.c:2686:28:    got restricted __be32 [usertype]
    drivers/infiniband/hw/mlx5/qp.c:2686:28: warning: cast from restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2686:28: warning: cast from restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2686:28: warning: cast from restricted __be32
    drivers/infiniband/hw/mlx5/qp.c:2686:28: warning: cast from restricted __be32
    
    This patch does not change any functionality.
    
    Fixes: a60109dc ("IB/mlx5: Add support for extended atomic operations")
    Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
    Acked-by: default avatarLeon Romanovsky <leonro@mellanox.com>
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    bf3b4f06
qp.c 169 KB