summaryrefslogtreecommitdiff
path: root/libkmod/libkmod-module.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.de.marchi@gmail.com>2013-04-09 04:16:57 -0300
committerLucas De Marchi <lucas.de.marchi@gmail.com>2013-04-09 04:38:27 -0300
commit55112d19f7067dff89b1481d5bd8cc49139c4ecb (patch)
tree3e9ba480cbc0c22d4773d9e71a365ac403b1180d /libkmod/libkmod-module.c
parent1407064e730732dd20952671077007dd4133f7db (diff)
downloadkmod-55112d19f7067dff89b1481d5bd8cc49139c4ecb.tar.gz
kmod-55112d19f7067dff89b1481d5bd8cc49139c4ecb.tar.bz2
kmod-55112d19f7067dff89b1481d5bd8cc49139c4ecb.zip
libkmod: Move finit_module() definition to missing.h
Check for finit_module() and don't use our own static inline function if there's such function in libc (or another lib). In testsuite we need to unconditionally define HAVE_FINIT_MODULE because we want to override this function, and never use the static inline one in missing.h
Diffstat (limited to 'libkmod/libkmod-module.c')
-rw-r--r--libkmod/libkmod-module.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
index f701d47..47d12ad 100644
--- a/libkmod/libkmod-module.c
+++ b/libkmod/libkmod-module.c
@@ -768,14 +768,6 @@ KMOD_EXPORT int kmod_module_remove_module(struct kmod_module *mod,
extern long init_module(const void *mem, unsigned long len, const char *args);
-#ifndef __NR_finit_module
-# define __NR_finit_module -1
-#endif
-static inline int finit_module(int fd, const char *uargs, int flags)
-{
- return syscall(__NR_finit_module, fd, uargs, flags);
-}
-
/**
* kmod_module_insert_module:
* @mod: kmod module