浏览代码

drivers/base/core.c: Mark to_root_device static

Nothing outside of drivers/base/core.c references this function.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Josh Triplett 12 年之前
父节点
当前提交
93058424af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/base/core.c

+ 1 - 1
drivers/base/core.c

@@ -1399,7 +1399,7 @@ struct root_device {
 	struct module *owner;
 };
 
-inline struct root_device *to_root_device(struct device *d)
+static inline struct root_device *to_root_device(struct device *d)
 {
 	return container_of(d, struct root_device, dev);
 }