HomeFreeBSD

ibcore: Mark write-only variables

Description

ibcore: Mark write-only variables

Some LinuxKPI lock macros pass need a flags field passed in. This is
written to but never read from so gcc complains.

Fix this by marking the flags variables as unused to quieten the
compiler.

Reviewed by: brooks (earlier version), kib
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45303

Details

Provenance
andrewAuthored on Jun 12 2024, 1:04 PM
Reviewer
brooks
Differential Revision
D45303: ibcore: Mark write-only variables
Parents
rGa7ae78caaa17: cdefs: Add __writeonly to mark write only vars
Branches
Unknown
Tags
Unknown