Skip to contentSkip to conversation

drm/ast: Make the symbol 'ast_mode_config_mode_valid' static

PATCH New zhong jiang 1 participant 1 message Dec 16, 2019

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

PATCH 1/1 drm/ast: Make the symbol 'ast_mode_config_mode_valid' static

Fix the following sparse warning.

drivers/gpu/drm/ast/ast_main.c:391:22: warning: symbol 'ast_mode_config_mode_valid' was not declared. Should it be static?

---
 drivers/gpu/drm/ast/ast_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/ast/ast_main.c +2 -2
index b79f484..f0d2082 100644
@@ -388,8 +388,8 @@ static int ast_get_dram_info(struct drm_device *dev)
 	return 0;
 }
 
-enum drm_mode_status ast_mode_config_mode_valid(struct drm_device *dev,
-						const struct drm_display_mode *mode)
+static enum drm_mode_status ast_mode_config_mode_valid(struct drm_device *dev,
+				       const struct drm_display_mode *mode)
 {
 	static const unsigned long max_bpp = 4; /* DRM_FORMAT_XRGBA8888 */
 
Signature · 1 line
1.7.12.4