summaryrefslogtreecommitdiff
path: root/drivers/xen/xen-scsiback.c
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/xen/xen-scsiback.c
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
downloadlinux-next-bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43.tar.gz
linux-next-bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43.zip
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/xen/xen-scsiback.c')
-rw-r--r--drivers/xen/xen-scsiback.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c
index 66758c72d5d1..dee1a05fdd44 100644
--- a/drivers/xen/xen-scsiback.c
+++ b/drivers/xen/xen-scsiback.c
@@ -974,7 +974,7 @@ static int scsiback_add_translation_entry(struct vscsibk_info *info,
return -ENODEV;
}
- new = kmalloc_obj(struct v2p_entry, GFP_KERNEL);
+ new = kmalloc_obj(struct v2p_entry);
if (new == NULL) {
err = -ENOMEM;
goto out_free;
@@ -1270,7 +1270,7 @@ static int scsiback_probe(struct xenbus_device *dev,
{
int err;
- struct vscsibk_info *info = kzalloc_obj(struct vscsibk_info, GFP_KERNEL);
+ struct vscsibk_info *info = kzalloc_obj(struct vscsibk_info);
pr_debug("%s %p %d\n", __func__, dev, dev->otherend_id);
@@ -1351,7 +1351,7 @@ scsiback_make_tport(struct target_fabric_configfs *tf,
u64 wwpn = 0;
int off = 0;
- tport = kzalloc_obj(struct scsiback_tport, GFP_KERNEL);
+ tport = kzalloc_obj(struct scsiback_tport);
if (!tport)
return ERR_PTR(-ENOMEM);
@@ -1531,7 +1531,7 @@ static int scsiback_make_nexus(struct scsiback_tpg *tpg,
goto out_unlock;
}
- tv_nexus = kzalloc_obj(struct scsiback_nexus, GFP_KERNEL);
+ tv_nexus = kzalloc_obj(struct scsiback_nexus);
if (!tv_nexus) {
ret = -ENOMEM;
goto out_unlock;
@@ -1758,7 +1758,7 @@ scsiback_make_tpg(struct se_wwn *wwn, const char *name)
if (ret)
return ERR_PTR(ret);
- tpg = kzalloc_obj(struct scsiback_tpg, GFP_KERNEL);
+ tpg = kzalloc_obj(struct scsiback_tpg);
if (!tpg)
return ERR_PTR(-ENOMEM);