[Nouveau] [PATCH xf86-video-nouveau 4/4] xv/nv30, nv40: Mark local NV30GetSurfaceFormat and NV40GetSurfaceFormat as static

Rhys Kidd rhyskidd at gmail.com
Mon Jan 21 03:21:34 UTC 2019


Avoids warnings with gcc 8.2:

nv30_xv_tex.c:138:1: warning: no previous prototype for ‘NV30GetSurfaceFormat’ [-Wmissing-prototypes]
 NV30GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret)
 ^~~~~~~~~~~~~~~~~~~~

nv40_xv_tex.c:138:1: warning: no previous prototype for ‘NV40GetSurfaceFormat’ [-Wmissing-prototypes]
 NV40GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret)
 ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 src/nv30_xv_tex.c | 2 +-
 src/nv40_xv_tex.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nv30_xv_tex.c b/src/nv30_xv_tex.c
index bf75cfa..87b3299 100644
--- a/src/nv30_xv_tex.c
+++ b/src/nv30_xv_tex.c
@@ -134,7 +134,7 @@ NV30VideoTexture(ScrnInfoPtr pScrn, struct nouveau_bo *src, int offset,
 	return TRUE;
 }
 
-Bool
+static Bool
 NV30GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret)
 {
 	switch (ppix->drawable.bitsPerPixel) {
diff --git a/src/nv40_xv_tex.c b/src/nv40_xv_tex.c
index 79ef1fc..01f6f8e 100644
--- a/src/nv40_xv_tex.c
+++ b/src/nv40_xv_tex.c
@@ -134,7 +134,7 @@ NV40VideoTexture(ScrnInfoPtr pScrn, struct nouveau_bo *src, int offset,
 	return TRUE;
 }
 
-Bool
+static Bool
 NV40GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret)
 {
 	switch (ppix->drawable.bitsPerPixel) {
-- 
2.19.1



More information about the Nouveau mailing list