summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpqphp_ctrl.c
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/pci/hotplug/cpqphp_ctrl.c
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
downloadlinux-bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43.tar.gz
linux-bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43.zip
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/pci/hotplug/cpqphp_ctrl.c')
-rw-r--r--drivers/pci/hotplug/cpqphp_ctrl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/pci/hotplug/cpqphp_ctrl.c b/drivers/pci/hotplug/cpqphp_ctrl.c
index 2c63bdc61306..040429028402 100644
--- a/drivers/pci/hotplug/cpqphp_ctrl.c
+++ b/drivers/pci/hotplug/cpqphp_ctrl.c
@@ -428,7 +428,7 @@ static struct pci_resource *do_pre_bridge_resource_split(struct pci_resource **h
/* this one isn't an aligned length, so we'll make a new entry
* and split it up.
*/
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -553,7 +553,7 @@ static struct pci_resource *get_io_resource(struct pci_resource **head, u32 size
if ((node->length - (temp_dword - node->base)) < size)
continue;
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -573,7 +573,7 @@ static struct pci_resource *get_io_resource(struct pci_resource **head, u32 size
/* this one is longer than we need
* so we'll make a new entry and split it up
*/
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -650,7 +650,7 @@ static struct pci_resource *get_max_resource(struct pci_resource **head, u32 siz
if ((max->length - (temp_dword - max->base)) < size)
continue;
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -668,7 +668,7 @@ static struct pci_resource *get_max_resource(struct pci_resource **head, u32 siz
/* this one isn't end aligned properly at the top
* so we'll make a new entry and split it up
*/
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -747,7 +747,7 @@ static struct pci_resource *get_resource(struct pci_resource **head, u32 size)
if ((node->length - (temp_dword - node->base)) < size)
continue;
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -767,7 +767,7 @@ static struct pci_resource *get_resource(struct pci_resource **head, u32 size)
/* this one is longer than we need
* so we'll make a new entry and split it up
*/
- split_node = kmalloc_obj(*split_node, GFP_KERNEL);
+ split_node = kmalloc_obj(*split_node);
if (!split_node)
return NULL;
@@ -955,7 +955,7 @@ struct pci_func *cpqhp_slot_create(u8 busnumber)
struct pci_func *new_slot;
struct pci_func *next;
- new_slot = kzalloc_obj(*new_slot, GFP_KERNEL);
+ new_slot = kzalloc_obj(*new_slot);
if (new_slot == NULL)
return new_slot;
@@ -2435,10 +2435,10 @@ static int configure_new_function(struct controller *ctrl, struct pci_func *func
/* Make copies of the nodes we are going to pass down so that
* if there is a problem,we can just use these to free resources
*/
- hold_bus_node = kmalloc_obj(*hold_bus_node, GFP_KERNEL);
- hold_IO_node = kmalloc_obj(*hold_IO_node, GFP_KERNEL);
- hold_mem_node = kmalloc_obj(*hold_mem_node, GFP_KERNEL);
- hold_p_mem_node = kmalloc_obj(*hold_p_mem_node, GFP_KERNEL);
+ hold_bus_node = kmalloc_obj(*hold_bus_node);
+ hold_IO_node = kmalloc_obj(*hold_IO_node);
+ hold_mem_node = kmalloc_obj(*hold_mem_node);
+ hold_p_mem_node = kmalloc_obj(*hold_p_mem_node);
if (!hold_bus_node || !hold_IO_node || !hold_mem_node || !hold_p_mem_node) {
kfree(hold_bus_node);