From fe3e92e6868dce2ed94c98428b8df1f27ed3ef63 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 23 Apr 2026 13:05:54 -0400 Subject: PHYS_TO_DMAP: Return a void * instead of a vm_offset_t Add a new PHYS_TO_DMAP_ADDR that still returns an address for use in places that only need an address and not a pointer. Effort: CHERI upstreaming Reviewed by: kib Sponsored by: AFRL, DARPA Pull Request: https://github.com/freebsd/freebsd-src/pull/2068 --- sys/crypto/ccp/ccp_hardware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/crypto') diff --git a/sys/crypto/ccp/ccp_hardware.c b/sys/crypto/ccp/ccp_hardware.c index 497f80dbd676..9603539c7fb1 100644 --- a/sys/crypto/ccp/ccp_hardware.c +++ b/sys/crypto/ccp/ccp_hardware.c @@ -1601,7 +1601,7 @@ ccp_do_blkcipher(struct ccp_queue *qp, struct ccp_session *s, return (error); INSECURE_DEBUG(dev, "%s: Contents: %16D\n", __func__, - (void *)PHYS_TO_DMAP(qp->cq_sg_ulptx->sg_segs[0].ss_paddr), " "); + PHYS_TO_DMAP(qp->cq_sg_ulptx->sg_segs[0].ss_paddr), " "); DPRINTF(dev, "%s: starting AES ops @ %u\n", __func__, qp->cq_tail); -- cgit v1.3