[igt-dev] [PATCH v12 1/7] lib/igt_gt: remove unnecessary argument
Andi Shyti
andi.shyti at intel.com
Mon Mar 18 23:28:06 UTC 2019
__for_each_engine_class_instance(fd, e) doesn't need and doesn't
use the fd argument. Remove it.
Signed-off-by: Andi Shyti <andi.shyti at intel.com>
---
lib/igt_gt.h | 2 +-
tests/perf_pmu.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/igt_gt.h b/lib/igt_gt.h
index 54e95da98084..475c0b3c3cc6 100644
--- a/lib/igt_gt.h
+++ b/lib/igt_gt.h
@@ -114,7 +114,7 @@ void gem_require_engine(int gem_fd,
igt_require(gem_has_engine(gem_fd, class, instance));
}
-#define __for_each_engine_class_instance(fd__, e__) \
+#define __for_each_engine_class_instance(e__) \
for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
#define for_each_engine_class_instance(fd__, e__) \
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index aa5b99212ac5..45291298c021 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1693,7 +1693,7 @@ igt_main
igt_subtest("invalid-init")
invalid_init();
- __for_each_engine_class_instance(fd, e) {
+ __for_each_engine_class_instance(e) {
const unsigned int pct[] = { 2, 50, 98 };
/**
@@ -1897,7 +1897,7 @@ igt_main
gem_quiescent_gpu(fd);
}
- __for_each_engine_class_instance(render_fd, e) {
+ __for_each_engine_class_instance(e) {
igt_subtest_group {
igt_fixture {
gem_require_engine(render_fd,
--
2.20.1
More information about the igt-dev
mailing list