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, Nov 7, 3:13 PM
Unknown Object (File)
Tue, Nov 4, 7:41 PM
Unknown Object (File)
Sat, Nov 1, 8:00 AM
Unknown Object (File)
Wed, Oct 29, 3:05 PM
Unknown Object (File)
Wed, Oct 29, 4:36 AM
Unknown Object (File)
Wed, Oct 29, 4:30 AM
Unknown Object (File)
Sat, Oct 25, 2:06 AM
Unknown Object (File)
Sat, Oct 25, 12:47 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