Commit 07d82211 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jason Gunthorpe

amdgpu: don't initialize range->list in amdgpu_hmm_init_range

The list is used to add the range to another list as an entry in the core
hmm code, and intended as a private member not exposed to drivers.  There
is no need to initialize it in a driver.

Link: https://lore.kernel.org/r/20190806160554.14046-3-hch@lst.deSigned-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 9d0a1665
...@@ -484,6 +484,5 @@ void amdgpu_hmm_init_range(struct hmm_range *range) ...@@ -484,6 +484,5 @@ void amdgpu_hmm_init_range(struct hmm_range *range)
range->flags = hmm_range_flags; range->flags = hmm_range_flags;
range->values = hmm_range_values; range->values = hmm_range_values;
range->pfn_shift = PAGE_SHIFT; range->pfn_shift = PAGE_SHIFT;
INIT_LIST_HEAD(&range->list);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment