aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/resource.c
diff options
context:
space:
mode:
authorToshi Kani <toshi.kani@hpe.com>2016-03-09 14:47:05 -0500
committerDan Williams <dan.j.williams@intel.com>2016-03-09 14:07:20 -0500
commit8095d0f225fe31eaac4a013177b77ed5283278f8 (patch)
treefc775a417df92724ec47a27d000829bb76610ffd /kernel/resource.c
parentff3cc952d3f009e6c376cc40651b87187ce364a6 (diff)
resource: Export insert_resource and remove_resource
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 <toshi.kani@hpe.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Borislav Petkov <bp@suse.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'kernel/resource.c')
-rw-r--r--kernel/resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/resource.c b/kernel/resource.c
index effb6ee2c3e8..2e78ead30934 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -866,6 +866,7 @@ int insert_resource(struct resource *parent, struct resource *new)
866 conflict = insert_resource_conflict(parent, new); 866 conflict = insert_resource_conflict(parent, new);
867 return conflict ? -EBUSY : 0; 867 return conflict ? -EBUSY : 0;
868} 868}
869EXPORT_SYMBOL_GPL(insert_resource);
869 870
870/** 871/**
871 * insert_resource_expand_to_fit - Insert a resource into the resource tree 872 * insert_resource_expand_to_fit - Insert a resource into the resource tree
@@ -925,6 +926,7 @@ int remove_resource(struct resource *old)
925 write_unlock(&resource_lock); 926 write_unlock(&resource_lock);
926 return retval; 927 return retval;
927} 928}
929EXPORT_SYMBOL_GPL(remove_resource);
928 930
929static int __adjust_resource(struct resource *res, resource_size_t start, 931static int __adjust_resource(struct resource *res, resource_size_t start,
930 resource_size_t size) 932 resource_size_t size)