linux/drivers/soc/apple
Asahi Lina 4ec98e6db9
soc: apple: rtkit: Do not copy the reg state structure to the stack
The register state struct is 848 bytes, which ends up bloating the
apple_rtkit_crashlog_dump_regs stack frame beyond 1024 on some
32-bit platforms, triggering compile warnings.

This doesn't matter for 64BIT/ARM64, but there's also no good reason to
copy the structure to the stack in this case. We can use __packed to
avoid alignment issues, there are no double-read hazards, and this is a
fatal error path so performance does not matter.

Fixes: 22991d8d57 ("soc: apple: rtkit: Add register dump decoding to crashlog")
Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2023-02-13 20:20:34 +01:00
..
apple-pmgr-pwrstate.c soc: apple: apple-pmgr-pwrstate: Switch to IRQ-safe mode 2023-01-31 20:37:07 +09:00
Kconfig soc: apple: Add SART driver 2022-05-02 17:24:45 +02:00
Makefile soc: apple: Add SART driver 2022-05-02 17:24:45 +02:00
rtkit-crashlog.c soc: apple: rtkit: Do not copy the reg state structure to the stack 2023-02-13 20:20:34 +01:00
rtkit-internal.h soc: apple: Add RTKit IPC library 2022-05-01 16:55:06 +02:00
rtkit.c soc: apple: rtkit: Export non-devm init/free functions 2023-01-31 20:40:14 +09:00
sart.c soc: apple: sart: Stop casting function pointer signatures 2022-11-28 20:34:09 +09:00