diff mbox series

drm/amdgpu: Mark mmhub_v1_7_setup_vm_pt_regs() as static

Message ID 1615587537-28989-1-git-send-email-jrdr.linux@gmail.com (mailing list archive)
State New, archived
Headers show
Series drm/amdgpu: Mark mmhub_v1_7_setup_vm_pt_regs() as static | expand

Commit Message

Souptick Joarder March 12, 2021, 10:18 p.m. UTC
Kernel test robot throws below warning ->

drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:6: warning: no previous
prototype for 'mmhub_v1_7_setup_vm_pt_regs' [-Wmissing-prototypes]

Mark mmhub_v1_7_setup_vm_pt_regs() as static.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
---
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Zeng, Oak March 12, 2021, 10:28 p.m. UTC | #1
[AMD Official Use Only - Internal Distribution Only]

Thank you Joarder for the fix. But this has already been fixed in our Alex's drm-next branch.

Regards,
Oak



On 2021-03-12, 5:19 PM, "Souptick Joarder" <jrdr.linux@gmail.com> wrote:

    Kernel test robot throws below warning ->

    drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:6: warning: no previous
    prototype for 'mmhub_v1_7_setup_vm_pt_regs' [-Wmissing-prototypes]

    Mark mmhub_v1_7_setup_vm_pt_regs() as static.

    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
    ---
     drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
    index 4df0b73..ae7d8a1 100644
    --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
    +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
    @@ -53,7 +53,7 @@ static u64 mmhub_v1_7_get_fb_location(struct amdgpu_device *adev)
     return base;
     }

    -void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
    +static void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
     uint64_t page_table_base)
     {
     struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0];
    --
    1.9.1
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
index 4df0b73..ae7d8a1 100644
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
@@ -53,7 +53,7 @@  static u64 mmhub_v1_7_get_fb_location(struct amdgpu_device *adev)
 	return base;
 }
 
-void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
+static void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
 				uint64_t page_table_base)
 {
 	struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0];