mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
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>
This commit is contained in:
parent
0246c4fafc
commit
93058424af
1 changed files with 1 additions and 1 deletions
|
@ -1399,7 +1399,7 @@ struct root_device {
|
||||||
struct module *owner;
|
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);
|
return container_of(d, struct root_device, dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue