mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/qxl: declare a bunch of functions as static
Flagged by sparse. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170620113916.6967-3-kraxel@redhat.com
This commit is contained in:
parent
6545135a5e
commit
45dfe57771
2 changed files with 11 additions and 11 deletions
|
@ -437,7 +437,7 @@ static void qxl_monitors_config_set(struct qxl_device *qdev,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void qxl_mode_set_nofb(struct drm_crtc *crtc)
|
static void qxl_mode_set_nofb(struct drm_crtc *crtc)
|
||||||
{
|
{
|
||||||
struct qxl_device *qdev = crtc->dev->dev_private;
|
struct qxl_device *qdev = crtc->dev->dev_private;
|
||||||
struct qxl_crtc *qcrtc = to_qxl_crtc(crtc);
|
struct qxl_crtc *qcrtc = to_qxl_crtc(crtc);
|
||||||
|
@ -475,8 +475,8 @@ static const struct drm_crtc_helper_funcs qxl_crtc_helper_funcs = {
|
||||||
.atomic_flush = qxl_crtc_atomic_flush,
|
.atomic_flush = qxl_crtc_atomic_flush,
|
||||||
};
|
};
|
||||||
|
|
||||||
int qxl_primary_atomic_check(struct drm_plane *plane,
|
static int qxl_primary_atomic_check(struct drm_plane *plane,
|
||||||
struct drm_plane_state *state)
|
struct drm_plane_state *state)
|
||||||
{
|
{
|
||||||
struct qxl_device *qdev = plane->dev->dev_private;
|
struct qxl_device *qdev = plane->dev->dev_private;
|
||||||
struct qxl_framebuffer *qfb;
|
struct qxl_framebuffer *qfb;
|
||||||
|
@ -547,8 +547,8 @@ static void qxl_primary_atomic_disable(struct drm_plane *plane,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int qxl_plane_atomic_check(struct drm_plane *plane,
|
static int qxl_plane_atomic_check(struct drm_plane *plane,
|
||||||
struct drm_plane_state *state)
|
struct drm_plane_state *state)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -647,8 +647,8 @@ out_free_release:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void qxl_cursor_atomic_disable(struct drm_plane *plane,
|
static void qxl_cursor_atomic_disable(struct drm_plane *plane,
|
||||||
struct drm_plane_state *old_state)
|
struct drm_plane_state *old_state)
|
||||||
{
|
{
|
||||||
struct qxl_device *qdev = plane->dev->dev_private;
|
struct qxl_device *qdev = plane->dev->dev_private;
|
||||||
struct qxl_release *release;
|
struct qxl_release *release;
|
||||||
|
@ -675,8 +675,8 @@ void qxl_cursor_atomic_disable(struct drm_plane *plane,
|
||||||
qxl_release_fence_buffer_objects(release);
|
qxl_release_fence_buffer_objects(release);
|
||||||
}
|
}
|
||||||
|
|
||||||
int qxl_plane_prepare_fb(struct drm_plane *plane,
|
static int qxl_plane_prepare_fb(struct drm_plane *plane,
|
||||||
struct drm_plane_state *new_state)
|
struct drm_plane_state *new_state)
|
||||||
{
|
{
|
||||||
struct drm_gem_object *obj;
|
struct drm_gem_object *obj;
|
||||||
struct qxl_bo *user_bo;
|
struct qxl_bo *user_bo;
|
||||||
|
|
|
@ -221,7 +221,7 @@ struct qxl_bo *qxl_bo_ref(struct qxl_bo *bo)
|
||||||
return bo;
|
return bo;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __qxl_bo_pin(struct qxl_bo *bo, u32 domain, u64 *gpu_addr)
|
static int __qxl_bo_pin(struct qxl_bo *bo, u32 domain, u64 *gpu_addr)
|
||||||
{
|
{
|
||||||
struct drm_device *ddev = bo->gem_base.dev;
|
struct drm_device *ddev = bo->gem_base.dev;
|
||||||
int r;
|
int r;
|
||||||
|
@ -244,7 +244,7 @@ int __qxl_bo_pin(struct qxl_bo *bo, u32 domain, u64 *gpu_addr)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __qxl_bo_unpin(struct qxl_bo *bo)
|
static int __qxl_bo_unpin(struct qxl_bo *bo)
|
||||||
{
|
{
|
||||||
struct drm_device *ddev = bo->gem_base.dev;
|
struct drm_device *ddev = bo->gem_base.dev;
|
||||||
int r, i;
|
int r, i;
|
||||||
|
|
Loading…
Add table
Reference in a new issue