resource: move EXPORT_SYMBOL right after definition
PATCH 1/1 resource: move EXPORT_SYMBOL right after definition
EXPORT_SYMBOL(adjust_resource) should be right after adjust_resource().
---
kernel/resource.c +1 -2
@@ -749,6 +749,7 @@ int adjust_resource(struct resource *res, resource_size_t start, resource_size_twrite_unlock (&resource_lock);return result; } +EXPORT_SYMBOL (adjust_resource); static void __init __reserve_region_with_split(struct resource *root, resource_size_t start, resource_size_t end,
@@ -792,8 +793,6 @@ void __init reserve_region_with_split(struct resource *root,write_unlock (&resource_lock); } -EXPORT_SYMBOL (adjust_resource); -/** * resource_alignment - calculate resource's alignment * @res: resource pointer
Quoted 1 line · Cong Wang
EXPORT_SYMBOL(adjust_resource)should be right afteradjust_resource().
Presumably this is to get rid of a checkpatch warning? Maybe it makes sense to have it go via the trivial tree?
TRIVIAL PATCHES
M: Jiri Kosina <[email protected]> T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial.git
Paul.
Quoted 25 lines
Signed-off-by WANG Cong <[email protected]>---
kernel/resource.c +1
-2@@ -749,6 +749,7 @@ int adjust_resource(struct resource *res, resource_size_t start, resource_size_twrite_unlock (&resource_lock);return result; } +EXPORT_SYMBOL (adjust_resource); static void __init __reserve_region_with_split(struct resource *root, resource_size_t start, resource_size_t end,@@ -792,8 +793,6 @@ void __init reserve_region_with_split(struct resource *root,write_unlock (&resource_lock); } -EXPORT_SYMBOL (adjust_resource); -/** * resource_alignment - calculate resource's alignment * @res: resource pointer
Quoted 6 lines · Paul Gortmaker
Quoted 1 line · Cong Wang
EXPORT_SYMBOL(adjust_resource)should be right afteradjust_resource().Presumably this is to get rid of a checkpatch warning? Maybe it makes sense to have it go via the trivial tree?
Yeah, although I found this by code review, I agree this is proper for trivial.
Thanks.
Quoted 8 lines · Cong Wang
Quoted 5 lines
Quoted 1 line
EXPORT_SYMBOL(adjust_resource)should be right afteradjust_resource().Presumably this is to get rid of a checkpatch warning? Maybe it makes sense to have it go via the trivial tree?
Yeah, although I found this by code review, I agree this is proper for trivial.
I have already applied it yesterday.
Signature · 2 lines
Jiri Kosina SUSE Labs