drm/amdgpu: Fix compilation warning

Submitted by Xie, AlexBin on April 5, 2017, 9:30 p.m.

Details

Message ID 1491427841-20548-1-git-send-email-AlexBin.Xie@amd.com
State New
Headers show
Series "drm/amdgpu: Fix compilation warning" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Xie, AlexBin April 5, 2017, 9:30 p.m.
Change-Id: Ia251723599024fe258b018a53078d340af01207e
Signed-off-by: Alex Xie <AlexBin.Xie@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(-)

Patch hide | download patch | download mbox

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.*/

Comments

> -----Original Message-----

> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf

> Of Alex Xie

> Sent: Wednesday, April 05, 2017 5:31 PM

> To: amd-gfx@lists.freedesktop.org

> Cc: Xie, AlexBin

> Subject: [PATCH] drm/amdgpu: Fix compilation warning

> 

> Change-Id: Ia251723599024fe258b018a53078d340af01207e

> Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>


Reviewed-by: Alex Deucher <alexander.deucher@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@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/amd-gfx