The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4e45f4c76723fb26bfcab60c7491d960db252c1e

commit 4e45f4c76723fb26bfcab60c7491d960db252c1e
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2026-08-05 18:17:21 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2026-09-07 16:59:05 +0000

    buf_ring: tiny style(9) fixup
---
 sys/kern/subr_bufring.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sys/kern/subr_bufring.c b/sys/kern/subr_bufring.c
index 3e0fa5690a20..8ae061c559fb 100644
--- a/sys/kern/subr_bufring.c
+++ b/sys/kern/subr_bufring.c
@@ -30,7 +30,6 @@
 #include <sys/systm.h>
 #include <sys/kernel.h>
 #include <sys/malloc.h>
-#include <sys/ktr.h>
 #include <sys/buf_ring.h>
 
 struct buf_ring *
@@ -40,8 +39,8 @@ buf_ring_alloc(int count, struct malloc_type *type, int 
flags, struct mtx *lock)
 
        KASSERT(powerof2(count), ("buf ring must be size power of 2"));
 
-       br = malloc(sizeof(struct buf_ring) + count*sizeof(caddr_t),
-           type, flags|M_ZERO);
+       br = malloc(sizeof(struct buf_ring) + count * sizeof(void *),
+           type, flags | M_ZERO);
        if (br == NULL)
                return (NULL);
 #ifdef DEBUG_BUFRING

Reply via email to