diff options
author | Dave Airlie <airlied@redhat.com> | 2013-04-16 05:24:25 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-04-16 05:33:36 +0200 |
commit | 6d01f1f54c01877baad11389291c1aeab9c11e0f (patch) | |
tree | 39a0c5375c2197f7566382913739be2a867c30c7 /drivers/gpu/drm/qxl/qxl_cmd.c | |
parent | Merge tag 'omapdss-for-3.10' of git://gitorious.org/linux-omap-dss2/linux int... (diff) | |
download | linux-6d01f1f54c01877baad11389291c1aeab9c11e0f.tar.xz linux-6d01f1f54c01877baad11389291c1aeab9c11e0f.zip |
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 804b411a60ca..736365e6ca80 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) |