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>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user