driver core: fw_devlink_relax_cycle() can be static

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20201218063934.GA66003@e60698be8304
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
kernel test robot 2020-12-18 14:39:35 +08:00 committed by Greg Kroah-Hartman
parent b0e2fa4f61
commit c13b827927

View File

@ -1519,7 +1519,7 @@ static void fw_devlink_parse_fwtree(struct fwnode_handle *fwnode)
* *
* Return 1 if a cycle is found. Otherwise, return 0. * Return 1 if a cycle is found. Otherwise, return 0.
*/ */
int fw_devlink_relax_cycle(struct device *con, void *sup) static int fw_devlink_relax_cycle(struct device *con, void *sup)
{ {
struct device_link *link; struct device_link *link;
int ret; int ret;