missing.h: warn on missing __NR_finit_module

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>
This commit is contained in:
Emil Velikov 2024-08-22 17:04:21 +01:00 committed by Lucas De Marchi
parent d04b72adf3
commit cee455ee78

View 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