On Tue, Jan 12, 2021 at 12:46 PM Nirmoy Das <nirmoy.das@xxxxxxx> wrote: > > Remove unused space_needed variable. > > Fixes: 453f617a30a ("drm/amdgpu: Resize BAR0 to the maximum available size, even if it doesn't cover VRAM") > Signed-off-by: Nirmoy Das <nirmoy.das@xxxxxxx> Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > index 348ac678a230..5888367b1000 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > @@ -1106,7 +1106,6 @@ void amdgpu_device_wb_free(struct amdgpu_device *adev, u32 wb) > */ > int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev) > { > - u64 space_needed = roundup_pow_of_two(adev->gmc.real_vram_size); > int rbar_size = pci_rebar_bytes_to_size(adev->gmc.real_vram_size); > struct pci_bus *root; > struct resource *res; > -- > 2.29.2 > > _______________________________________________ > dri-devel mailing list > dri-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel