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)
Mon, Nov 11, 4:07 PM
Unknown Object (File)
Mon, Nov 11, 3:36 PM
Unknown Object (File)
Mon, Nov 11, 3:35 PM
Unknown Object (File)
Fri, Nov 8, 6:39 AM
Unknown Object (File)
Thu, Nov 7, 4:54 AM
Unknown Object (File)
Wed, Nov 6, 8:27 PM
Unknown Object (File)
Oct 17 2024, 5:58 PM
Unknown Object (File)
Oct 16 2024, 4:07 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