From nobody Thu May 25 17:45:02 2023 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 4QRwRz2T1Tz4WV3K; Thu, 25 May 2023 17:45:03 +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 4QRwRz0GtTz3s9R; Thu, 25 May 2023 17:45:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685036703; 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=WhbBQbEeNwpm0b/6DD/BlNhz2mzrKOleFOn3xsFanaQ=; b=amANbdidCJPg+F4MwK9fi1uAMdeBdPMz/SqLUW5+owOVCvMZAfLTIeAufA0ImRG61Y+oBe WpYitode7RnC9gOENmK5cc+XlabcS7PkgbUFqruITAleEYtmtmdxxPD7gvzrtRCd//ZjUC ilwrbKUnKx0pWKWTvID77hVXDHtVjjUPySwcL7mkdLhcEJr4pUBrRhORpcEMyDDU7D58mL dZhvnVXRzR9Y4OF45bX+1ZqJDvZt9rs9McFneXlqOVaC2qsWHl3cn69dPeMEUQ9a3QlRz2 noRdFvRQRBHIy7S0TM6VKeNDSSrFKizClRXUnYvwP4KEf+SdEGnIH3bpyo3Yvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685036703; 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=WhbBQbEeNwpm0b/6DD/BlNhz2mzrKOleFOn3xsFanaQ=; b=dXl3YnrU3TOIOmYps6d4eAJ7/hcKhFrAz9nCCys+YDs4KFe3r+BRp8CUa93ZaxDBHbctMU jnnI7dYp2l+ST93NbUfaczNCgspgRIdMyl/iEl8d68ccJODtbY3gFkp/036K8AqLnMTPGe FBeYTup3SeNorq5oExu8+vmupJRie4JcrAGIOyUD0mwoPJasattiulnpE/qs/0bGlLYl5e wevxGKRinzugmThC0KawtV1ciZlIidnzKG0GRg9tvIPPjDBO1Uv7R9b6dbl+h+hFb8h0Xs qGoeNC3fRX3d8Wm6+X6ZHYxaiyysf6UdColNEo36xKpSQfwH9CRUwzogTrl1IA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685036703; a=rsa-sha256; cv=none; b=AG06HP6bQjGzRD7kS9GWDvAmBBkFolIU/loJmDt2zI7Oyq991j3Zs4hyQQzA2Cs9FSxZdb /MN5Ia3IdS+ilQDYO3MBPeGBFCN3iuqcg/PGIonH2SZ+Iv4vUKWDhiLfCC/w7s5wwKPh9b ZMnav3lqIsSwoLEQQNzlNE8GePpy0mk+ACXF/s1wj54gDXRv8YITkIINwGYQE0UDGoVNKS wefBkXPpoJqpkxXrGBrN0hnl9gNcpdv1W08kgl6qskTzPNIsTLUdI6uOB3kmhE9PZjDc3V U8Uz2pWh/+P0/6+TzjsXdgLMyLfbPbA+Qp8HXU/K7+70SFl111CNLdn+FEmIZg== 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 4QRwRy6TBszYtH; Thu, 25 May 2023 17:45:02 +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 34PHj2lX093535; Thu, 25 May 2023 17:45:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34PHj2l3093534; Thu, 25 May 2023 17:45:02 GMT (envelope-from git) Date: Thu, 25 May 2023 17:45:02 GMT Message-Id: <202305251745.34PHj2l3093534@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 61fab1341a6b - main - powerpc booke: Add an __unused wrapper for a variable only used under DEBUG. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 61fab1341a6b51c1964bcd1eb800fbdf5a34a0ac Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=61fab1341a6b51c1964bcd1eb800fbdf5a34a0ac commit 61fab1341a6b51c1964bcd1eb800fbdf5a34a0ac Author: John Baldwin AuthorDate: 2023-05-25 17:44:53 +0000 Commit: John Baldwin CommitDate: 2023-05-25 17:44:53 +0000 powerpc booke: Add an __unused wrapper for a variable only used under DEBUG. --- sys/powerpc/booke/pmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c index 1d8f95594399..07e961995cd7 100644 --- a/sys/powerpc/booke/pmap.c +++ b/sys/powerpc/booke/pmap.c @@ -133,8 +133,10 @@ __FBSDID("$FreeBSD$"); #ifdef DEBUG #define debugf(fmt, args...) printf(fmt, ##args) +#define __debug_used #else #define debugf(fmt, args...) +#define __debug_used __unused #endif #ifdef __powerpc64__ @@ -632,7 +634,7 @@ mmu_booke_bootstrap(vm_offset_t start, vm_offset_t kernelend) int cnt, i, j; vm_paddr_t s, e, sz; vm_paddr_t physsz, hwphyssz; - u_int phys_avail_count; + u_int phys_avail_count __debug_used; vm_size_t kstack0_sz; vm_paddr_t kstack0_phys; vm_offset_t kstack0;