mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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:
parent
b4fb139e28
commit
fbb9ca960d
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue