summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-05-16 22:39:18 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-16 22:39:18 -0700
commitd847507434bbeda3e22b5f2c1cd5c486905ec1ab (patch)
tree85f325877503394edba7a77fd9cd40cc34d534c9 /include
parent3584199aaf995eea33b57fb1e933711c0fffe5cf (diff)
Make request_module() take a printf-like vararg argument instead of a string.
This is what a lot of the callers really wanted.
Diffstat (limited to 'include')
-rw-r--r--include/linux/kmod.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h
index 9e9e2c38ab34..7fa02a737518 100644
--- a/include/linux/kmod.h
+++ b/include/linux/kmod.h
@@ -24,12 +24,12 @@
#include <linux/compiler.h>
#ifdef CONFIG_KMOD
-extern int request_module(const char * name);
+extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2)));
#else
-static inline int request_module(const char * name) { return -ENOSYS; }
+static inline int request_module(const char * name, ...) { return -ENOSYS; }
#endif
-#define try_then_request_module(x, mod) ((x) ?: request_module(mod), (x))
+#define try_then_request_module(x, mod...) ((x) ?: request_module(mod), (x))
extern int call_usermodehelper(char *path, char *argv[], char *envp[], int wait);
#ifdef CONFIG_HOTPLUG