Create the dev_set_name function now so that various subsystems can start changing over to it before other changes in 2.6.27 will make it compulsory.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -385,6 +385,9 @@ static inline const char *dev_name(struct device *dev) · 384 unmodified lines | ||
| 385 | 385 | return dev->bus_id; |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | +extern int dev_set_name(struct device *dev, const char *name, ...) | |
| 389 | + __attribute__((format(printf, 2, 3))); | |
| 390 | + | |
| 388 | 391 | #ifdef CONFIG_NUMA |
| 389 | 392 | static inline int dev_to_node(struct device *dev) |
| 390 | 393 | { |