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, Jul 25, 12:33 AM
Unknown Object (File)
Jun 26 2025, 5:15 AM
Unknown Object (File)
Jun 23 2025, 6:15 AM
Unknown Object (File)
Jun 20 2025, 10:16 PM
Unknown Object (File)
Jun 20 2025, 10:16 PM
Unknown Object (File)
Jun 20 2025, 10:16 PM
Unknown Object (File)
Jun 18 2025, 12:43 PM
Unknown Object (File)
Jun 10 2025, 10:06 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