mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
LinuxKPI: Add PTR_IF macro
Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week
This commit is contained in:
parent
06902a4479
commit
e0eeeca8b8
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue