From nobody Thu Jan 18 22:26:02 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TGHQM1tHjz578WJ; Thu, 18 Jan 2024 22:26:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGHQL5Y2jz416N; Thu, 18 Jan 2024 22:26:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705616762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CBBUwIwr6b/7X1kPr+LXrnwlc+FV2mn+nC1QJ/Z4y5A=; b=wUgK71dmzsj20SosOYkPR3aF4k1SO8Mzea+HpT7k/WlaPc7FfU4TN3TPtJ0O+OJZylq11S jgK+xM6s44xPEkM/tpIvckhNFW2iyKOBakm9iiHa75ZF5+TB1n31bXdoU01N9DblkabPRF jRoMz0nDWCUtQhjd+tI3oAIBIvXY3JHipBvVM1fcUUki1JeIYj6FsSuaUdMvtNjdpkz6B1 4Gi08EUmdHOIEMmyMCqdSUQAzFgdkWw8KrC9d0nmk1JkskI4uVAfauaZOlUtCCdZU97RKT 6lMNT2N7Jc+/dpG6EPJhxmCe12PockximPuCnMWj4wHQbx9no8uZuoaPqsweYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705616762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CBBUwIwr6b/7X1kPr+LXrnwlc+FV2mn+nC1QJ/Z4y5A=; b=bW17PP8FQpPW+2rX1vUpMgaXT7wFVftonErrNYcdG21JKpx7V/o4g5DIlc+Kl9l3ra0xp1 mOqLtvyXNZXqZtdhZrcohZBg8xScO3A8byuINYN2/G7qFBb8lBZWyPPk4ZnatcsAVHXVTd TQp2tH5IuTGyhf6OvOPViGW2gRtPaTaD7mzQsNBgUOtdamSPMIZ30Kjj45rBNPCWeZVYva pyIF/fkmELWkAPWTX79aDqTeb9YfC0HtM+JXSog4yPdAj16WuM/wxeJy8KLbu5lVlx1Q44 l3WG5vsUFyRlKg+/ynZ0NAjkJ+Vg0bayJTQUts/j5X4h0rBWw+X3SQix9zXBSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705616762; a=rsa-sha256; cv=none; b=BQoebHweIbcr76WlqLLYriMT6l31bZz/yYHdULFpUsYA+NMILxemkDg3Wh55L2jZHw7qXk C0Mg1YoiOn+kALDOiC6MwL3Uh0bLC7KYBbpv8k+sfBHqyjunKWXCi9SzPQtoASczSqU9Z+ u1W8pXPD7RrqCNttFgD/cgNMH5t9Z9sRgxTMfwL596kKJnpM7BZ4MgR/CTKhzC7pLjc3j4 TU/1m2Xm/JZwFRlsPUJoZTzyinhSDPb9VzpR2Md4Zt9a3VKUiItEjVON0DnRHQop5XuyMo BOGw1YLvgPe8E29c6UE9RuP73B/21QxVd8qXXfJVDxY25flGaXLh0Yqpl8GhRA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TGHQL4dxczQHt; Thu, 18 Jan 2024 22:26:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40IMQ2fs089586; Thu, 18 Jan 2024 22:26:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40IMQ2NV089583; Thu, 18 Jan 2024 22:26:02 GMT (envelope-from git) Date: Thu, 18 Jan 2024 22:26:02 GMT Message-Id: <202401182226.40IMQ2NV089583@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: cfab4620f8a1 - stable/14 - kldxref: fix bootstrapping on Linux with Clang 16 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cfab4620f8a1b59ae81c067638f7964f4b8e6b9a Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cfab4620f8a1b59ae81c067638f7964f4b8e6b9a commit cfab4620f8a1b59ae81c067638f7964f4b8e6b9a Author: Alex Richardson AuthorDate: 2024-01-02 19:06:51 +0000 Commit: John Baldwin CommitDate: 2024-01-18 21:31:51 +0000 kldxref: fix bootstrapping on Linux with Clang 16 The glibc fts_open() callback type does not have the second const qualifier and it appears that Clang 16 errors by default for mismatched function pointer types. Add an ifdef to handle this case. (cherry picked from commit 30887c7d48ead8a9151627228244dd3ed95c4c6d) --- usr.sbin/kldxref/kldxref.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index 68f010a6db98..1694f069564b 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -748,7 +748,11 @@ usage(void) } static int +#ifdef __GLIBC__ +compare(const FTSENT **a, const FTSENT **b) +#else compare(const FTSENT *const *a, const FTSENT *const *b) +#endif { if ((*a)->fts_info == FTS_D && (*b)->fts_info != FTS_D)