From nobody Tue Sep 06 11:26:48 2022 X-Original-To: dev-commits-ports-main@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 4MMNQ05w7Xz4bZx7; Tue, 6 Sep 2022 11:26:48 +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 4MMNQ04zKzz3pFY; Tue, 6 Sep 2022 11:26:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662463608; 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=cXpkoLvI6zLBzf8CRGxH9JHhDctlxGpgf3UMoAvhxyU=; b=t/VV4YOztLF9dcQYKYTAP0+y1P4hNCT6pLFdwXqClCsshsMSlT9i/+vhJwue5K64m/Yikr 8D8At5gFVawrUChGbAN4WlDxVL90iGdsh8Fq5pWNEcVDGNWMAftaJxHEOeWROjaqGSpieT tD8+A54aa4jQ2K2RujBjLydah5a5LtomeDQpWdnFaQKeJA04WNN3UT3gTUGPPCC7kZYaVO niAK+xSAe1I97peBe50cm04SIMs2uuidep7rJQgicVJ1gtjTAVgbxDPNhQE7vZN3pOrWP2 a2qpv/XYUKLBZzMDp+UzG+fK+r7QX57Zd4TGbVScoCk9gD0Z0vfFe3+cYtBP5A== 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 4MMNQ03rMRz18b4; Tue, 6 Sep 2022 11:26:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 286BQmsj037287; Tue, 6 Sep 2022 11:26:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 286BQmmZ037286; Tue, 6 Sep 2022 11:26:48 GMT (envelope-from git) Date: Tue, 6 Sep 2022 11:26:48 GMT Message-Id: <202209061126.286BQmmZ037286@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: c287365d3861 - main - sysutils/openzfs-kmod: fix build on powerpc64* List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c287365d38616071659aa5800616085fe0327da1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662463608; 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=cXpkoLvI6zLBzf8CRGxH9JHhDctlxGpgf3UMoAvhxyU=; b=jch5ZzMit/YPRZAaeMCzLEEFchGnH3XjWRKv4m6CDrS7Aw1AW2oNCCxUMJlVgPy6rSU5S3 DuAhMVx3XGGjrOn/Vq8Mvvva3WLmd87Ao57s9SuTnEPn2DzwiTHYPtORFRPCMNYsciH4mj oI9vFwkOFX2ro2vOlHuyFUonX7JWA914purs/Hab0k6faTYAPyKIuC8ccT6ULyiJGhMBvi lQsqT+ajIZycF+lG+0H9sOrDLvt63/CcDSxSpVpOFeiD8RFFCrEQ9YkKPWL9UGpsrlyU2Y TjrrtizgptMueUg/xB1mD9vsJcdFglYenGsLkLi/hEuLPwOFQziQYhJS5Rrw3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662463608; a=rsa-sha256; cv=none; b=Pcfp/Zrx6ardjeVWGS6lPkh3F1S5bfY6X5tq8ICsfPiWpQ8/phATxiR1IT90roeqn4tcZz Jm50kh9qNd80WWAaPSlkn9uBqxhrcGIWUJA07pkGsz4gzj+Rcq6XQZ5OjWBXwoPgWGSRWZ ObmX3SiAeb+xAD7Yk1/Oy3loLPAL2wKEzeOPHs5qJF8Rg2CMn7bWLSTOFv+C6/J6a0e4yp jr0vRYM8LCOSX1Mj1lqrVMU6Oh66vcwGzVPs5rp/VRz+AEQBC21RsqO7e7eut0do9WqwKn vILjxSWBVXjjPn6Pl1btiMvC2kZITq3d5xsm/4F6386tR1n9uC4xbr/ANpjMKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c287365d38616071659aa5800616085fe0327da1 commit c287365d38616071659aa5800616085fe0327da1 Author: Piotr Kubaj AuthorDate: 2022-09-06 11:25:50 +0000 Commit: Piotr Kubaj CommitDate: 2022-09-06 11:26:31 +0000 sysutils/openzfs-kmod: fix build on powerpc64* /wrkdirs/usr/ports/sysutils/openzfs-kmod/work/zfs-2d5622f5b/module/icp/algs/blake3/blake3_x86-64.c:78:28: error: implicit declaration of function 'zfs_vsx_available' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (kfpu_allowed() && zfs_vsx_available()); ^ /wrkdirs/usr/ports/sysutils/openzfs-kmod/work/zfs-2d5622f5b/module/icp/algs/blake3/blake3_x86-64.c:144:28: error: implicit declaration of function 'zfs_vsx_available' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (kfpu_allowed() && zfs_vsx_available()); --- .../patch-module_icp_algs_blake3_blake3__x86-64.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sysutils/openzfs-kmod/files/patch-module_icp_algs_blake3_blake3__x86-64.c b/sysutils/openzfs-kmod/files/patch-module_icp_algs_blake3_blake3__x86-64.c new file mode 100644 index 000000000000..1508bfec6339 --- /dev/null +++ b/sysutils/openzfs-kmod/files/patch-module_icp_algs_blake3_blake3__x86-64.c @@ -0,0 +1,20 @@ +--- module/icp/algs/blake3/blake3_x86-64.c.orig 2022-09-06 07:44:01 UTC ++++ module/icp/algs/blake3/blake3_x86-64.c +@@ -74,7 +74,7 @@ static boolean_t blake3_is_sse2_supported(void) + { + #if defined(__x86_64) + return (kfpu_allowed() && zfs_sse2_available()); +-#elif defined(__PPC64__) ++#elif defined(__PPC64__) && defined(__linux__) + return (kfpu_allowed() && zfs_vsx_available()); + #else + return (kfpu_allowed()); +@@ -140,7 +140,7 @@ static boolean_t blake3_is_sse41_supported(void) + { + #if defined(__x86_64) + return (kfpu_allowed() && zfs_sse4_1_available()); +-#elif defined(__PPC64__) ++#elif defined(__PPC64__) && defined(__linux__) + return (kfpu_allowed() && zfs_vsx_available()); + #else + return (kfpu_allowed());