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)
Fri, Oct 10, 2:49 AM
Unknown Object (File)
Fri, Oct 3, 4:41 PM
Unknown Object (File)
Sep 12 2025, 9:52 PM
Unknown Object (File)
Sep 6 2025, 9:59 AM
Unknown Object (File)
Sep 3 2025, 9:07 PM
Unknown Object (File)
Sep 3 2025, 10:10 AM
Unknown Object (File)
Sep 2 2025, 3:01 PM
Unknown Object (File)
Aug 27 2025, 11:15 PM
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