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.
Sponsored by: Arm Ltd
Paths
| Differential D45303 Authored by andrew on May 22 2024, 2:35 PM.
Details Summary Some LinuxKPI lock macros pass need a flags field passed in. This is Fix this by marking the flags variables as unused to quieten the Sponsored by: Arm Ltd
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptMay 22 2024, 2:35 PM2024-05-22 14:35:58 (UTC+0) Harbormaster completed remote builds in B57847: Diff 138925.May 22 2024, 2:35 PM2024-05-22 14:35:59 (UTC+0) andrew added a parent revision: D45302: stats: Fix the build under gcc.May 22 2024, 2:36 PM2024-05-22 14:36:00 (UTC+0) This revision is now accepted and ready to land.Jun 3 2024, 5:34 PM2024-06-03 17:34:51 (UTC+0) Comment Actions
If we do, maybe that's best in sys/cdefs.h instead of here? This revision now requires review to proceed.Jun 11 2024, 11:16 AM2024-06-11 11:16:17 (UTC+0) Harbormaster completed remote builds in B58139: Diff 139720.Jun 11 2024, 11:16 AM2024-06-11 11:16:18 (UTC+0) andrew added a parent revision: D45561: cdefs: Add __writeonly to mark write only vars.Jun 11 2024, 11:16 AM2024-06-11 11:16:36 (UTC+0) This revision is now accepted and ready to land.Jun 11 2024, 2:33 PM2024-06-11 14:33:46 (UTC+0) Closed by commit rG19782e5bef34: ibcore: Mark write-only variables (authored by andrew). · Explain WhyJun 12 2024, 3:52 PM2024-06-12 15:52:17 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 139755 sys/ofed/drivers/infiniband/core/ib_cache.c
sys/ofed/drivers/infiniband/core/ib_cm.c
|