Re: [PATCH][devlink-next] devlink: make functions a couple of new functions static

2018-01-19 Thread David Miller
From: Colin King Date: Wed, 17 Jan 2018 11:23:03 + > From: Colin Ian King > > The functions devlink_resource_find and devlink_resource_validate_children > are local to the source and do not need to be in global scope, so make > them static. > > Cleans up sparse warnings: > symbol 'devlink_

Re: [PATCH][devlink-next] devlink: make functions a couple of new functions static

2018-01-17 Thread Jiri Pirko
Wed, Jan 17, 2018 at 12:23:03PM CET, colin.k...@canonical.com wrote: >From: Colin Ian King > >The functions devlink_resource_find and devlink_resource_validate_children >are local to the source and do not need to be in global scope, so make >them static. > >Cleans up sparse warnings: >symbol 'devl

[PATCH][devlink-next] devlink: make functions a couple of new functions static

2018-01-17 Thread Colin King
From: Colin Ian King The functions devlink_resource_find and devlink_resource_validate_children are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'devlink_resource_find' was not declared. Should it be static? warning: symbol 'de