Skip to content

Commit c2d6eeb

Browse files
committed
Unexporting find_module() has been backported to Linux v5.10.220
Signed-off-by: Andreas Beckmann <anbe@debian.org>
1 parent 22c47fc commit c2d6eeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compat.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,10 @@ unsigned long long strtoul(const char *cp, char **endp, unsigned int base)
746746
return result;
747747
}
748748

749-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0)
749+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0)) \
750+
|| ((LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,220)) && (LINUX_VERSION_CODE < KERNEL_VERSION(5,11,0)))
750751
/*
751-
* find_module() is unexported in v5.12:
752+
* find_module() is unexported in v5.12 (backported to 5.10.220):
752753
* 089049f6c9956 ("module: unexport find_module and module_mutex")
753754
* and module_mutex is replaced with RCU in
754755
* a006050575745 ("module: use RCU to synchronize find_module")

0 commit comments

Comments
 (0)