refcount: Constify refcount_load()

Reviewed by:    markj
Approved by:    markj (mentor)
MFC after:      5 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D46888
This commit is contained in:
Olivier Certner 2024-07-19 17:23:45 +02:00
parent 5e9a82e898
commit 9dc5b3dbb0
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -64,7 +64,7 @@ refcount_init(volatile u_int *count, u_int value)
}
static __inline u_int
refcount_load(volatile u_int *count)
refcount_load(volatile const u_int *count)
{
return (atomic_load_int(count));
}