Commit graph

2 commits

Author SHA1 Message Date
Mark Johnston
11f154ca86 linuxkpi: Annotate an unused variable as such
This addresses a -Wunused-but-set-variable warning in the gcc builds.

No functional change intended.

Reported by:	Jenkins

(cherry picked from commit 344a04ad2c5e62b2905bc2f8b6f992ae590403fd)
2024-04-15 11:00:35 -07:00
Vladimir Kondratyev
c3a10c2332 LinuxKPI: Add static_assert() macro
And move it along BUILD_BUG family in to
linux/build_bug.h to match Linux.

Sponsored by:	Serenity Cyber Security, LLC
Reviewed by:	manu, bz
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D42800

(cherry picked from commit 31ef29091b0fbadefb4ccfb21e4b30ca7ddca3ed)
2024-02-17 23:58:36 +03:00