drm/tegra: Make gather_bo_ops static
authorruanjinjie <ruanjinjie@huawei.com>
Mon, 26 Sep 2022 02:29:59 +0000 (10:29 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Nov 2022 15:14:59 +0000 (16:14 +0100)
The symbol is not used outside of the file, so mark it static.

Fixes the following warning:

./drivers/gpu/drm/tegra/submit.c:136:28: warning: symbol 'gather_bo_ops'
was not declared. Should it be static?

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/submit.c

index 84041fc..066f885 100644 (file)
@@ -133,7 +133,7 @@ static void gather_bo_munmap(struct host1x_bo *host_bo, void *addr)
 {
 }
 
-const struct host1x_bo_ops gather_bo_ops = {
+static const struct host1x_bo_ops gather_bo_ops = {
        .get = gather_bo_get,
        .put = gather_bo_put,
        .pin = gather_bo_pin,