LinuxKPI: Add PTR_IF macro

Sponsored by:	Serenity Cyber Security, LLC
Reviewed by:	emaste
MFC after:	1 week

(cherry picked from commit e0eeeca8b83a17aeebc4da525e813699bf3fabc2)
This commit is contained in:
Vladimir Kondratyev 2024-04-08 09:47:42 +03:00
parent b4fb139e28
commit fbb9ca960d

View file

@ -133,6 +133,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);