summaryrefslogtreecommitdiff
path: root/drivers/ps3
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/ps3
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/ps3')
-rw-r--r--drivers/ps3/ps3-lpm.c2
-rw-r--r--drivers/ps3/ps3-vuart.c4
-rw-r--r--drivers/ps3/ps3av.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c
index 8f1ee4c748bf..f8d8f607134a 100644
--- a/drivers/ps3/ps3-lpm.c
+++ b/drivers/ps3/ps3-lpm.c
@@ -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;
diff --git a/drivers/ps3/ps3-vuart.c b/drivers/ps3/ps3-vuart.c
index 3493a9ef05ce..39ffa2366132 100644
--- a/drivers/ps3/ps3-vuart.c
+++ b/drivers/ps3/ps3-vuart.c
@@ -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;
diff --git a/drivers/ps3/ps3av.c b/drivers/ps3/ps3av.c
index 19f2c5b4f8f3..d4b91c480f98 100644
--- a/drivers/ps3/ps3av.c
+++ b/drivers/ps3/ps3av.c
@@ -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;