Page MenuHomeFreeBSD

LinuxKPI: change DECLARE_FLEX_ARRAY()
ClosedPublic

Authored by bz on Feb 22 2022, 10:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 3:05 AM
Unknown Object (File)
Thu, Jun 20, 10:16 AM
Unknown Object (File)
Mar 23 2024, 12:47 PM
Unknown Object (File)
Mar 18 2024, 6:04 AM
Unknown Object (File)
Mar 7 2024, 5:56 PM
Unknown Object (File)
Dec 26 2023, 4:52 PM
Unknown Object (File)
Dec 22 2023, 11:47 PM
Unknown Object (File)
Dec 19 2023, 4:35 PM

Details

Summary

DECLARE_FLEX_ARRAY can be used inside a structure. On FreeBSD due to
-Wgnu-variable-sized-type-not-at-end this yields an error. Use [0]
instead of [] to overcome this.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44542
Build 41430: arc lint + arc unit

Event Timeline

bz requested review of this revision.Feb 22 2022, 10:51 PM
hselasky added a subscriber: hselasky.

I think there are some issues with [0] aswell, but I don't remember exactly right now.

This revision is now accepted and ready to land.Feb 24 2022, 9:19 AM
This revision was automatically updated to reflect the committed changes.