Page MenuHomeFreeBSD

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

Authored by bz on Apr 19 2023, 9:48 PM.
Tags
None
Referenced Files
F106996641: D39706.id120716.diff
Wed, Jan 8, 5:39 PM
F106996366: D39706.id120716.diff
Wed, Jan 8, 5:32 PM
F106995935: D39706.id120694.diff
Wed, Jan 8, 5:22 PM
F106943192: D39706.diff
Tue, Jan 7, 8:13 PM
F106941966: D39706.diff
Tue, Jan 7, 7:43 PM
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

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