summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ionic
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 16:37:42 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:09:51 -0800
commitbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (patch)
tree01fdd9d27f1b272bef0127966e08eac44d134d0a /drivers/infiniband/hw/ionic
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
This was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/' to convert the new alloc_obj() users that had a simple GFP_KERNEL argument to just drop that argument. Note that due to the extreme simplicity of the scripting, any slightly more complex cases spread over multiple lines would not be triggered: they definitely exist, but this covers the vast bulk of the cases, and the resulting diff is also then easier to check automatically. For the same reason the 'flex' versions will be done as a separate conversion. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/infiniband/hw/ionic')
-rw-r--r--drivers/infiniband/hw/ionic/ionic_admin.c8
-rw-r--r--drivers/infiniband/hw/ionic/ionic_controlpath.c12
-rw-r--r--drivers/infiniband/hw/ionic/ionic_hw_stats.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/drivers/infiniband/hw/ionic/ionic_admin.c b/drivers/infiniband/hw/ionic/ionic_admin.c
index 850bd40ae3cc..59f22e83c931 100644
--- a/drivers/infiniband/hw/ionic/ionic_admin.c
+++ b/drivers/infiniband/hw/ionic/ionic_admin.c
@@ -520,7 +520,7 @@ static struct ionic_vcq *ionic_create_rdma_admincq(struct ionic_ibdev *dev,
struct ionic_cq *cq;
int rc;
- vcq = kzalloc_obj(*vcq, GFP_KERNEL);
+ vcq = kzalloc_obj(*vcq);
if (!vcq)
return ERR_PTR(-ENOMEM);
@@ -558,7 +558,7 @@ static struct ionic_aq *__ionic_create_rdma_adminq(struct ionic_ibdev *dev,
struct ionic_aq *aq;
int rc;
- aq = kzalloc_obj(*aq, GFP_KERNEL);
+ aq = kzalloc_obj(*aq);
if (!aq)
return ERR_PTR(-ENOMEM);
@@ -575,7 +575,7 @@ static struct ionic_aq *__ionic_create_rdma_adminq(struct ionic_ibdev *dev,
ionic_queue_dbell_init(&aq->q, aq->aqid);
- aq->q_wr = kzalloc_objs(*aq->q_wr, (u32)aq->q.mask + 1, GFP_KERNEL);
+ aq->q_wr = kzalloc_objs(*aq->q_wr, (u32)aq->q.mask + 1);
if (!aq->q_wr) {
rc = -ENOMEM;
goto err_wr;
@@ -983,7 +983,7 @@ static struct ionic_eq *ionic_create_eq(struct ionic_ibdev *dev, int eqid)
struct ionic_eq *eq;
int rc;
- eq = kzalloc_obj(*eq, GFP_KERNEL);
+ eq = kzalloc_obj(*eq);
if (!eq)
return ERR_PTR(-ENOMEM);
diff --git a/drivers/infiniband/hw/ionic/ionic_controlpath.c b/drivers/infiniband/hw/ionic/ionic_controlpath.c
index 9a2b09b783e0..7889d76bf69d 100644
--- a/drivers/infiniband/hw/ionic/ionic_controlpath.c
+++ b/drivers/infiniband/hw/ionic/ionic_controlpath.c
@@ -343,7 +343,7 @@ ionic_mmap_entry_insert(struct ionic_ctx *ctx, unsigned long size,
struct ionic_mmap_entry *entry;
int rc;
- entry = kzalloc_obj(*entry, GFP_KERNEL);
+ entry = kzalloc_obj(*entry);
if (!entry)
return NULL;
@@ -852,7 +852,7 @@ struct ib_mr *ionic_get_dma_mr(struct ib_pd *ibpd, int access)
struct ionic_pd *pd = to_ionic_pd(ibpd);
struct ionic_mr *mr;
- mr = kzalloc_obj(*mr, GFP_KERNEL);
+ mr = kzalloc_obj(*mr);
if (!mr)
return ERR_PTR(-ENOMEM);
@@ -878,7 +878,7 @@ struct ib_mr *ionic_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length,
if (dmah)
return ERR_PTR(-EOPNOTSUPP);
- mr = kzalloc_obj(*mr, GFP_KERNEL);
+ mr = kzalloc_obj(*mr);
if (!mr)
return ERR_PTR(-ENOMEM);
@@ -945,7 +945,7 @@ struct ib_mr *ionic_reg_user_mr_dmabuf(struct ib_pd *ibpd, u64 offset,
if (dmah)
return ERR_PTR(-EOPNOTSUPP);
- mr = kzalloc_obj(*mr, GFP_KERNEL);
+ mr = kzalloc_obj(*mr);
if (!mr)
return ERR_PTR(-ENOMEM);
@@ -1039,7 +1039,7 @@ struct ib_mr *ionic_alloc_mr(struct ib_pd *ibpd, enum ib_mr_type type,
if (type != IB_MR_TYPE_MEM_REG)
return ERR_PTR(-EINVAL);
- mr = kzalloc_obj(*mr, GFP_KERNEL);
+ mr = kzalloc_obj(*mr);
if (!mr)
return ERR_PTR(-ENOMEM);
@@ -2203,7 +2203,7 @@ int ionic_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr,
qp->has_ah = attr->qp_type == IB_QPT_RC;
if (qp->has_ah) {
- qp->hdr = kzalloc_obj(*qp->hdr, GFP_KERNEL);
+ qp->hdr = kzalloc_obj(*qp->hdr);
if (!qp->hdr) {
rc = -ENOMEM;
goto err_ah_alloc;
diff --git a/drivers/infiniband/hw/ionic/ionic_hw_stats.c b/drivers/infiniband/hw/ionic/ionic_hw_stats.c
index 3fbdc007dd05..03fdd2b16c4e 100644
--- a/drivers/infiniband/hw/ionic/ionic_hw_stats.c
+++ b/drivers/infiniband/hw/ionic/ionic_hw_stats.c
@@ -240,7 +240,7 @@ ionic_counter_alloc_stats(struct rdma_counter *counter)
struct ionic_counter *cntr;
int err;
- cntr = kzalloc_obj(*cntr, GFP_KERNEL);
+ cntr = kzalloc_obj(*cntr);
if (!cntr)
return NULL;