Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: at91: pm: at91_pm_suspend_in_sram() must be 8-byte aligned

fncpy() requires that the source and the destination are both 8-byte
aligned.

Signed-off-by: Patrick Doyle <pdoyle@irobot.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Fixes: d94e688cae56 ("ARM: at91/pm: move the copying the sram function to the sram initialization phase")
Cc: <stable@vger.kernel.org> # 4.1+

authored by

Patrick Doyle and committed by
Alexandre Belloni
5fcf8d1a 6f112a08

+2
+2
arch/arm/mach-at91/pm_suspend.S
··· 80 80 * @r2: base address of second SDRAM Controller or 0 if not present 81 81 * @r3: pm information 82 82 */ 83 + /* at91_pm_suspend_in_sram must be 8-byte aligned per the requirements of fncpy() */ 84 + .align 3 83 85 ENTRY(at91_pm_suspend_in_sram) 84 86 /* Save registers on stack */ 85 87 stmfd sp!, {r4 - r12, lr}