[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1522376727-136554-1-git-send-email-weiyongjun1@huawei.com>
Date: Fri, 30 Mar 2018 02:25:27 +0000
From: Wei Yongjun <weiyongjun1@...wei.com>
To: <oded.gabbay@...il.com>, <alexander.deucher@....com>,
<christian.koenig@....com>, <David1.Zhou@....com>,
<airlied@...ux.ie>, "Felix Kuehling" <Felix.Kuehling@....com>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
<dri-devel@...ts.freedesktop.org>, <amd-gfx@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] drm/amdkfd: Make function kfd_dev_is_large_bar() static
Fixes the following sparse warning:
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c:1150:6: warning:
symbol 'kfd_dev_is_large_bar' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
index cd679cf..fb5d997 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
@@ -1147,7 +1147,7 @@ static int kfd_ioctl_acquire_vm(struct file *filep, struct kfd_process *p,
return ret;
}
-bool kfd_dev_is_large_bar(struct kfd_dev *dev)
+static bool kfd_dev_is_large_bar(struct kfd_dev *dev)
{
struct kfd_local_mem_info mem_info;
Powered by blists - more mailing lists