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)
Sat, Apr 25, 6:22 AM
Unknown Object (File)
Mon, Apr 20, 6:18 PM
Unknown Object (File)
Sat, Apr 18, 12:30 PM
Unknown Object (File)
Sat, Apr 18, 11:45 AM
Unknown Object (File)
Fri, Apr 17, 8:40 PM
Unknown Object (File)
Wed, Apr 15, 3:54 AM
Unknown Object (File)
Tue, Apr 14, 10:46 PM
Unknown Object (File)
Tue, Apr 14, 7:09 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