summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:06:51 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:09:51 -0800
commit323bbfcf1ef8836d0d2ad9e2c1f1c684f0e3b5b3 (patch)
tree515dca34daa8d18ec26c2c3da3096c6c23955c95 /drivers/misc
parentbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (diff)
Convert 'alloc_flex' family to use the new default GFP_KERNEL argument
This is the exact same thing as the 'alloc_obj()' version, only much smaller because there are a lot fewer users of the *alloc_flex() interface. As with alloc_obj() version, this was done entirely with mindless brute force, using the same script, except using 'flex' in the pattern rather than 'objs*'. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/bcm-vk/bcm_vk_msg.c2
-rw-r--r--drivers/misc/enclosure.c2
-rw-r--r--drivers/misc/lkdtm/bugs.c2
-rw-r--r--drivers/misc/ntsync.c2
-rw-r--r--drivers/misc/tifm_core.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/bcm-vk/bcm_vk_msg.c b/drivers/misc/bcm-vk/bcm_vk_msg.c
index 8537c76e2541..3916ec07ecad 100644
--- a/drivers/misc/bcm-vk/bcm_vk_msg.c
+++ b/drivers/misc/bcm-vk/bcm_vk_msg.c
@@ -700,7 +700,7 @@ int bcm_vk_send_shutdown_msg(struct bcm_vk *vk, u32 shut_type,
return -EINVAL;
}
- entry = kzalloc_flex(*entry, to_v_msg, 1, GFP_KERNEL);
+ entry = kzalloc_flex(*entry, to_v_msg, 1);
if (!entry)
return -ENOMEM;
entry->to_v_blks = 1; /* always 1 block */
diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c
index 7c2964762ef0..cf6382981777 100644
--- a/drivers/misc/enclosure.c
+++ b/drivers/misc/enclosure.c
@@ -117,7 +117,7 @@ enclosure_register(struct device *dev, const char *name, int components,
struct enclosure_component_callbacks *cb)
{
struct enclosure_device *edev =
- kzalloc_flex(*edev, component, components, GFP_KERNEL);
+ kzalloc_flex(*edev, component, components);
int err, i;
BUG_ON(!cb);
diff --git a/drivers/misc/lkdtm/bugs.c b/drivers/misc/lkdtm/bugs.c
index 6b39ee357cef..e0098f314570 100644
--- a/drivers/misc/lkdtm/bugs.c
+++ b/drivers/misc/lkdtm/bugs.c
@@ -477,7 +477,7 @@ static void lkdtm_FAM_BOUNDS(void)
{
struct lkdtm_cb_fam *inst;
- inst = kzalloc_flex(*inst, array, element_count + 1, GFP_KERNEL);
+ inst = kzalloc_flex(*inst, array, element_count + 1);
if (!inst) {
pr_err("FAIL: could not allocate test struct!\n");
return;
diff --git a/drivers/misc/ntsync.c b/drivers/misc/ntsync.c
index ce217b1c3fdd..30af282262ef 100644
--- a/drivers/misc/ntsync.c
+++ b/drivers/misc/ntsync.c
@@ -884,7 +884,7 @@ static int setup_wait(struct ntsync_device *dev,
if (args->alert)
fds[count] = args->alert;
- q = kmalloc_flex(*q, entries, total_count, GFP_KERNEL);
+ q = kmalloc_flex(*q, entries, total_count);
if (!q)
return -ENOMEM;
q->task = current;
diff --git a/drivers/misc/tifm_core.c b/drivers/misc/tifm_core.c
index 1a49483297a9..da0827724a61 100644
--- a/drivers/misc/tifm_core.c
+++ b/drivers/misc/tifm_core.c
@@ -176,7 +176,7 @@ struct tifm_adapter *tifm_alloc_adapter(unsigned int num_sockets,
{
struct tifm_adapter *fm;
- fm = kzalloc_flex(*fm, sockets, num_sockets, GFP_KERNEL);
+ fm = kzalloc_flex(*fm, sockets, num_sockets);
if (fm) {
fm->dev.class = &tifm_adapter_class;
fm->dev.parent = dev;