Skip to contentSkip to conversation

resource: move EXPORT_SYMBOL right after definition

PATCH In review Cong Wang 3 participants 4 messages Feb 3, 2012 – Feb 4, 2012

lore
Share & tools
lore

Cong Wang

author
#0 lore raw

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
index 7640b3a..7e8ea66 100644
@@ -749,6 +749,7 @@ int adjust_resource(struct resource *res, resource_size_t start, resource_size_t
 	write_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
#1 lore raw
Quoted 1 line · Cong Wang

EXPORT_SYMBOL(adjust_resource) should be right after adjust_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

---

kernel/resource.c +1 -2
index 7640b3a..7e8ea66 100644
@@ -749,6 +749,7 @@ int adjust_resource(struct resource *res, resource_size_t start, resource_size_t
 	write_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
author
#2 lore raw
Quoted 6 lines · Paul Gortmaker
Quoted 1 line · Cong Wang

EXPORT_SYMBOL(adjust_resource) should be right after adjust_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.

#3 lore raw
Quoted 8 lines · Cong Wang
Quoted 5 lines
Quoted 1 line

EXPORT_SYMBOL(adjust_resource) should be right after adjust_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