HomeFreeBSD

LinuxKPI: fix READ_ONCE() -Wcast-equal warnings

Description

LinuxKPI: fix READ_ONCE() -Wcast-equal warnings

Rather than using ACCESS_ONCE() in READ_ONCE() add a missing cast
to const in order to satisfy -Wcast-equal by gcc.
Sadly we cannot do the same to WRITE_ONCE() which still is very
noisy.

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

Details

Provenance
bzAuthored on Apr 19 2023, 9:43 PM
Reviewer
hselasky
Differential Revision
D39706: LinuxKPI: fix READ_ONCE() -Wcast-equal warnings
Parents
rG56d4550c4d71: ifnet: factor out interface renaming into a separate function.
Branches
Unknown
Tags
Unknown