Skip to contentSkip to conversation

drivers/gpu/drm/nouveau/dispnv50/headc57d.c: mark headc57d_olut() as static

PATCH New zhaoxiao 1 participant 1 message Jul 20, 2021

Subsystems (3)
lore
Share & tools
lore

zhaoxiao

author
#0 lore raw

PATCH 1/1 drivers/gpu/drm/nouveau/dispnv50/headc57d.c: mark headc57d_olut() as static

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

drivers/gpu/drm/nouveau/dispnv50/headc57d.c:173:1: warning: no previous prototype for ‘headc57d_olut’ [-Wmissing-prototypes] headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)

And no header file define a prototype for this function, so we should mark it as static.

---
 drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/dispnv50/headc57d.c +1 -1
index fd51527b56b8..bdcfd240d61c 100644
@@ -169,7 +169,7 @@ headc57d_olut_load(struct drm_color_lut *in, int size, void __iomem *mem)
 	writew(readw(mem - 4), mem + 4);
 }
 
-bool
+static bool
 headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)
 {
 	if (size != 0 && size != 256 && size != 1024)
Signature · 1 line
2.20.1