Skip to contentSkip to conversation

drm/armada: make armada_overlay_duplicate_state static

PATCH New Ben Dooks (Codethink) 1 participant 1 message Oct 17, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/armada: make armada_overlay_duplicate_state static

The armada_overlay_duplicate_state is not declared outside the unit, so make it static to avoid the following sparse warning:

drivers/gpu/drm/armada/armada_overlay.c:328:24: warning: symbol 'armada_overlay_duplicate_state' was not declared. Should it be static?

---
Cc: Russell King <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]

---
 drivers/gpu/drm/armada/armada_overlay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/armada/armada_overlay.c +1 -1
index 07f0da4d9ba1..b3e942121fd7 100644
@@ -325,7 +325,7 @@ static void armada_overlay_reset(struct drm_plane *plane)
 	}
 }
 
-struct drm_plane_state *
+static struct drm_plane_state *
 armada_overlay_duplicate_state(struct drm_plane *plane)
 {
 	struct armada_overlay_state *state;
Signature · 6 lines
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel