Page MenuHomeFreeBSD

LinuxKPI: fix READ_ONCE() -Wcast-equal warnings
ClosedPublic

Authored by bz on Apr 19 2023, 9:48 PM.
Tags
None
Referenced Files
F101998918: D39706.diff
Wed, Nov 6, 9:21 AM
Unknown Object (File)
Sun, Nov 3, 4:26 PM
Unknown Object (File)
Fri, Oct 18, 4:27 AM
Unknown Object (File)
Thu, Oct 17, 3:32 AM
Unknown Object (File)
Mon, Oct 7, 9:08 PM
Unknown Object (File)
Oct 2 2024, 9:07 PM
Unknown Object (File)
Oct 2 2024, 3:18 AM
Unknown Object (File)
Sep 15 2024, 5:12 PM

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable