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>
This commit is contained in:
Linus Torvalds
2026-02-21 16:37:42 -08:00
parent e19e1b480a
commit bf4afc53b7
6673 changed files with 13013 additions and 13013 deletions

View File

@@ -210,7 +210,7 @@ static struct rpmsg_endpoint *__rpmsg_create_ept(struct virtproc_info *vrp,
struct rpmsg_endpoint *ept;
struct device *dev = rpdev ? &rpdev->dev : &vrp->vdev->dev;
ept = kzalloc_obj(*ept, GFP_KERNEL);
ept = kzalloc_obj(*ept);
if (!ept)
return NULL;
@@ -400,7 +400,7 @@ static struct rpmsg_device *__rpmsg_create_channel(struct virtproc_info *vrp,
return NULL;
}
vch = kzalloc_obj(*vch, GFP_KERNEL);
vch = kzalloc_obj(*vch);
if (!vch)
return NULL;
@@ -779,7 +779,7 @@ static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev
struct rpmsg_device *rpdev_ctrl;
int err = 0;
vch = kzalloc_obj(*vch, GFP_KERNEL);
vch = kzalloc_obj(*vch);
if (!vch)
return ERR_PTR(-ENOMEM);
@@ -825,7 +825,7 @@ static int rpmsg_probe(struct virtio_device *vdev)
size_t total_buf_space;
bool notify;
vrp = kzalloc_obj(*vrp, GFP_KERNEL);
vrp = kzalloc_obj(*vrp);
if (!vrp)
return -ENOMEM;
@@ -898,7 +898,7 @@ static int rpmsg_probe(struct virtio_device *vdev)
/* if supported by the remote processor, enable the name service */
if (virtio_has_feature(vdev, VIRTIO_RPMSG_F_NS)) {
vch = kzalloc_obj(*vch, GFP_KERNEL);
vch = kzalloc_obj(*vch);
if (!vch) {
err = -ENOMEM;
goto free_ctrldev;