Skip to content

Commit 28ab49f

Browse files
daeseokyountorvalds
authored andcommitted
kernel/resource.c: make reallocate_resource() static
sparse says: kernel/resource.c:518:5: warning: symbol 'reallocate_resource' was not declared. Should it be static? Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c96d666 commit 28ab49f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/resource.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static int find_resource(struct resource *root, struct resource *new,
511511
* @newsize: new size of the resource descriptor
512512
* @constraint: the size and alignment constraints to be met.
513513
*/
514-
int reallocate_resource(struct resource *root, struct resource *old,
514+
static int reallocate_resource(struct resource *root, struct resource *old,
515515
resource_size_t newsize,
516516
struct resource_constraint *constraint)
517517
{

0 commit comments

Comments
 (0)