From: Rajneesh Bhardwaj Date: Thu, 10 Feb 2022 22:20:45 +0000 (-0500) Subject: drm/amdkfd: Fix prototype warning for get_process_num_bos X-Git-Tag: v5.18-rc1~134^2~18^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24992ab0b8b0d2521caa9c3dcbed0e2a56cbe3d0;p=thirdparty%2Fkernel%2Flinux.git drm/amdkfd: Fix prototype warning for get_process_num_bos Fix the warning: no previous prototype for 'get_process_num_bos' [-Wmissing-prototypes] Reported-by: kernel test robot Reviewed-by: Felix Kuehling Signed-off-by: Rajneesh Bhardwaj Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index d5699aa79578a..54d997f304b51 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c @@ -1648,7 +1648,7 @@ exit: return ret; } -uint32_t get_process_num_bos(struct kfd_process *p) +static uint32_t get_process_num_bos(struct kfd_process *p) { uint32_t num_of_bos = 0; int i;