summaryrefslogtreecommitdiff
path: root/drivers/acpi/arm64
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/acpi/arm64
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
downloadlwn-bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43.tar.gz
lwn-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/acpi/arm64')
-rw-r--r--drivers/acpi/arm64/ffh.c2
-rw-r--r--drivers/acpi/arm64/iort.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/arm64/ffh.c b/drivers/acpi/arm64/ffh.c
index d850af765ba1..04380bab193d 100644
--- a/drivers/acpi/arm64/ffh.c
+++ b/drivers/acpi/arm64/ffh.c
@@ -33,7 +33,7 @@ int acpi_ffh_address_space_arch_setup(void *handler_ctxt, void **region_ctxt)
return -EOPNOTSUPP;
}
- ffh_ctxt = kzalloc_obj(*ffh_ctxt, GFP_KERNEL);
+ ffh_ctxt = kzalloc_obj(*ffh_ctxt);
if (!ffh_ctxt)
return -ENOMEM;
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 8e74b4eaf9bd..af7a9b2fd5bc 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -165,7 +165,7 @@ int iort_register_domain_token(int trans_id, phys_addr_t base,
{
struct iort_its_msi_chip *its_msi_chip;
- its_msi_chip = kzalloc_obj(*its_msi_chip, GFP_KERNEL);
+ its_msi_chip = kzalloc_obj(*its_msi_chip);
if (!its_msi_chip)
return -ENOMEM;
@@ -938,7 +938,7 @@ static struct iommu_iort_rmr_data *iort_rmr_alloc(
u32 *sids_copy;
u64 addr = rmr_desc->base_address, size = rmr_desc->length;
- rmr_data = kmalloc_obj(*rmr_data, GFP_KERNEL);
+ rmr_data = kmalloc_obj(*rmr_data);
if (!rmr_data)
return NULL;
@@ -1942,7 +1942,7 @@ static int __init iort_add_platform_device(struct acpi_iort_node *node,
count = ops->dev_count_resources(node);
- r = kzalloc_objs(*r, count, GFP_KERNEL);
+ r = kzalloc_objs(*r, count);
if (!r) {
ret = -ENOMEM;
goto dev_put;