Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
F97482627: D45260.id138761.diff
Sun, Sep 29, 3:25 PM
F97482621: D45260.id138890.diff
Sun, Sep 29, 3:25 PM
F97452002: D45260.diff
Sun, Sep 29, 10:39 AM
Unknown Object (File)
Tue, Sep 24, 4:48 PM
Unknown Object (File)
Tue, Sep 24, 1:58 AM
Unknown Object (File)
Mon, Sep 23, 7:03 PM
Unknown Object (File)
Mon, Sep 23, 11:28 AM
Unknown Object (File)
Mon, Sep 23, 5:15 AM
Subscribers
None

Details

Summary

When the compiler doesn't provide __builtin_is_aligned we use
macro as a fallback. The macro was missing brackets around one
argument. This could lead to incorrect results when the argument is
more complex than a single stagement.

Fix this by adding the needed brackets.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57774
Build 54662: arc lint + arc unit