From: Matt Roper <matthew.d.roper@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: matthew.d.roper@intel.com
Subject: [PATCH i-g-t 1/2] lib: Add u32 variants of igt_assert_{lt,lte}
Date: Mon, 29 Jul 2024 15:02:50 -0700 [thread overview]
Message-ID: <20240729220251.3353533-1-matthew.d.roper@intel.com> (raw)
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
next reply other threads:[~2024-07-29 22:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 22:02 Matt Roper [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240729220251.3353533-1-matthew.d.roper@intel.com \
--to=matthew.d.roper@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox