Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
F109469180: D45260.diff
Wed, Feb 5, 11:45 AM
Unknown Object (File)
Dec 28 2024, 10:00 PM
Unknown Object (File)
Dec 27 2024, 11:51 AM
Unknown Object (File)
Dec 12 2024, 12:44 PM
Unknown Object (File)
Dec 3 2024, 6:06 AM
Unknown Object (File)
Nov 29 2024, 10:45 AM
Unknown Object (File)
Nov 25 2024, 5:13 PM
Unknown Object (File)
Nov 24 2024, 11:52 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57774
Build 54662: arc lint + arc unit