mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
gpu: host1x: Make host1x_cdma_wait_pushbuffer_space() static
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>
This commit is contained in:
parent
caccddcfc4
commit
33904487f1
1 changed files with 3 additions and 3 deletions
|
@ -232,9 +232,9 @@ unsigned int host1x_cdma_wait_locked(struct host1x_cdma *cdma,
|
||||||
*
|
*
|
||||||
* Must be called with the cdma lock held.
|
* Must be called with the cdma lock held.
|
||||||
*/
|
*/
|
||||||
int host1x_cdma_wait_pushbuffer_space(struct host1x *host1x,
|
static int host1x_cdma_wait_pushbuffer_space(struct host1x *host1x,
|
||||||
struct host1x_cdma *cdma,
|
struct host1x_cdma *cdma,
|
||||||
unsigned int needed)
|
unsigned int needed)
|
||||||
{
|
{
|
||||||
while (true) {
|
while (true) {
|
||||||
struct push_buffer *pb = &cdma->push_buffer;
|
struct push_buffer *pb = &cdma->push_buffer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue