diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-02-21 16:37:42 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-02-21 17:09:51 -0800 |
| commit | bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (patch) | |
| tree | 01fdd9d27f1b272bef0127966e08eac44d134d0a /drivers/soc/tegra | |
| parent | e19e1b480ac73c3e62ffebbca1174f0f511f43e7 (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/soc/tegra')
| -rw-r--r-- | drivers/soc/tegra/fuse/fuse-tegra.c | 2 | ||||
| -rw-r--r-- | drivers/soc/tegra/pmc.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index 165fad4f548e..291484595dcf 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -441,7 +441,7 @@ struct device *tegra_soc_device_register(void) struct soc_device_attribute *attr; struct soc_device *dev; - attr = kzalloc_obj(*attr, GFP_KERNEL); + attr = kzalloc_obj(*attr); if (!attr) return NULL; diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 8f2f83c4ad90..a1a2966512d1 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -1131,11 +1131,11 @@ int tegra_pmc_powergate_sequence_power_up(struct tegra_pmc *pmc, if (!tegra_powergate_is_available(pmc, id)) return -EINVAL; - pg = kzalloc_obj(*pg, GFP_KERNEL); + pg = kzalloc_obj(*pg); if (!pg) return -ENOMEM; - pg->clk_rates = kzalloc_obj(*pg->clk_rates, GFP_KERNEL); + pg->clk_rates = kzalloc_obj(*pg->clk_rates); if (!pg->clk_rates) { kfree(pg->clks); return -ENOMEM; @@ -1341,7 +1341,7 @@ static int tegra_powergate_of_get_clks(struct tegra_powergate *pg, if (count == 0) return -ENODEV; - pg->clks = kzalloc_objs(clk, count, GFP_KERNEL); + pg->clks = kzalloc_objs(clk, count); if (!pg->clks) return -ENOMEM; @@ -1402,7 +1402,7 @@ static int tegra_powergate_add(struct tegra_pmc *pmc, struct device_node *np) int id, err = 0; bool off; - pg = kzalloc_obj(*pg, GFP_KERNEL); + pg = kzalloc_obj(*pg); if (!pg) return -ENOMEM; |
