]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/resource.c
resource: Export insert_resource and remove_resource
[mirror_ubuntu-bionic-kernel.git] / kernel / resource.c
index effb6ee2c3e8ccad2cbe28153fa9a4666b53a366..2e78ead309344ce3d00b1c6701c4e452856089be 100644 (file)
@@ -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
@@ -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)