* [PATCH] drm/ast: Make the symbol 'ast_mode_config_mode_valid' static
@ 2019-12-16 10:13 zhong jiang
0 siblings, 0 replies; only message in thread
From: zhong jiang @ 2019-12-16 10:13 UTC (permalink / raw)
To: airlied, airlied, daniel; +Cc: kraxel, linux-kernel, zhongjiang
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?
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
drivers/gpu/drm/ast/ast_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index b79f484..f0d2082 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -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 */
--
1.7.12.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-16 10:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 10:13 [PATCH] drm/ast: Make the symbol 'ast_mode_config_mode_valid' static zhong jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®