Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104851
b: refs/heads/master
c: df648c9
h: refs/heads/master
i:
  104849: 3321a08
  104847: ccda40b
v: v3
  • Loading branch information
Johannes Berg authored and Rusty Russell committed Jul 22, 2008
1 parent 5b9c349 commit 006e857
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a81792f668c20540c336af4242ba1400763eb14f
refs/heads/master: df648c9fbebb4de50e7a6e76cc253c7cb0421f9b
3 changes: 2 additions & 1 deletion trunk/include/linux/kmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
/* modprobe exit status on success, -ve on error. Return value
* usually useless though. */
extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2)));
#define try_then_request_module(x, mod...) ((x) ?: (request_module(mod), (x)))
#else
static inline int request_module(const char * name, ...) { return -ENOSYS; }
#define try_then_request_module(x, mod...) (x)
#endif

#define try_then_request_module(x, mod...) ((x) ?: (request_module(mod), (x)))

struct key;
struct file;
Expand Down

0 comments on commit 006e857

Please sign in to comment.