diff options
Diffstat (limited to 'kernel/resource.c')
-rw-r--r-- | kernel/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/resource.c b/kernel/resource.c index d7386986e10e..3f285dce9347 100644 --- a/kernel/resource.c +++ b/kernel/resource.c | |||
@@ -409,6 +409,7 @@ int __weak page_is_ram(unsigned long pfn) | |||
409 | { | 409 | { |
410 | return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; | 410 | return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; |
411 | } | 411 | } |
412 | EXPORT_SYMBOL_GPL(page_is_ram); | ||
412 | 413 | ||
413 | void __weak arch_remove_reservations(struct resource *avail) | 414 | void __weak arch_remove_reservations(struct resource *avail) |
414 | { | 415 | { |
@@ -448,7 +449,6 @@ static int __find_resource(struct resource *root, struct resource *old, | |||
448 | struct resource *this = root->child; | 449 | struct resource *this = root->child; |
449 | struct resource tmp = *new, avail, alloc; | 450 | struct resource tmp = *new, avail, alloc; |
450 | 451 | ||
451 | tmp.flags = new->flags; | ||
452 | tmp.start = root->start; | 452 | tmp.start = root->start; |
453 | /* | 453 | /* |
454 | * Skip past an allocated resource that starts at 0, since the assignment | 454 | * Skip past an allocated resource that starts at 0, since the assignment |