gpu: host1x: Make host1x_cdma_wait_pushbuffer_space() static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Thu, 17 Oct 2019 11:04:27 +0000 (12:04 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 10:18:34 +0000 (11:18 +0100)
The host1x_cdma_wait_pushbuffer_space() function is not declared or
directly called from outside the file it is in, so make it static.

Fixes the following sparse warning:

    drivers/gpu/host1x/cdma.c:235:5: warning: symbol 'host1x_cdma_wait_pushbuffer_space' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/cdma.c

index 48c84c4..e8d3fda 100644 (file)
@@ -232,9 +232,9 @@ unsigned int host1x_cdma_wait_locked(struct host1x_cdma *cdma,
  *
  * Must be called with the cdma lock held.
  */
-int host1x_cdma_wait_pushbuffer_space(struct host1x *host1x,
-                                     struct host1x_cdma *cdma,
-                                     unsigned int needed)
+static int host1x_cdma_wait_pushbuffer_space(struct host1x *host1x,
+                                            struct host1x_cdma *cdma,
+                                            unsigned int needed)
 {
        while (true) {
                struct push_buffer *pb = &cdma->push_buffer;