]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: Appease -Wunused-but-set-variable warnings from GCC.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 31 Mar 2023 17:56:33 +0000 (10:56 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 31 Mar 2023 17:56:33 +0000 (10:56 -0700)
commitad83dd2b2b6bb56c002a93fcf800b30f2ec448d5
tree1bc4647e8943f435e2d45bd5a16d004d9af76630
parente93da76b073a9cf9e350d512fb43b60e96c0a47d
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
sys/compat/linuxkpi/common/include/linux/kernel.h
sys/compat/linuxkpi/common/include/linux/spinlock.h