Skip to content
Commit c5d5d376 authored by Quanyang Wang's avatar Quanyang Wang Committed by Liwei Song
Browse files

arm: axxia: ddr_retention: change the size of stack_var from 1024 to 512



If the size of array stack_var is 1024, it will trigger the build
warning as below:

arch/arm/mach-axxia/ddr_retention.c:220:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  220 | }
      | ^

Since substracting 1K for 4 times from current stack pointer is equal to
substracting 512 for 8 times, let's change array size to 512 and
recursions to be 8.

Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
[Improve patch to limit "for loop" to 512 to avoid overflow]
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent b71cb2fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment