Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Josh Triplett and committed by
Greg Kroah-Hartman
93058424 0246c4fa

+1 -1
+1 -1
drivers/base/core.c
··· 1399 1399 struct module *owner; 1400 1400 }; 1401 1401 1402 - inline struct root_device *to_root_device(struct device *d) 1402 + static inline struct root_device *to_root_device(struct device *d) 1403 1403 { 1404 1404 return container_of(d, struct root_device, dev); 1405 1405 }