提交 e4a76442 编写于 作者: C Christophe Fergeau 提交者: Gerd Hoffmann

qxl: Mark some internal functions as static

They are not used outside of their respective source file
Signed-off-by: NChristophe Fergeau <cfergeau@redhat.com>
Acked-by: NFrediano Ziglio <fziglio@redhat.com>
Message-id: 20161108091209.25568-2-cfergeau@redhat.com
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 1775db07
...@@ -578,7 +578,7 @@ int qxl_hw_surface_dealloc(struct qxl_device *qdev, ...@@ -578,7 +578,7 @@ int qxl_hw_surface_dealloc(struct qxl_device *qdev,
return 0; return 0;
} }
int qxl_update_surface(struct qxl_device *qdev, struct qxl_bo *surf) static int qxl_update_surface(struct qxl_device *qdev, struct qxl_bo *surf)
{ {
struct qxl_rect rect; struct qxl_rect rect;
int ret; int ret;
......
...@@ -36,7 +36,7 @@ static bool qxl_head_enabled(struct qxl_head *head) ...@@ -36,7 +36,7 @@ static bool qxl_head_enabled(struct qxl_head *head)
return head->width && head->height; return head->width && head->height;
} }
void qxl_alloc_client_monitors_config(struct qxl_device *qdev, unsigned count) static void qxl_alloc_client_monitors_config(struct qxl_device *qdev, unsigned count)
{ {
if (qdev->client_monitors_config && if (qdev->client_monitors_config &&
count > qdev->client_monitors_config->count) { count > qdev->client_monitors_config->count) {
...@@ -607,7 +607,7 @@ static bool qxl_crtc_mode_fixup(struct drm_crtc *crtc, ...@@ -607,7 +607,7 @@ static bool qxl_crtc_mode_fixup(struct drm_crtc *crtc,
return true; return true;
} }
void static void
qxl_send_monitors_config(struct qxl_device *qdev) qxl_send_monitors_config(struct qxl_device *qdev)
{ {
int i; int i;
......
...@@ -395,13 +395,11 @@ qxl_framebuffer_init(struct drm_device *dev, ...@@ -395,13 +395,11 @@ qxl_framebuffer_init(struct drm_device *dev,
struct drm_gem_object *obj, struct drm_gem_object *obj,
const struct drm_framebuffer_funcs *funcs); const struct drm_framebuffer_funcs *funcs);
void qxl_display_read_client_monitors_config(struct qxl_device *qdev); void qxl_display_read_client_monitors_config(struct qxl_device *qdev);
void qxl_send_monitors_config(struct qxl_device *qdev);
int qxl_create_monitors_object(struct qxl_device *qdev); int qxl_create_monitors_object(struct qxl_device *qdev);
int qxl_destroy_monitors_object(struct qxl_device *qdev); int qxl_destroy_monitors_object(struct qxl_device *qdev);
/* used by qxl_debugfs only */ /* used by qxl_debugfs only */
void qxl_crtc_set_from_monitors_config(struct qxl_device *qdev); void qxl_crtc_set_from_monitors_config(struct qxl_device *qdev);
void qxl_alloc_client_monitors_config(struct qxl_device *qdev, unsigned count);
/* qxl_gem.c */ /* qxl_gem.c */
int qxl_gem_init(struct qxl_device *qdev); int qxl_gem_init(struct qxl_device *qdev);
...@@ -574,6 +572,5 @@ int qxl_bo_check_id(struct qxl_device *qdev, struct qxl_bo *bo); ...@@ -574,6 +572,5 @@ int qxl_bo_check_id(struct qxl_device *qdev, struct qxl_bo *bo);
struct qxl_drv_surface * struct qxl_drv_surface *
qxl_surface_lookup(struct drm_device *dev, int surface_id); qxl_surface_lookup(struct drm_device *dev, int surface_id);
void qxl_surface_evict(struct qxl_device *qdev, struct qxl_bo *surf, bool freeing); void qxl_surface_evict(struct qxl_device *qdev, struct qxl_bo *surf, bool freeing);
int qxl_update_surface(struct qxl_device *qdev, struct qxl_bo *surf);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册