Fix kmod CHECK_BITFIELD

This commit is contained in:
Vadim Vetrov
2026-01-31 15:33:47 +03:00
parent b41fad1fbe
commit 515d4d4ca6

View File

@@ -111,9 +111,6 @@ free((item)); \
#ifndef KERNEL_SPACE #ifndef KERNEL_SPACE
#define CHECK_BITFIELD(value, field) (((value) & (field)) == (field))
#define max(a,b)__extension__\ #define max(a,b)__extension__\
({ \ ({ \
__typeof__ (a) _a = (a); \ __typeof__ (a) _a = (a); \
@@ -130,6 +127,8 @@ free((item)); \
#endif /* not a KERNEL_SPACE */ #endif /* not a KERNEL_SPACE */
#define CHECK_BITFIELD(value, field) (((value) & (field)) == (field))
static inline int randint(void) { static inline int randint(void) {
int rnd; int rnd;