From nobody Wed May 08 14:54:34 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 4VZJ8C1cRFz5JJ8Y; Wed, 08 May 2024 14:54:35 +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 4VZJ8C18rLz4fdJ; Wed, 8 May 2024 14:54:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715180075; 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=vwZT1fOOWz1H8F93rOaVzhiRuSxNx3eAM4ACrIq+eqU=; b=OCdTR7vSSydQRZlLuoatdiQ8n6gUqK7m65OSGg8Zux6SVruNH0usxqgQFeuS9faC5lUGiI fcdl55m5GhkMtTd+JBDhZdaUblp9sSot9o7NhbPG8WfQSgjXdUpZ5ffsS/twVVLuahX9iP HTrsAWtgJ/9Hi3DmjOLNH4EPQHApVkUquIiwuEjLoAnhtVmHw2QuLXMB7nOzk0kxMDwCq2 agcgeF+l+Xotoh3JBx8MlZbrcEwzS6QcNMhBCq9hxfbP3aBTw22+qb9/htyKAbD6K5cknU +E29BrEju8wxY1QuHWuuktzIXaL7HCywt0FB24bWCBu1FOLHqnT7Ei1x1YvFZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715180075; a=rsa-sha256; cv=none; b=ntyjLzIQnuKX74A2fo2vTwd3kN9yroxZBGolMgU2PDjWtUqWs5gkR0g5LqzqT9snj+NuVc dkJhFvZIPaHjfWj206cuOOn/qWr13kejWW9OXg9Ssdpr4s7IFahicNr+4C3Pi6W2b+j/aM Gumj+ANZmZs08w+dSdy6oWDsDn7aHE0kkhu6EA9EC4RdMRcYpfMsppqACsDMYJYlZQAYzV aiqUPpsJhNQKUWjCqWJ/BKuAGqg+lIYG7HUMmJU5lphYIML36EVqGvR/0+SkJzZ5ure4ws zzTa+UT/GrzvBB3iG+ILyNfyPbSYYS1ij5O5nwbN+WfgBVvk7yzKI3DHvtctgQ== 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=1715180075; 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=vwZT1fOOWz1H8F93rOaVzhiRuSxNx3eAM4ACrIq+eqU=; b=LsYgMGAJ4uyVDeUFf65dsXUtNO5rxpZx2l/JLBuoUQaDqlgracj3UtEDn6s9oqlDiG+bAk v4UEj/XO5BNhHUIg2IlCHYlM1JgWonD+ZjSNiD4HHz1mc0TSNHnBKsZpnxV3Zu9+lb5X3N w+H37LSvQKvU1o3I0Nwu9Bh8mkD4zaumXZRi8zor7aMY95weA8PQ9kOBgmceMUX835InxQ McOFSu/WLAK2ZYVpYrvpCkzwz1OZRkjkBdBBn5aKOH1DR7QMMNK3evQ1oCOam62pouBBcF MnasTeatfJ6rMoBnP8dPquT7aoT3Ghf/fdY7KZFSIG3PtrBjkxEn7sOAsOylPg== 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 4VZJ8C0b2bzSk7; Wed, 8 May 2024 14:54:35 +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 448EsYSk065590; Wed, 8 May 2024 14:54:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 448EsYNl065587; Wed, 8 May 2024 14:54:34 GMT (envelope-from git) Date: Wed, 8 May 2024 14:54:34 GMT Message-Id: <202405081454.448EsYNl065587@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: eb5fd01b53a6 - main - soxstack: slience 32-bit gcc 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: eb5fd01b53a6579f3bd5769ed41964683335a7fc Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=eb5fd01b53a6579f3bd5769ed41964683335a7fc commit eb5fd01b53a6579f3bd5769ed41964683335a7fc Author: Brooks Davis AuthorDate: 2024-05-08 14:51:17 +0000 Commit: Brooks Davis CommitDate: 2024-05-08 14:51:17 +0000 soxstack: slience 32-bit gcc warning Modern GCC complains when casting pointers to integers of a different size (even a larger one). Switch from uint64_t to uintptr_t which will always be the right size for a stack address instead of maybe being too big. Reviewed by: dchagin, emaste Differential Revision: https://reviews.freebsd.org/D45087 --- tests/sys/vm/soxstack/soxstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/vm/soxstack/soxstack.c b/tests/sys/vm/soxstack/soxstack.c index ac7c9cf03746..ecb672c1b6dc 100644 --- a/tests/sys/vm/soxstack/soxstack.c +++ b/tests/sys/vm/soxstack/soxstack.c @@ -23,7 +23,7 @@ checkstack(void) struct kinfo_vmentry *freep, *kve; struct kinfo_proc *p; struct procstat *prstat; - uint64_t stack; + uintptr_t stack; int i, cnt; prstat = procstat_open_sysctl(); @@ -33,7 +33,7 @@ checkstack(void) freep = procstat_getvmmap(prstat, p, &cnt); assert(freep != NULL); - stack = (uint64_t)&i; + stack = (uintptr_t)&i; for (i = 0; i < cnt; i++) { kve = &freep[i]; if (stack < kve->kve_start || stack > kve->kve_end)