summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorBen Gamari2009-09-14 23:48:43 +0200
committerJesse Barnes2009-09-17 23:35:11 +0200
commit22be172423b0007a02a06d70db8aeb4d9e64c6b3 (patch)
treec94f5cf0576193becc693e3719ac42973ab81ec5 /drivers/gpu/drm/i915/i915_gem.c
parentdrm/i915: Refactor save/restore code (diff)
downloadkernel-qcow2-linux-22be172423b0007a02a06d70db8aeb4d9e64c6b3.tar.gz
kernel-qcow2-linux-22be172423b0007a02a06d70db8aeb4d9e64c6b3.tar.xz
kernel-qcow2-linux-22be172423b0007a02a06d70db8aeb4d9e64c6b3.zip
drm/i915: make i915_seqno_passed non-static
We'll need it in i915_irq.c for checking whether there are outstanding requests. Also, the function really ought to return a bool, not an int. Signed-off-by: Ben Gamari <bgamari.foss@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 910051321104..c70e91b51f67 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1671,7 +1671,7 @@ out:
/**
* Returns true if seq1 is later than seq2.
*/
-static int
+bool
i915_seqno_passed(uint32_t seq1, uint32_t seq2)
{
return (int32_t)(seq1 - seq2) >= 0;