LinuxKPI: Add PTR_IF macro

Sponsored by:	Serenity Cyber Security, LLC
Reviewed by:	emaste
MFC after:	1 week
This commit is contained in:
Vladimir Kondratyev 2024-04-08 09:47:42 +03:00
parent 06902a4479
commit e0eeeca8b8

View file

@ -132,6 +132,8 @@ extern int linuxkpi_warn_dump_stack;
#define printk(...) printf(__VA_ARGS__)
#define vprintk(f, a) vprintf(f, a)
#define PTR_IF(x, p) ((x) ? (p) : NULL)
#define asm __asm
extern void linux_dump_stack(void);