From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Kamil Konieczny" <kamil.konieczny@linux.intel.com>,
"Nishit Sharma" <nishit.sharma@intel.com>,
"Arvind Yadav" <arvind.yadav@intel.com>,
"Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Subject: [PATCH i-g-t v2 0/2] Add assert for pointers compare and fix armhf compilation
Date: Fri, 17 Apr 2026 20:11:55 +0200 [thread overview]
Message-ID: <20260417181157.177299-1-kamil.konieczny@linux.intel.com> (raw)
Recent commits break amrhf compilation as could be seen on GitLab:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/jobs/97703144
with errors:
../tests/intel/xe_madvise.c:201:35: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
201 | igt_assert_eq_u64((uint64_t)ptr, (uint64_t)MAP_FAILED);
| ^
../lib/igt_core.h:796:33: note: in definition of macro ‘igt_assert_cmpu64’
796 | uint64_t __n1 = (n1), __n2 = (n2); \
| ^~
../tests/intel/xe_madvise.c:201:2: note: in expansion of macro ‘igt_assert_eq_u64’
201 | igt_assert_eq_u64((uint64_t)ptr, (uint64_t)MAP_FAILED);
| ^~~~~~~~~~~~~~~~~
This series introduces new macro for pointer comparision
and uses it for fixing compilation for armhf platform.
v2: add cast to 'void *' in macro (Zbigniew)
Cc: Nishit Sharma <nishit.sharma@intel.com>
Cc: Arvind Yadav <arvind.yadav@intel.com>
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Kamil Konieczny (2):
lib/igt_core: Create asserts for pointer comparision
tests/intel/xe_madvise: Fix armhf compilation
lib/igt_core.h | 42 ++++++++++++++++++++++++++++++++++++++++
tests/intel/xe_madvise.c | 4 ++--
2 files changed, 44 insertions(+), 2 deletions(-)
--
2.53.0
next reply other threads:[~2026-04-17 18:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-17 18:11 Kamil Konieczny [this message]
2026-04-17 18:11 ` [PATCH i-g-t v2 1/2] lib/igt_core: Create asserts for pointer comparision Kamil Konieczny
2026-04-20 10:26 ` Karthik B S
2026-04-17 18:11 ` [PATCH i-g-t v2 2/2] tests/intel/xe_madvise: Fix armhf compilation Kamil Konieczny
2026-04-20 10:27 ` Karthik B S
2026-04-21 11:51 ` ✗ Fi.CI.BAT: failure for Add assert for pointers compare and fix armhf compilation (rev2) Patchwork
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=20260417181157.177299-1-kamil.konieczny@linux.intel.com \
--to=kamil.konieczny@linux.intel.com \
--cc=arvind.yadav@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=nishit.sharma@intel.com \
--cc=zbigniew.kempczynski@intel.com \
/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