From nobody Tue Jan 02 19:11:31 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 4T4MsJ1nLfz5665n; Tue, 2 Jan 2024 19:11:32 +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 4T4MsJ1PHDz4Krw; Tue, 2 Jan 2024 19:11:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704222692; 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=8W5+JH95nMu0zwN4UJ8fcdmH/FSL6luainloXdu45AQ=; b=Qgn2L7r4Bd6Dd19LHp2CChsvWuYnpM4x6ojr4L4odvrqKp0i5pKRNLPLaRKzfU9CGinfVJ npt6P0zwceTu4tyAylaC3dPzAlfnWR6SC77BO9pwCNhWjpwRY5eGV0IOX7ykM1hKFe1sCn qun8RIKNBM//XwfbhJZk1dJw7KgmX86fhQvWmgC2+4iKeWVNEJLNUr4GCJpJrjweS0ywaL T8M7H7xplB71QrU0DRhKKhmYoHwcsVWwmmYzu97wC79F+nUKNdZZPAWP3ZN6AnY/8Gm5IB 00gIX56zVIdp9ckLN8xuo3s5CtAwYvV367UXWGm2sZ4L2PbSquYb6FbXHk0Ljw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704222692; a=rsa-sha256; cv=none; b=wVWCjZROAYZOuuOYMLv8GnkcshCbJmuJJyD//1gMjQf7tBCduHVxXD3nBqt97E3ZHh3qn1 KO2uEx0tSxKTMMayHNQ+FPaOXUd5MBFaT5u3bC6EU7sZlKMpgqm+5FzMw3ZLS7LczxBGg9 FYx4oJmJYRLNQejHKbz7eGcYQragbY3Tj2Cf+dBCElYuExPpHBYkoaLTI30aG1keT6i1x5 gG39Yn1oHQ9XP/gqEwbdGGHP2sR+gc34q0wy4aAV2kKRsZbXia6vB7OAUb6L3IX0tf6qUL 5H8JEjIPc0cyTYdQB2tTct4xcU+hIXLa6tyrHjZ1SyeVGbMTF5ZeQJ+TfWxb2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704222692; 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=8W5+JH95nMu0zwN4UJ8fcdmH/FSL6luainloXdu45AQ=; b=e0hAUao0EPOpwpH6CsNd7xSdAFPZsb5pY6PBdWjoRw6hUqtzPyi7sozFYH8zH19gOTS88t 8xqs5la4YuL1efLE8LXJzIaB44bSf9zouf+kXAzTq7d0Chgwn/ATUXrQLC1BrqpPH0Ubwa d/RvtAyAl2dtHjBGW6279n0wbE+7YvFA7CSKNrPrL77Jkvd3nbVJyJUDduMsJBj2IU5E5o F+fjB02JwDZh5GTACRDw5Qeso2LuIHJlEfLLtHt0VkUct1XOXvXFjw/y0wXrccKkSnd1vs NxjEHiEHEwkduOnGbjFEGDlR8+oqzBi83C01Kbe6e2lvku2VMj/C9Rgzm7/2lw== 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 4T4MsJ0TcXz1BwQ; Tue, 2 Jan 2024 19:11:32 +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 402JBVvo066579; Tue, 2 Jan 2024 19:11:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 402JBVDZ066576; Tue, 2 Jan 2024 19:11:31 GMT (envelope-from git) Date: Tue, 2 Jan 2024 19:11:31 GMT Message-Id: <202401021911.402JBVDZ066576@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alex Richardson Subject: git: 30887c7d48ea - main - 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: arichardson X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 30887c7d48ead8a9151627228244dd3ed95c4c6d Auto-Submitted: auto-generated The branch main has been updated by arichardson: URL: https://cgit.FreeBSD.org/src/commit/?id=30887c7d48ead8a9151627228244dd3ed95c4c6d commit 30887c7d48ead8a9151627228244dd3ed95c4c6d Author: Alex Richardson AuthorDate: 2024-01-02 19:06:51 +0000 Commit: Alex Richardson CommitDate: 2024-01-02 19:06: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. --- 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)