]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
missing.h: warn on missing __NR_finit_module
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Aug 2024 16:04:21 +0000 (17:04 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 23 Aug 2024 18:51:19 +0000 (13:51 -0500)
Complain (somewhat) loudly if we don't have the syscall number, as the
default cannot work.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/missing.h

index 7df62356f4866a427eec5234c3c4c6b9715db808..0c225a249dab2ee95b37442c7357f09addc10725 100644 (file)
@@ -20,6 +20,7 @@
 #endif
 
 #ifndef __NR_finit_module
+# warning __NR_finit_module missing - kmod might not work correctly
 # define __NR_finit_module -1
 #endif