diff options
| author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-21 03:02:03 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-21 03:02:03 -0500 |
| commit | 28cb5ccd306e6cffd4498ba350bc7c82f5fbee44 (patch) | |
| tree | dc64b074f3fcd51430f5161d6074fc3a6e85dc09 /include/linux | |
| parent | de9b2fccb6a1efdf1665ebbcb28cad61467b308a (diff) | |
| parent | 1f21782e63da81f56401a813a52091ef2703838f (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6:
Driver core: proper prototype for drivers/base/init.c:driver_init()
kobject: kobject_uevent() returns manageable value
kref refcnt and false positives
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 2 | ||||
| -rw-r--r-- | include/linux/kobject.h | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 49ab53ce92dc..f44247fe8135 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -433,6 +433,8 @@ static inline int device_is_registered(struct device *dev) | |||
| 433 | return dev->is_registered; | 433 | return dev->is_registered; |
| 434 | } | 434 | } |
| 435 | 435 | ||
| 436 | void driver_init(void); | ||
| 437 | |||
| 436 | /* | 438 | /* |
| 437 | * High level routines for use by the bus drivers | 439 | * High level routines for use by the bus drivers |
| 438 | */ | 440 | */ |
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index d1c8d28fa92e..76538fcf2c4e 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
| @@ -265,8 +265,8 @@ extern int __must_check subsys_create_file(struct subsystem * , | |||
| 265 | struct subsys_attribute *); | 265 | struct subsys_attribute *); |
| 266 | 266 | ||
| 267 | #if defined(CONFIG_HOTPLUG) | 267 | #if defined(CONFIG_HOTPLUG) |
| 268 | void kobject_uevent(struct kobject *kobj, enum kobject_action action); | 268 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); |
| 269 | void kobject_uevent_env(struct kobject *kobj, enum kobject_action action, | 269 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, |
| 270 | char *envp[]); | 270 | char *envp[]); |
| 271 | 271 | ||
| 272 | int add_uevent_var(char **envp, int num_envp, int *cur_index, | 272 | int add_uevent_var(char **envp, int num_envp, int *cur_index, |
| @@ -274,11 +274,12 @@ int add_uevent_var(char **envp, int num_envp, int *cur_index, | |||
| 274 | const char *format, ...) | 274 | const char *format, ...) |
| 275 | __attribute__((format (printf, 7, 8))); | 275 | __attribute__((format (printf, 7, 8))); |
| 276 | #else | 276 | #else |
| 277 | static inline void kobject_uevent(struct kobject *kobj, enum kobject_action action) { } | 277 | static inline int kobject_uevent(struct kobject *kobj, enum kobject_action action) |
| 278 | static inline void kobject_uevent_env(struct kobject *kobj, | 278 | { return 0; } |
| 279 | static inline int kobject_uevent_env(struct kobject *kobj, | ||
| 279 | enum kobject_action action, | 280 | enum kobject_action action, |
| 280 | char *envp[]) | 281 | char *envp[]) |
| 281 | { } | 282 | { return 0; } |
| 282 | 283 | ||
| 283 | static inline int add_uevent_var(char **envp, int num_envp, int *cur_index, | 284 | static inline int add_uevent_var(char **envp, int num_envp, int *cur_index, |
| 284 | char *buffer, int buffer_size, int *cur_len, | 285 | char *buffer, int buffer_size, int *cur_len, |
