summaryrefslogtreecommitdiff
path: root/drivers/crypto/marvell
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/crypto/marvell
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/crypto/marvell')
-rw-r--r--drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c4
-rw-r--r--drivers/crypto/marvell/octeontx/otx_cptvf_main.c6
-rw-r--r--drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c2
-rw-r--r--drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
index b35c57a868e7..09e6a8474d1a 100644
--- a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
+++ b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
@@ -318,7 +318,7 @@ static int process_tar_file(struct device *dev,
return -EINVAL;
}
- tar_info = kzalloc_obj(struct tar_ucode_info_t, GFP_KERNEL);
+ tar_info = kzalloc_obj(struct tar_ucode_info_t);
if (!tar_info)
return -ENOMEM;
@@ -412,7 +412,7 @@ static struct tar_arch_info_t *load_tar_archive(struct device *dev,
size_t tar_size;
int ret;
- tar_arch = kzalloc_obj(struct tar_arch_info_t, GFP_KERNEL);
+ tar_arch = kzalloc_obj(struct tar_arch_info_t);
if (!tar_arch)
return NULL;
diff --git a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
index 32f6616a60eb..587609db6c69 100644
--- a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
+++ b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
@@ -31,7 +31,7 @@ static int init_worker_threads(struct otx_cptvf *cptvf)
struct otx_cptvf_wqe_info *cwqe_info;
int i;
- cwqe_info = kzalloc_obj(*cwqe_info, GFP_KERNEL);
+ cwqe_info = kzalloc_obj(*cwqe_info);
if (!cwqe_info)
return -ENOMEM;
@@ -100,7 +100,7 @@ static int alloc_pending_queues(struct otx_cpt_pending_qinfo *pqinfo, u32 qlen,
pqinfo->num_queues = num_queues;
for_each_pending_queue(pqinfo, queue, i) {
- queue->head = kzalloc_objs(*queue->head, qlen, GFP_KERNEL);
+ queue->head = kzalloc_objs(*queue->head, qlen);
if (!queue->head) {
ret = -ENOMEM;
goto pending_qfail;
@@ -212,7 +212,7 @@ static int alloc_command_queues(struct otx_cptvf *cptvf,
queue = &cqinfo->queue[i];
INIT_LIST_HEAD(&queue->chead);
do {
- curr = kzalloc_obj(*curr, GFP_KERNEL);
+ curr = kzalloc_obj(*curr);
if (!curr)
goto cmd_qfail;
diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c b/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
index 97d948fbc4b3..9b0887d7e62c 100644
--- a/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
+++ b/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
@@ -372,7 +372,7 @@ static int load_fw(struct device *dev, struct fw_info_t *fw_info,
int ucode_type, ucode_size;
int ret;
- uc_info = kzalloc_obj(*uc_info, GFP_KERNEL);
+ uc_info = kzalloc_obj(*uc_info);
if (!uc_info)
return -ENOMEM;
diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c b/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
index bec0a4cd2662..858f851c9c8a 100644
--- a/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
+++ b/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
@@ -150,7 +150,7 @@ static int init_tasklet_work(struct otx2_cptlfs_info *lfs)
int i, ret = 0;
for (i = 0; i < lfs->lfs_num; i++) {
- wqe = kzalloc_obj(struct otx2_cptlf_wqe, GFP_KERNEL);
+ wqe = kzalloc_obj(struct otx2_cptlf_wqe);
if (!wqe) {
ret = -ENOMEM;
goto cleanup_tasklet;