LinuxKPI: Add __diag macros

__diag macros turn individual warnings and errors on and off locally,
depending on version of compiler. Add dummy implementation as drm-kmod
set warnings separately for each file.

Sponsored by:	Serenity Cyber Security, LLC
MFC after:	1 week
Reviewed by:	manu, emaste
Differential Revision:	https://reviews.freebsd.org/D45842
This commit is contained in:
Vladimir Kondratyev 2024-07-21 16:08:48 +03:00
parent ab1a5d8e2a
commit 742088d9fb

View File

@ -89,6 +89,10 @@
#define __printf(a,b) __printflike(a,b)
#define __diag_push()
#define __diag_pop()
#define __diag_ignore_all(...)
#define barrier() __asm__ __volatile__("": : :"memory")
#define lower_32_bits(n) ((u32)(n))