mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
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:
parent
ab1a5d8e2a
commit
742088d9fb
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user