From nobody Sat Mar 16 01:50:47 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 4TxPGH5vw3z5DRHx; Sat, 16 Mar 2024 01:50:47 +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 4TxPGH4nKtz4mCv; Sat, 16 Mar 2024 01:50:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710553847; 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=1KF5zZuFPnvCDfkiodJ/bzEJ0YyR8Yz1o2iEgyN344s=; b=wCJxu3P1dUU+7rR3lZZ55gDDxJZyMEbDv5tfyOIXYTw2ZhiCosoWfaA+LY2oJjWA3yX5SB 1EtJY3vzd9ovBbrSZPsR5dGDdjkPjZkUQEnhrZIq0YSrpFAw1hAfEQzvg4X2zlXBY0VuGe ebrcUg1JeUJSs/9MVN/jrqqCltqspasgswQXb0V6FavgRfoRXfOHuYGGd0TsaNE5X4APR5 e2TwYaLuH0uUl5kacO/oRoI71I2OMKA8z5V3RXaCzqBk8vSodi5JY/VGJ6VIijIeoAHSSO +N+NS7q9ZcffgthqWfIMsodH3IV3ADfY2TqgwdSycxwIk8No/tHs5jMb7u2gsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710553847; a=rsa-sha256; cv=none; b=TnCfOREJPR9YThDH9J79Yq4BoF0Lpc0p2rcOqefgjKPnk+gvH9wvOUQe/WLEzYLyCjXPcL v2QbRC/sq9UASEX6f3iksSkErlh5EYzemXmU88o2k7zL7tHGLRTc71nLNK4LoXl10xlnFu UOylJv8k5sLKbxev+tKynyTDkoBRj4Fib9Mtcw/cQGYKNb2IjdbSiIw3O80Fc+QzTlCQRI fngFEpz4IM8H8IwmdkEzPR+WiQCMXUh+id9SYVbuitUuKI9SLGAdk2DvqtvIRBWGYB20pm JSiPvyh+vglED+Wpko//HnQ6FA7+HjMtyB7WO1zeqotBM/TovWkcowy2BIfktw== 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=1710553847; 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=1KF5zZuFPnvCDfkiodJ/bzEJ0YyR8Yz1o2iEgyN344s=; b=kMofeWFoTN4ElpDM/yymTCwT/vkLZLpUfkyGM8MtLmzPU8fAfVgYnJvu8kBsdwWz1wNnFC PibxWFC4Iw0QuB4rIHYQZ4kGSWqIXfvw0QuxdseM7c8RHSTHd2O40UoDL6jRJRQ/Ez3ggJ o0TTewv39pv1PPIgc1L/+z+WniHSnOkTjWZmd5lJMfbttqsAK2XeNxwOAlIBzqMYFCPSnY b7bNI3W9ESz4qT/mg7qNVBKUEbUIkhQy4pWUxK5oe8xceBrhKWRzmqfvkY9GMJUpPyZsvY dLW1cUH2JFm8i1dqFplBz5QWpPhQQsYhJdQRaqEeSRFYVLxg3VCBo1s7Wt1VPA== 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 4TxPGH4PpWzbYf; Sat, 16 Mar 2024 01:50:47 +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 42G1old6003619; Sat, 16 Mar 2024 01:50:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42G1ol8k003616; Sat, 16 Mar 2024 01:50:47 GMT (envelope-from git) Date: Sat, 16 Mar 2024 01:50:47 GMT Message-Id: <202403160150.42G1ol8k003616@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 75464941dc17 - main - kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 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: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 75464941dc17876af2e99ea90c687bd7df873d73 Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=75464941dc17876af2e99ea90c687bd7df873d73 commit 75464941dc17876af2e99ea90c687bd7df873d73 Author: Jessica Clarke AuthorDate: 2024-03-16 01:50:21 +0000 Commit: Jessica Clarke CommitDate: 2024-03-16 01:50:21 +0000 kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15 macOS, like Linux, does not include an outer const qualifier for its fts_open callback arguments, so -Wincompatible-function-pointer-types also picks this up and breaks the build now Clang 16 makes it an error by default. Extend the existing Linux support to fix this. MFC after: 1 week --- usr.sbin/kldxref/kldxref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index 969d07e5677a..8f3d24718211 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -745,7 +745,7 @@ usage(void) } static int -#ifdef __GLIBC__ +#if defined(__GLIBC__) || defined(__APPLE__) compare(const FTSENT **a, const FTSENT **b) #else compare(const FTSENT *const *a, const FTSENT *const *b)