mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
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>
This commit is contained in:
@@ -446,7 +446,7 @@ static int amdgpu_pmu_alloc_pmu_attrs(
|
||||
struct amdgpu_pmu_event_attribute **evt_attr,
|
||||
struct amdgpu_pmu_config *config)
|
||||
{
|
||||
*fmt_attr = kzalloc_objs(**fmt_attr, config->num_formats, GFP_KERNEL);
|
||||
*fmt_attr = kzalloc_objs(**fmt_attr, config->num_formats);
|
||||
|
||||
if (!(*fmt_attr))
|
||||
return -ENOMEM;
|
||||
@@ -458,7 +458,7 @@ static int amdgpu_pmu_alloc_pmu_attrs(
|
||||
if (!fmt_attr_group->attrs)
|
||||
goto err_fmt_attr_grp;
|
||||
|
||||
*evt_attr = kzalloc_objs(**evt_attr, config->num_events, GFP_KERNEL);
|
||||
*evt_attr = kzalloc_objs(**evt_attr, config->num_events);
|
||||
|
||||
if (!(*evt_attr))
|
||||
goto err_evt_attr;
|
||||
@@ -599,7 +599,7 @@ static struct amdgpu_pmu_entry *create_pmu_entry(struct amdgpu_device *adev,
|
||||
{
|
||||
struct amdgpu_pmu_entry *pmu_entry;
|
||||
|
||||
pmu_entry = kzalloc_obj(struct amdgpu_pmu_entry, GFP_KERNEL);
|
||||
pmu_entry = kzalloc_obj(struct amdgpu_pmu_entry);
|
||||
|
||||
if (!pmu_entry)
|
||||
return pmu_entry;
|
||||
|
||||
Reference in New Issue
Block a user