Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] lib: Add u32 variants of igt_assert_{lt,lte}
@ 2024-07-29 22:02 Matt Roper
  2024-07-29 22:02 ` [PATCH i-g-t 2/2] tests/intel: Apply igt.cocci transforms Matt Roper
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Matt Roper @ 2024-07-29 22:02 UTC (permalink / raw)
  To: igt-dev; +Cc: matthew.d.roper

igt.cocci assumes that u32 variants of the comparison assertions exist,
so add the two that were missing.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
---
 lib/igt_core.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lib/igt_core.h b/lib/igt_core.h
index 084d94da7..82f474c5f 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -915,6 +915,15 @@ void igt_describe_f(const char *fmt, ...);
  */
 #define igt_assert_lte(n1, n2) igt_assert_cmpint(n1, <=, >, n2)
 
+/**
+ * igt_assert_lte_u32:
+ * @n1: first integer
+ * @n2: second integer
+ *
+ * Like igt_assert_lte(), but for uint32_t.
+ */
+#define igt_assert_lte_u32(n1, n2) igt_assert_cmpuint(n1, <=, >, n2)
+
 /**
  * igt_assert_lte_u64:
  * @n1: first integer
@@ -954,6 +963,15 @@ void igt_describe_f(const char *fmt, ...);
  */
 #define igt_assert_lt(n1, n2) igt_assert_cmpint(n1, <, >=, n2)
 
+/**
+ * igt_assert_lt_u32:
+ * @n1: first integer
+ * @n2: second integer
+ *
+ * Like igt_assert_lt(), but for uint32_t.
+ */
+#define igt_assert_lt_u32(n1, n2) igt_assert_cmpuint(n1, <, >=, n2)
+
 /**
  * igt_assert_lt_u64:
  * @n1: first integer
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-08-01 21:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29 22:02 [PATCH i-g-t 1/2] lib: Add u32 variants of igt_assert_{lt,lte} Matt Roper
2024-07-29 22:02 ` [PATCH i-g-t 2/2] tests/intel: Apply igt.cocci transforms Matt Roper
2024-07-31 12:25   ` [i-g-t,2/2] " Vivekanandan, Balasubramani
2024-07-31 16:26     ` Matt Roper
2024-08-01 10:19       ` Vivekanandan, Balasubramani
2024-08-01 21:46   ` [PATCH i-g-t 2/2] " Dixit, Ashutosh
2024-07-29 22:43 ` ✓ CI.xeBAT: success for series starting with [i-g-t,1/2] lib: Add u32 variants of igt_assert_{lt,lte} Patchwork
2024-07-29 23:13 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-07-29 23:24   ` Matt Roper
2024-07-30  2:16 ` ✗ CI.xeFULL: " Patchwork
2024-07-30 15:44   ` Matt Roper
2024-07-31 15:57 ` [PATCH i-g-t 1/2] " Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox