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)
Wed, Aug 26, 8:00 PM
Unknown Object (File)
Mon, Aug 24, 6:01 PM
Unknown Object (File)
Fri, Aug 21, 8:44 AM
Unknown Object (File)
Mon, Aug 17, 1:35 AM
Unknown Object (File)
Sat, Aug 15, 10:27 PM
Unknown Object (File)
Sat, Aug 15, 6:36 AM
Unknown Object (File)
Sat, Aug 15, 6:18 AM
Unknown Object (File)
Sat, Aug 15, 4:32 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57774
Build 54662: arc lint + arc unit