drm/nouveau/fifo: make tu102_fifo_runlist static
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 26 Feb 2021 10:07:15 +0000 (18:07 +0800)
committerKarol Herbst <kherbst@redhat.com>
Fri, 12 Nov 2021 22:46:05 +0000 (23:46 +0100)
Fix the following sparse warning:

drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c:53:1: warning: symbol
'tu102_fifo_runlist' was not declared. Should it be static?

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://gitlab.freedesktop.org/drm/nouveau/-/merge_requests/10
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c

index e417044..260b197 100644 (file)
@@ -49,7 +49,7 @@ tu102_fifo_runlist_commit(struct gk104_fifo *fifo, int runl,
        /*XXX: how to wait? can you even wait? */
 }
 
-const struct gk104_fifo_runlist_func
+static const struct gk104_fifo_runlist_func
 tu102_fifo_runlist = {
        .size = 16,
        .cgrp = gv100_fifo_runlist_cgrp,