HomeFreeBSD

kassert: Turn 'poisoned_buf' into a 'void *'

Description

kassert: Turn 'poisoned_buf' into a 'void *'

This is a step to make <sys/kassert.h> usable without the need to
explicitly include other headers.

'poisoned_buf' is only used for its value and never subject to pointer
arithmetics. Keeping 'caddr_t' would require <sys/kassert.h> to include
<sys/types.h> (at least on INVARIANTS).

Reviewed by: markj
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49971

Details

Provenance
olceAuthored on Apr 7 2025, 1:15 PM
Reviewer
markj
Differential Revision
D49971: kassert: Turn 'poisoned_buf' into a 'void *'
Parents
rGa4df0830d74d: queue(3): Consistent single space after all #define
Branches
Unknown
Tags
Unknown