assert for kmod

This commit is contained in:
Vadim Vetrov
2026-01-31 20:42:29 +03:00
parent 4afd4eae5a
commit 27adf8a308
4 changed files with 10 additions and 6 deletions

View File

@@ -22,7 +22,11 @@
#define TYPES_H
#include <asm/byteorder.h>
#ifndef KERNEL_SPACE
#include <assert.h>
#else
#define assert(...) ;
#endif
#ifdef KERNEL_SPACE
#include <linux/errno.h> // IWYU pragma: export