diff options
author | Dave Airlie <airlied@redhat.com> | 2013-04-16 13:24:25 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-04-16 13:33:36 +1000 |
commit | 6d01f1f54c01877baad11389291c1aeab9c11e0f (patch) | |
tree | 39a0c5375c2197f7566382913739be2a867c30c7 /drivers/gpu/drm/qxl/qxl_cmd.c | |
parent | dea14dfab9d1fdf5695ae61dc72c587533706edc (diff) | |
download | op-kernel-dev-6d01f1f54c01877baad11389291c1aeab9c11e0f.zip op-kernel-dev-6d01f1f54c01877baad11389291c1aeab9c11e0f.tar.gz |
drm/qxl: make lots of things static.
/usr/lib/gcc/x86_64-linux-gnu/4.7/include/stddef.h:414:9: sparse: preprocessor token offsetof redefined
include/linux/stddef.h:17:9: this was the original definition
>> drivers/gpu/drm/qxl/qxl_drv.c:49:5: sparse: symbol 'qxl_modeset' was not declared. Should it be static?
Reported-by: kbuild test robot.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_cmd.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_cmd.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_cmd.c b/drivers/gpu/drm/qxl/qxl_cmd.c index 804b411..736365e 100644 --- a/drivers/gpu/drm/qxl/qxl_cmd.c +++ b/drivers/gpu/drm/qxl/qxl_cmd.c @@ -144,8 +144,8 @@ int qxl_ring_push(struct qxl_ring *ring, return 0; } -bool qxl_ring_pop(struct qxl_ring *ring, - void *element) +static bool qxl_ring_pop(struct qxl_ring *ring, + void *element) { volatile struct qxl_ring_header *header = &(ring->ring->header); volatile uint8_t *ring_elt; @@ -169,23 +169,6 @@ bool qxl_ring_pop(struct qxl_ring *ring, return true; } -void qxl_ring_wait_idle(struct qxl_ring *ring) -{ - struct qxl_ring_header *header = &(ring->ring->header); - unsigned long flags; - - spin_lock_irqsave(&ring->lock, flags); - if (ring->ring->header.cons < ring->ring->header.prod) { - header->notify_on_cons = header->prod; - mb(); - spin_unlock_irqrestore(&ring->lock, flags); - wait_event_interruptible(*ring->push_event, - qxl_check_idle(ring)); - spin_lock_irqsave(&ring->lock, flags); - } - spin_unlock_irqrestore(&ring->lock, flags); -} - int qxl_push_command_ring_release(struct qxl_device *qdev, struct qxl_release *release, uint32_t type, bool interruptible) @@ -609,7 +592,7 @@ retry: return ret; } -void qxl_surface_evict_locked(struct qxl_device *qdev, struct qxl_bo *surf, bool do_update_area) +static void qxl_surface_evict_locked(struct qxl_device *qdev, struct qxl_bo *surf, bool do_update_area) { /* no need to update area if we are just freeing the surface normally */ if (do_update_area) |