Page MenuHomeFreeBSD

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

Authored by bz on Apr 19 2023, 9:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 17 2024, 12:49 AM
Unknown Object (File)
Nov 12 2024, 2:35 AM
Unknown Object (File)
Nov 11 2024, 4:34 AM
Unknown Object (File)
Nov 9 2024, 8:34 AM
Unknown Object (File)
Nov 8 2024, 2:55 PM
Unknown Object (File)
Nov 6 2024, 11:35 AM
Unknown Object (File)
Nov 6 2024, 9:21 AM
Unknown Object (File)
Nov 3 2024, 4:26 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