Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
F163073068: D45260.id.diff
Sun, Jul 19, 8:23 PM
Unknown Object (File)
Sat, Jul 18, 7:25 AM
Unknown Object (File)
Sat, Jul 18, 5:13 AM
Unknown Object (File)
Mon, Jul 6, 11:20 PM
Unknown Object (File)
Tue, Jun 30, 9:00 AM
Unknown Object (File)
Fri, Jun 26, 2:43 AM
Unknown Object (File)
May 17 2026, 12:32 PM
Unknown Object (File)
May 17 2026, 9:39 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