diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kmod.h | 6 |
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 |
