summaryrefslogtreecommitdiff
path: root/drivers/greybus
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/greybus
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/greybus')
-rw-r--r--drivers/greybus/bundle.c2
-rw-r--r--drivers/greybus/connection.c2
-rw-r--r--drivers/greybus/control.c2
-rw-r--r--drivers/greybus/es2.c8
-rw-r--r--drivers/greybus/interface.c2
-rw-r--r--drivers/greybus/manifest.c2
-rw-r--r--drivers/greybus/svc.c4
-rw-r--r--drivers/greybus/svc_watchdog.c2
8 files changed, 12 insertions, 12 deletions
diff --git a/drivers/greybus/bundle.c b/drivers/greybus/bundle.c
index f8aee6da89a4..d1831d0986e9 100644
--- a/drivers/greybus/bundle.c
+++ b/drivers/greybus/bundle.c
@@ -197,7 +197,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
return NULL;
}
- bundle = kzalloc_obj(*bundle, GFP_KERNEL);
+ bundle = kzalloc_obj(*bundle);
if (!bundle)
return NULL;
diff --git a/drivers/greybus/connection.c b/drivers/greybus/connection.c
index 91fd5cbb716d..bd04485decb3 100644
--- a/drivers/greybus/connection.c
+++ b/drivers/greybus/connection.c
@@ -165,7 +165,7 @@ _gb_connection_create(struct gb_host_device *hd, int hd_cport_id,
}
hd_cport_id = ret;
- connection = kzalloc_obj(*connection, GFP_KERNEL);
+ connection = kzalloc_obj(*connection);
if (!connection) {
ret = -ENOMEM;
goto err_hd_cport_release;
diff --git a/drivers/greybus/control.c b/drivers/greybus/control.c
index 8e5c8288bf5a..aec3c8e3802a 100644
--- a/drivers/greybus/control.c
+++ b/drivers/greybus/control.c
@@ -446,7 +446,7 @@ struct gb_control *gb_control_create(struct gb_interface *intf)
struct gb_connection *connection;
struct gb_control *control;
- control = kzalloc_obj(*control, GFP_KERNEL);
+ control = kzalloc_obj(*control);
if (!control)
return ERR_PTR(-ENOMEM);
diff --git a/drivers/greybus/es2.c b/drivers/greybus/es2.c
index 5acb238dde17..6ae0ac828afa 100644
--- a/drivers/greybus/es2.c
+++ b/drivers/greybus/es2.c
@@ -547,7 +547,7 @@ static int cport_enable(struct gb_host_device *hd, u16 cport_id,
u32 connection_flags;
int ret;
- req = kzalloc_obj(*req, GFP_KERNEL);
+ req = kzalloc_obj(*req);
if (!req)
return -ENOMEM;
@@ -883,7 +883,7 @@ static struct arpc *arpc_alloc(void *payload, u16 size, u8 type)
if (size + sizeof(*rpc->req) > ARPC_OUT_SIZE_MAX)
return NULL;
- rpc = kzalloc_obj(*rpc, GFP_KERNEL);
+ rpc = kzalloc_obj(*rpc);
if (!rpc)
return NULL;
@@ -892,7 +892,7 @@ static struct arpc *arpc_alloc(void *payload, u16 size, u8 type)
if (!rpc->req)
goto err_free_rpc;
- rpc->resp = kzalloc_obj(*rpc->resp, GFP_KERNEL);
+ rpc->resp = kzalloc_obj(*rpc->resp);
if (!rpc->resp)
goto err_free_req;
@@ -1203,7 +1203,7 @@ static int apb_get_cport_count(struct usb_device *udev)
int retval;
__le16 *cport_count;
- cport_count = kzalloc_obj(*cport_count, GFP_KERNEL);
+ cport_count = kzalloc_obj(*cport_count);
if (!cport_count)
return -ENOMEM;
diff --git a/drivers/greybus/interface.c b/drivers/greybus/interface.c
index 881eb5e545a0..4ee4bda4a267 100644
--- a/drivers/greybus/interface.c
+++ b/drivers/greybus/interface.c
@@ -789,7 +789,7 @@ struct gb_interface *gb_interface_create(struct gb_module *module,
struct gb_host_device *hd = module->hd;
struct gb_interface *intf;
- intf = kzalloc_obj(*intf, GFP_KERNEL);
+ intf = kzalloc_obj(*intf);
if (!intf)
return NULL;
diff --git a/drivers/greybus/manifest.c b/drivers/greybus/manifest.c
index 0cb87bea249e..a1b2567895bf 100644
--- a/drivers/greybus/manifest.c
+++ b/drivers/greybus/manifest.c
@@ -157,7 +157,7 @@ static int identify_descriptor(struct gb_interface *intf,
expected_size, desc_size);
}
- descriptor = kzalloc_obj(*descriptor, GFP_KERNEL);
+ descriptor = kzalloc_obj(*descriptor);
if (!descriptor)
return -ENOMEM;
diff --git a/drivers/greybus/svc.c b/drivers/greybus/svc.c
index 4efe3dd5bc17..ee79048e3033 100644
--- a/drivers/greybus/svc.c
+++ b/drivers/greybus/svc.c
@@ -1128,7 +1128,7 @@ static int gb_svc_queue_deferred_request(struct gb_operation *operation)
struct gb_svc *svc = gb_connection_get_data(operation->connection);
struct gb_svc_deferred_request *dr;
- dr = kmalloc_obj(*dr, GFP_KERNEL);
+ dr = kmalloc_obj(*dr);
if (!dr)
return -ENOMEM;
@@ -1315,7 +1315,7 @@ struct gb_svc *gb_svc_create(struct gb_host_device *hd)
{
struct gb_svc *svc;
- svc = kzalloc_obj(*svc, GFP_KERNEL);
+ svc = kzalloc_obj(*svc);
if (!svc)
return NULL;
diff --git a/drivers/greybus/svc_watchdog.c b/drivers/greybus/svc_watchdog.c
index 2d2171f95822..16e6de5e9eff 100644
--- a/drivers/greybus/svc_watchdog.c
+++ b/drivers/greybus/svc_watchdog.c
@@ -112,7 +112,7 @@ int gb_svc_watchdog_create(struct gb_svc *svc)
if (svc->watchdog)
return 0;
- watchdog = kmalloc_obj(*watchdog, GFP_KERNEL);
+ watchdog = kmalloc_obj(*watchdog);
if (!watchdog)
return -ENOMEM;