Skip to content

Commit

Permalink
resource: Export insert_resource and remove_resource
Browse files Browse the repository at this point in the history
insert_resource() and remove_resouce() are called by producers
of resources, such as FW modules and bus drivers.  These modules
may be implemented as loadable modules.

Export insert_resource() and remove_resouce() so that they can
be called from such modules.

link: https://lkml.org/lkml/2016/3/8/872
Signed-off-by: Toshi Kani <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Dan Williams <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
toshikani authored and djbw committed Mar 9, 2016
1 parent ff3cc95 commit 8095d0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ int insert_resource(struct resource *parent, struct resource *new)
conflict = insert_resource_conflict(parent, new);
return conflict ? -EBUSY : 0;
}
EXPORT_SYMBOL_GPL(insert_resource);

/**
* insert_resource_expand_to_fit - Insert a resource into the resource tree
Expand Down Expand Up @@ -925,6 +926,7 @@ int remove_resource(struct resource *old)
write_unlock(&resource_lock);
return retval;
}
EXPORT_SYMBOL_GPL(remove_resource);

static int __adjust_resource(struct resource *res, resource_size_t start,
resource_size_t size)
Expand Down

0 comments on commit 8095d0f

Please sign in to comment.