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

(cherry picked from commit 9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5)
This commit is contained in:
Olivier Certner 2024-07-19 17:23:45 +02:00
parent 1fc5db8e9f
commit 2e866a1ea9
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -65,7 +65,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));
}