kgem.c: In function 'kgem_check_bo':
kgem.c:4768:7: warning: declaration of 'active' shadows a global declaration [-Wshadow]
kgem.c:692:21: warning: shadowed declaration is here [-Wshadow]
kgem.c: In function 'kgem_check_many_bo_fenced':
kgem.c:4907:7: warning: declaration of 'active' shadows a global declaration [-Wshadow]
kgem.c:692:21: warning: shadowed declaration is here [-Wshadow]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
int num_exec = 0;
int num_pages = 0;
bool flush = false;
- bool active = true;
+ bool busy = true;
va_start(ap, kgem);
while ((bo = va_arg(ap, struct kgem_bo *))) {
num_exec++;
flush |= bo->flush;
- active &= bo->rq != NULL;
+ busy &= bo->rq != NULL;
}
va_end(ap);
return false;
}
- if (active)
+ if (busy)
return true;
return kgem_flush(kgem, flush);
int num_pages = 0;
int fenced_size = 0;
bool flush = false;
- bool active = true;
+ bool busy = true;
va_start(ap, kgem);
while ((bo = va_arg(ap, struct kgem_bo *))) {
}
flush |= bo->flush;
- active &= bo->rq != NULL;
+ busy &= bo->rq != NULL;
}
va_end(ap);
return false;
}
- if (active)
+ if (busy)
return true;
return kgem_flush(kgem, flush);