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)
Thu, Dec 12, 12:44 PM
Unknown Object (File)
Tue, Dec 3, 6:06 AM
Unknown Object (File)
Fri, Nov 29, 10:45 AM
Unknown Object (File)
Nov 25 2024, 5:13 PM
Unknown Object (File)
Nov 24 2024, 11:52 PM
Unknown Object (File)
Nov 24 2024, 7:47 AM
Unknown Object (File)
Nov 22 2024, 11:51 PM
Unknown Object (File)
Nov 22 2024, 5:23 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