- Mark assert dummy variables as __used.
- Use a dummy (void) cast of the flags argument passed to spin_unlock_irqrestore so it gets treated as used.
Paths
| Differential D39349 Authored by jhb on Mar 30 2023, 11:33 PM.
Details Summary
Diff Detail
Event TimelineHerald added subscribers: linuxkpi, emaste, imp. · View Herald TranscriptMar 30 2023, 11:33 PM2023-03-30 23:33:30 (UTC+0) Harbormaster completed remote builds in B50686: Diff 119685.Mar 30 2023, 11:33 PM2023-03-30 23:33:30 (UTC+0) jhb added a child revision: D39350: fuse: Remove set but unused cr_gid variable..Mar 30 2023, 11:33 PM2023-03-30 23:33:34 (UTC+0) This revision is now accepted and ready to land.Mar 31 2023, 5:13 AM2023-03-31 05:13:05 (UTC+0) Closed by commit rGad83dd2b2b6b: LinuxKPI: Appease -Wunused-but-set-variable warnings from GCC. (authored by jhb). · Explain WhyMar 31 2023, 5:59 PM2023-03-31 17:59:43 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 119685 sys/compat/linuxkpi/common/include/linux/kernel.h
sys/compat/linuxkpi/common/include/linux/spinlock.h
|
You can remove this comment & replace it with a newline to seperate the above from the 1.2 macro.