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)
Sat, Nov 29, 10:39 PM
Unknown Object (File)
Thu, Nov 27, 1:51 PM
Unknown Object (File)
Thu, Nov 27, 12:24 AM
Unknown Object (File)
Wed, Nov 26, 8:40 AM
Unknown Object (File)
Wed, Nov 19, 11:25 AM
Unknown Object (File)
Nov 7 2025, 3:13 PM
Unknown Object (File)
Nov 4 2025, 7:41 PM
Unknown Object (File)
Nov 1 2025, 8:00 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