Commit 8c69d029 authored by Lee Jones's avatar Lee Jones Committed by Daniel Vetter

drm/nouveau/nvkm/subdev/mc/tu102: Make functions called by reference static

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:50:1: warning: no previous prototype for ‘tu102_mc_intr_unarm’ [-Wmissing-prototypes]
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:62:1: warning: no previous prototype for ‘tu102_mc_intr_rearm’ [-Wmissing-prototypes]
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:74:1: warning: no previous prototype for ‘tu102_mc_intr_mask’ [-Wmissing-prototypes]

Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: dri-devel@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602143300.2330146-16-lee.jones@linaro.org
parent 6c3f9533
...@@ -46,7 +46,7 @@ tu102_mc_intr_update(struct tu102_mc *mc) ...@@ -46,7 +46,7 @@ tu102_mc_intr_update(struct tu102_mc *mc)
nvkm_wr32(device, 0xb81610, 0x6); nvkm_wr32(device, 0xb81610, 0x6);
} }
void static void
tu102_mc_intr_unarm(struct nvkm_mc *base) tu102_mc_intr_unarm(struct nvkm_mc *base)
{ {
struct tu102_mc *mc = tu102_mc(base); struct tu102_mc *mc = tu102_mc(base);
...@@ -58,7 +58,7 @@ tu102_mc_intr_unarm(struct nvkm_mc *base) ...@@ -58,7 +58,7 @@ tu102_mc_intr_unarm(struct nvkm_mc *base)
spin_unlock_irqrestore(&mc->lock, flags); spin_unlock_irqrestore(&mc->lock, flags);
} }
void static void
tu102_mc_intr_rearm(struct nvkm_mc *base) tu102_mc_intr_rearm(struct nvkm_mc *base)
{ {
struct tu102_mc *mc = tu102_mc(base); struct tu102_mc *mc = tu102_mc(base);
...@@ -70,7 +70,7 @@ tu102_mc_intr_rearm(struct nvkm_mc *base) ...@@ -70,7 +70,7 @@ tu102_mc_intr_rearm(struct nvkm_mc *base)
spin_unlock_irqrestore(&mc->lock, flags); spin_unlock_irqrestore(&mc->lock, flags);
} }
void static void
tu102_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr) tu102_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr)
{ {
struct tu102_mc *mc = tu102_mc(base); struct tu102_mc *mc = tu102_mc(base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment