* fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes
@ 2017-09-11 14:22 Meelis Roos
2017-09-11 19:41 ` Helge Deller
0 siblings, 1 reply; 4+ messages in thread
From: Meelis Roos @ 2017-09-11 14:22 UTC (permalink / raw)
To: linux-parisc, Linux Kernel list
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.o
fs/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=]
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes
2017-09-11 14:22 fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes Meelis Roos
@ 2017-09-11 19:41 ` Helge Deller
2017-09-11 20:16 ` Meelis Roos
0 siblings, 1 reply; 4+ messages in thread
From: Helge Deller @ 2017-09-11 19:41 UTC (permalink / raw)
To: Meelis Roos; +Cc: linux-parisc, Linux Kernel list
* Meelis Roos <mroos@linux.ee>:
> 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.
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index b19c491cbc4e..2689b7c50c52 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -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.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes
2017-09-11 19:41 ` Helge Deller
@ 2017-09-11 20:16 ` Meelis Roos
2017-09-12 22:12 ` Helge Deller
0 siblings, 1 reply; 4+ messages in thread
From: Meelis Roos @ 2017-09-11 20:16 UTC (permalink / raw)
To: Helge Deller; +Cc: linux-parisc, Linux Kernel list
> 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.
>
> 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.
>
> Signed-off-by: Helge Deller <deller@gmx.de>
>
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index b19c491cbc4e..2689b7c50c52 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -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.
>
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes
2017-09-11 20:16 ` Meelis Roos
@ 2017-09-12 22:12 ` Helge Deller
0 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2017-09-12 22:12 UTC (permalink / raw)
To: Meelis Roos; +Cc: linux-parisc, Linux Kernel list
On 11.09.2017 22:16, Meelis Roos wrote:
>> 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
>>
>> 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.
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>>
>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
>> index b19c491cbc4e..2689b7c50c52 100644
>> --- a/lib/Kconfig.debug
>> +++ b/lib/Kconfig.debug
>> @@ -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.
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-12 22:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-11 14:22 fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes Meelis Roos
2017-09-11 19:41 ` Helge Deller
2017-09-11 20:16 ` Meelis Roos
2017-09-12 22:12 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox