From nobody Fri May 17 16:01:29 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 4VgsCG2MZdz5LNCL; Fri, 17 May 2024 16:01:30 +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 4VgsCF3q51z4LWF; Fri, 17 May 2024 16:01:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715961689; 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=GV/7aMyuYOSAX+OzKXlFwtE4erOdF/8RTybWhYuCD8U=; b=RwjMWgNU8KePm3jx21avPsVIJovpy+z7SopRTZ4FZEHJdfLpEFRNSthFjHyly2sGTGPNGc Da7oAIu1dXcPh2+S8mRm7RobZqfdLE+RaPGoJKZHURaU8VaDMja2TPoHd2ja1Gk+tKb0kn DtDQRB8eTp/B+vdKmQv0Ecq84ieqT1XRRknPK+2Ud2mbrXoAFPP0jUavpW2D7TjmbZ9HrO 1FdQC6T6a1srhbDoNhF1e3kEUM2Mf0hhzVZFJ/NVHKLlxRiF3cKBMka3QRPHxzmvdRMRc1 pB8FPlgFxVGv2DKC73BvvLH7/QG4xTa+NNB+zv7uDTJAJQgyxWlCrs04hFJu9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715961689; a=rsa-sha256; cv=none; b=X88/+js/r4+LfvJt4gKChA5JHLCwys0yqXwB0SdXp684xY5ymWKguJ8mrVchv1KJhwi//3 Lx+hyXl+PK1qkSvtZSIikb5+swK2AfoXefgeZCf3rtLBHAmqNCKwkCaJI3oiYGPPfkaFKR uXYh70ACJhTWCkGnMrJaEtxJiW8ip+wLXxYfINrMiURArBlETlVnYpSZ6m7vLkjr9MRXHO LmaybJes0vWZ4cLWoiLDCl9phMzQ4SAllP2TUJIo2pqm1EglUoxR3WryKZZeZpvyC1EMun APr5zDScfW/uYfvhYnC/cITDuS+GcN0bnUIPo3Jq8htTJIhcNc+MG1DGlBOv4w== 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=1715961689; 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=GV/7aMyuYOSAX+OzKXlFwtE4erOdF/8RTybWhYuCD8U=; b=X5nVh2aNdSj+lMtryvBbvzOV3jtIBjnp7MILaW/aigoROfD/5ldg8IYTpmIXEyfXc6//N6 faNC3C/QLwJzrmKuzRrf3kPyAVj6dySEqzXfCQ0zhjsbw8BY2WUqUeQ1L+4XZiwshe87hR iM+s5ojhXRD6BQfB9odx0dFNIwn7spE01cvKUR5YG88ozx2M8Fh8QI0yoIkAv37nVrQ6lm SAskVcREpTTVuhwcly4I7rrdosMEBIbH37hIV2CEUh5ja1DQgyDgmAeY9Bt41q6wQgs7qx M12AJsggLRnjnvhyiod48p8lQbijydvDuZ9NM1OkkiX8yQ6Wq95Z+Ro/a4Svdg== 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 4VgsCF3Pq5zphh; Fri, 17 May 2024 16:01:29 +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 44HG1TH8047315; Fri, 17 May 2024 16:01:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44HG1TTZ047312; Fri, 17 May 2024 16:01:29 GMT (envelope-from git) Date: Fri, 17 May 2024 16:01:29 GMT Message-Id: <202405171601.44HG1TTZ047312@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: d316de24faa7 - main - zfs: Avoid a gcc -Wint-to-pointer-cast warning 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d316de24faa7453118a90fb0e9839e8026e36a4e Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=d316de24faa7453118a90fb0e9839e8026e36a4e commit d316de24faa7453118a90fb0e9839e8026e36a4e Author: Brooks Davis AuthorDate: 2024-05-17 15:59:06 +0000 Commit: Brooks Davis CommitDate: 2024-05-17 16:01:19 +0000 zfs: Avoid a gcc -Wint-to-pointer-cast warning On 32-bit platforms long long is generally 64-bits. Sufficiently modern versions of gcc (13 in my testing) complains when casting a pointer to an integer of a different width so cast to uintptr_t first to avoid the warning. Fix i386 gcc builds while we wait for this to be merged to OpenZFS. Sponsored by: DARPA, AFRL Pull Request: https://github.com/openzfs/zfs/pull/16203 --- sys/contrib/openzfs/module/zfs/spa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/openzfs/module/zfs/spa.c b/sys/contrib/openzfs/module/zfs/spa.c index ec2b674fb7ee..c3800e018c73 100644 --- a/sys/contrib/openzfs/module/zfs/spa.c +++ b/sys/contrib/openzfs/module/zfs/spa.c @@ -6832,7 +6832,7 @@ spa_tryimport(nvlist_t *tryconfig) */ char *name = kmem_alloc(MAXPATHLEN, KM_SLEEP); (void) snprintf(name, MAXPATHLEN, "%s-%llx-%s", - TRYIMPORT_NAME, (u_longlong_t)curthread, poolname); + TRYIMPORT_NAME, (u_longlong_t)(uintptr_t)curthread, poolname); mutex_enter(&spa_namespace_lock); spa = spa_add(name, tryconfig, NULL);