HomeFreeBSD

LinuxKPI: Appease -Wunused-but-set-variable warnings from GCC.

Description

LinuxKPI: Appease -Wunused-but-set-variable warnings from GCC.

  • Mark assert dummy variables as __unused.
  • Use a dummy (void) cast of the flags argument passed to spin_unlock_irqrestore so it gets treated as used.

Reviewed by: manu, hselasky
Differential Revision: https://reviews.freebsd.org/D39349

Details

Provenance
jhbAuthored on Mar 31 2023, 5:56 PM
Reviewer
manu
Differential Revision
D39349: linuxkpi: Appease -Wunused-but-set-variable warnings from GCC.
Parents
rGe93da76b073a: nanobsd: Remove MIPS configurations.
Branches
Unknown
Tags
Unknown