diff options
author | Roland Dreier <roland@purestorage.com> | 2014-06-04 21:19:13 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-06-04 21:19:13 +0400 |
commit | 4e2c341b863e5bb680a49d5f006d7b75cf93bc93 (patch) | |
tree | fb806f3ba4adce2a6ec5a9f804d3b8002c2a9c78 /drivers/net/ethernet/mellanox/mlx4/qp.c | |
parent | 40f2287bd583f4df4c602c1a29a48df2730fb6d4 (diff) | |
download | linux-4e2c341b863e5bb680a49d5f006d7b75cf93bc93.tar.xz |
mlx4_core: Fix GFP flags parameters to be gfp_t
Otherwise sparse gives a bunch of warnings like
drivers/net/ethernet/mellanox/mlx4/srq.c:110:66: sparse: incorrect type in argument 4 (different base types)
drivers/net/ethernet/mellanox/mlx4/srq.c:110:66: expected int [signed] gfp
drivers/net/ethernet/mellanox/mlx4/srq.c:110:66: got restricted gfp_t
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/qp.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/qp.c b/drivers/net/ethernet/mellanox/mlx4/qp.c index 917f0d0ba7c6..07198cacbb20 100644 --- a/drivers/net/ethernet/mellanox/mlx4/qp.c +++ b/drivers/net/ethernet/mellanox/mlx4/qp.c @@ -316,7 +316,7 @@ err_out: return err; } -static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, int gfp) +static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) { u64 param = 0; |