diff options
| author | Arnd Bergmann <[email protected]> | 2025-04-23 16:48:16 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-04-28 11:21:18 +0000 |
| commit | fa26198d30f3cdd7627ce47362057848219de765 (patch) | |
| tree | 22ad69bb3b5773bc85f0dcc9c49e97c8f7cb6e7f /scripts/gcc-plugins/sancov_plugin.c | |
| parent | iommu: Hide ops.domain_alloc behind CONFIG_FSL_PAMU (diff) | |
| download | kernel-fa26198d30f3cdd7627ce47362057848219de765.tar.gz kernel-fa26198d30f3cdd7627ce47362057848219de765.zip | |
iommu/io-pgtable-arm: dynamically allocate selftest device struct
In general a 'struct device' is way too large to be put on the kernel
stack. Apparently something just caused it to grow a slightly larger,
which pushed the arm_lpae_do_selftests() function over the warning
limit in some configurations:
drivers/iommu/io-pgtable-arm.c:1423:19: error: stack frame size (1032) exceeds limit (1024) in 'arm_lpae_do_selftests' [-Werror,-Wframe-larger-than]
1423 | static int __init arm_lpae_do_selftests(void)
| ^
Change the function to use a dynamically allocated faux_device
instead of the on-stack device structure.
Fixes: ca25ec247aad ("iommu/io-pgtable-arm: Remove iommu_dev==NULL special case")
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
