Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
F163882304: D45260.id.diff
Sun, Jul 26, 8:57 PM
Unknown Object (File)
Mon, Jul 20, 11:22 AM
Unknown Object (File)
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)
Jun 26 2026, 2:43 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