Page MenuHomeFreeBSD

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

Authored by bz on Apr 19 2023, 9:48 PM.
Tags
None
Referenced Files
F173339630: D39706.id.diff
Fri, Sep 25, 8:11 AM
Unknown Object (File)
Thu, Sep 10, 2:03 PM
Unknown Object (File)
Wed, Sep 9, 9:23 PM
Unknown Object (File)
Tue, Sep 8, 10:55 AM
Unknown Object (File)
Sat, Sep 5, 11:04 PM
Unknown Object (File)
Sat, Sep 5, 1:25 PM
Unknown Object (File)
Sat, Sep 5, 8:50 AM
Unknown Object (File)
Thu, Sep 3, 10:24 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