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 committed 2026-02-21 17:09:51 -08:00
1 parent e19e1b480a
commit bf4afc53b7
6673 files changed
+13013 -13013

No files matched your search

+1 -1
View File
@@ -1181,7 +1181,7 @@ static int ps3_lpm_probe(struct ps3_system_bus_device *dev)
return -EBUSY;
}
lpm_priv = kzalloc_obj(*lpm_priv, GFP_KERNEL);
lpm_priv = kzalloc_obj(*lpm_priv);
if (!lpm_priv)
return -ENOMEM;
+2 -2
View File
@@ -914,7 +914,7 @@ static int ps3_vuart_bus_interrupt_get(void)
BUG_ON(vuart_bus_priv.bmp);
vuart_bus_priv.bmp = kzalloc_obj(struct ports_bmp, GFP_KERNEL);
vuart_bus_priv.bmp = kzalloc_obj(struct ports_bmp);
if (!vuart_bus_priv.bmp) {
result = -ENOMEM;
@@ -1015,7 +1015,7 @@ static int ps3_vuart_probe(struct ps3_system_bus_device *dev)
/* Setup dev->driver_priv. */
dev->driver_priv = kzalloc_obj(struct ps3_vuart_port_priv, GFP_KERNEL);
dev->driver_priv = kzalloc_obj(struct ps3_vuart_port_priv);
if (!dev->driver_priv) {
result = -ENOMEM;
+1 -1
View File
@@ -934,7 +934,7 @@ static int ps3av_probe(struct ps3_system_bus_device *dev)
return -EBUSY;
}
ps3av = kzalloc_obj(*ps3av, GFP_KERNEL);
ps3av = kzalloc_obj(*ps3av);
if (!ps3av)
return -ENOMEM;