[PATCH] drm/amdgpu: Fix compilation warning
Deucher, Alexander
Alexander.Deucher at amd.com
Wed Apr 5 21:50:05 UTC 2017
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Alex Xie
> Sent: Wednesday, April 05, 2017 5:31 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Xie, AlexBin
> Subject: [PATCH] drm/amdgpu: Fix compilation warning
>
> Change-Id: Ia251723599024fe258b018a53078d340af01207e
> Signed-off-by: Alex Xie <AlexBin.Xie at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +-
> drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 +-
> drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +-
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
> b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
> index 30d5c42..8f18d14 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
> @@ -853,7 +853,7 @@ static int gmc_v6_0_sw_init(void *handle)
> adev->vm_manager.block_size = amdgpu_vm_block_size;
> adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
>
> - DRM_INFO("vm size is %d GB, block size is %d-bit\n",
> + DRM_INFO("vm size is %llu GB, block size is %d-bit\n",
> adev->vm_manager.vm_size, adev-
> >vm_manager.block_size);
>
> adev->mc.mc_mask = 0xffffffffffULL;
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
> b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
> index 7113765..b86b454 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
> @@ -1007,7 +1007,7 @@ static int gmc_v7_0_sw_init(void *handle)
> adev->vm_manager.block_size = amdgpu_vm_block_size;
> adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
>
> - DRM_INFO("vm size is %d GB, block size is %d-bit\n",
> + DRM_INFO("vm size is %llu GB, block size is %d-bit\n",
> adev->vm_manager.vm_size, adev-
> >vm_manager.block_size);
>
> /* Set the internal MC address mask
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> index b3d1f1b..108a20e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
> @@ -1091,7 +1091,7 @@ static int gmc_v8_0_sw_init(void *handle)
> adev->vm_manager.block_size = amdgpu_vm_block_size;
> adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
>
> - DRM_INFO("vm size is %d GB, block size is %d-bit\n",
> + DRM_INFO("vm size is %llu GB, block size is %d-bit\n",
> adev->vm_manager.vm_size, adev-
> >vm_manager.block_size);
>
> /* Set the internal MC address mask
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index e1637d5..6329be8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -566,7 +566,7 @@ static int gmc_v9_0_sw_init(void *handle)
> adev->vm_manager.block_size = 9;
> }
>
> - DRM_INFO("vm size is %d GB, block size is %d-bit\n",
> + DRM_INFO("vm size is %llu GB, block size is %d-bit\n",
> adev->vm_manager.vm_size, adev-
> >vm_manager.block_size);
>
> /* This interrupt is VMC page fault.*/
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list