Date: Sat, 1 Nov 2025 17:24:42 GMT From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0726d6e87ad5 - main - vchiq: fix compilation error on armv7 in CI and local armv7 builds Message-ID: <202511011724.5A1HOghO089064@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=0726d6e87ad508f9e6a78685d3d9067edf255588 commit 0726d6e87ad508f9e6a78685d3d9067edf255588 Author: Adrian Chadd <adrian@FreeBSD.org> AuthorDate: 2025-11-01 17:23:12 +0000 Commit: Adrian Chadd <adrian@FreeBSD.org> CommitDate: 2025-11-01 17:23:12 +0000 vchiq: fix compilation error on armv7 in CI and local armv7 builds This happens in CI and on local armv7 builds, but not when I cross compile to armv7 locally. > /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:549:71: error: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Werror,-Wformat] > 549 | "free_pagelist - %zx, %d (%u bytes @%p)", (size_t)pagelist, actual, pagelist->length, bi->buf); So just be very specific about the printf types and explicitly cast things. --- sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c index f4aee12dec53..185e81e71bdc 100644 --- a/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c +++ b/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c @@ -546,7 +546,9 @@ free_pagelist(BULKINFO_T *bi, int actual) pagelist = bi->pagelist; vchiq_log_trace(vchiq_arm_log_level, - "free_pagelist - %zx, %d (%u bytes @%p)", (size_t)pagelist, actual, pagelist->length, bi->buf); + "free_pagelist - %zx, %d (%lu bytes @%p)", + (size_t)pagelist, (int)actual, (unsigned long)pagelist->length, + bi->buf); num_pages = (pagelist->length + pagelist->offset + PAGE_SIZE - 1) /home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511011724.5A1HOghO089064>
