[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_balancer: Remove unused function

Antonio Argenziano antonio.argenziano at intel.com
Thu Aug 29 22:57:24 UTC 2019


sizeof_engines_bond() was added but then never used. Removed it.

Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>

Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
 tests/i915/gem_exec_balancer.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c
index b2074486..cda156ea 100644
--- a/tests/i915/gem_exec_balancer.c
+++ b/tests/i915/gem_exec_balancer.c
@@ -44,12 +44,6 @@ static size_t sizeof_param_engines(int count)
 			engines[count]);
 }
 
-static size_t sizeof_engines_bond(int count)
-{
-	return offsetof(struct i915_context_engines_bond,
-			engines[count]);
-}
-
 #define alloca0(sz) ({ size_t sz__ = (sz); memset(alloca(sz__), 0, sz__); })
 
 static bool has_class_instance(int i915, uint16_t class, uint16_t instance)
-- 
2.21.0



More information about the igt-dev mailing list