Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 29, 8:12 PM
Unknown Object (File)
Sun, Sep 27, 10:35 PM
Unknown Object (File)
Sat, Sep 26, 9:21 PM
Unknown Object (File)
Thu, Sep 24, 9:37 AM
Unknown Object (File)
Sat, Sep 12, 2:44 PM
Unknown Object (File)
Sep 6 2026, 9:42 AM
Unknown Object (File)
Sep 6 2026, 12:40 AM
Unknown Object (File)
Sep 5 2026, 1:14 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 Not Applicable
Unit
Tests Not Applicable