From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbdIKUQm (ORCPT ); Mon, 11 Sep 2017 16:16:42 -0400 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:42544 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbdIKUQl (ORCPT ); Mon, 11 Sep 2017 16:16:41 -0400 Date: Mon, 11 Sep 2017 23:16:37 +0300 (EEST) From: Meelis Roos To: Helge Deller cc: linux-parisc@vger.kernel.org, Linux Kernel list Subject: Re: fs/select.c:991:1: warning: the frame size of 1032 bytes is larger than 1024 bytes In-Reply-To: <20170911194143.GA17131@ls3530.fritz.box> Message-ID: References: <20170911194143.GA17131@ls3530.fritz.box> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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 > > 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)