fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes
While looking for build logs for another problem, I noticed two warnings while compiling for 64-bit parisc.
This is the second of them and I think I have seen it earlier too, but the value was 1064 back then:
CC fs/select.ofs/select.c: In function 'do_sys_poll':fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Signature · 1 line
Meelis Roos ([email protected])
* Meelis Roos <[email protected]>:
Quoted 2 lines
fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]arch/parisc/kernel/inventory.c:359:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Meelis, this patch should fix both issues.
Can you test?
Helge
[PATCH] parisc: Fix too large frame size warnings
The parisc architecture requires larger stack frames than most other architectures on 32-bit kernels.
Increase the default to 1280 bytes for parisc to avoid warnings in do_sys_poll() and pat_memconfig() functions.
lib/Kconfig.debug +2 -1
@@ -219,7 +219,8 @@ config FRAME_WARN range 0 8192 default 0 if KASAN default 2048 if GCC_PLUGIN_LATENT_ENTROPY - default 1024 if !64BIT + default 1280 if (!64BIT && PARISC) + default 1024 if (!64BIT && !PARISC) default 2048 if 64BIT help Tell gcc to warn at build time for stack frames larger than this.
Quoted 2 lines
Meelis, this patch should fix both issues.
Can you test?
At least one of the warnings is still there - but I am on a 64-bit kernel on RP3440, RP3410 and A500 where I saw this.
Quoted 27 lines
Helge
[PATCH] parisc: Fix too large frame size warnings
The parisc architecture requires larger stack frames than most other architectures on 32-bit kernels.
Increase the default to 1280 bytes for parisc to avoid warnings indo_sys_poll()andpat_memconfig()functions.Signed-off-by Helge Deller <[email protected]>lib/Kconfig.debug +2
-1@@ -219,7 +219,8 @@ config FRAME_WARN range 0 8192 default 0 if KASAN default 2048 if GCC_PLUGIN_LATENT_ENTROPY - default 1024 if !64BIT + default 1280 if (!64BIT && PARISC) + default 1024 if (!64BIT && !PARISC) default 2048 if 64BIT help Tell gcc to warn at build time for stack frames larger than this.
Signature · 1 line
Meelis Roos ([email protected])
Quoted 5 lines · Meelis Roos
Quoted 2 lines
Meelis, this patch should fix both issues.
Can you test?At least one of the warnings is still there - but I am on a 64-bit kernel on RP3440, RP3410 and A500 where I saw this.
Details?
The ones you sent were 32bit issues (with 1024 bytes frame-size-warning):fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=] arch/parisc/kernel/inventory.c:359:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Helge
Quoted 28 lines
Quoted 27 lines
Helge
[PATCH] parisc: Fix too large frame size warnings
The parisc architecture requires larger stack frames than most other architectures on 32-bit kernels.
Increase the default to 1280 bytes for parisc to avoid warnings indo_sys_poll()andpat_memconfig()functions.Signed-off-by Helge Deller <[email protected]>lib/Kconfig.debug +2
-1@@ -219,7 +219,8 @@ config FRAME_WARN range 0 8192 default 0 if KASAN default 2048 if GCC_PLUGIN_LATENT_ENTROPY - default 1024 if !64BIT + default 1280 if (!64BIT && PARISC) + default 1024 if (!64BIT && !PARISC) default 2048 if 64BIT help Tell gcc to warn at build time for stack frames larger than this.