Message ID | E1axXTb-0004it-43@e0050434b2927.dyn.arm.linux.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, May 3, 2016 at 3:52 PM, Russell King <rmk@arm.linux.org.uk> wrote: > Add the maximum number of memory ranges to the list of usable memory > ranges, so that we don't have to carry this around. > > Signed-off-by: Russell King <rmk@arm.linux.org.uk> Reviewed-by: Pratyush Anand <panand@redhat.com> > --- > kexec/arch/arm/crashdump-arm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c > index 739c906..195b43f 100644 > --- a/kexec/arch/arm/crashdump-arm.c > +++ b/kexec/arch/arm/crashdump-arm.c > @@ -46,8 +46,8 @@ > */ > static struct memory_range crash_memory_ranges[CRASH_MAX_MEMORY_RANGES]; > struct memory_ranges usablemem_rgns = { > - .size = 0, > - .ranges = crash_memory_ranges, > + .max_size = CRASH_MAX_MEMORY_RANGES, > + .ranges = crash_memory_ranges, > }; > > /* memory range reserved for crashkernel */ > -- > 1.9.1 >
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c index 739c906..195b43f 100644 --- a/kexec/arch/arm/crashdump-arm.c +++ b/kexec/arch/arm/crashdump-arm.c @@ -46,8 +46,8 @@ */ static struct memory_range crash_memory_ranges[CRASH_MAX_MEMORY_RANGES]; struct memory_ranges usablemem_rgns = { - .size = 0, - .ranges = crash_memory_ranges, + .max_size = CRASH_MAX_MEMORY_RANGES, + .ranges = crash_memory_ranges, }; /* memory range reserved for crashkernel */
Add the maximum number of memory ranges to the list of usable memory ranges, so that we don't have to carry this around. Signed-off-by: Russell King <rmk@arm.linux.org.uk> --- kexec/arch/arm/crashdump-arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)