mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Al Viro <viro@zeniv.linux.org.uk>
To: kernel test robot <lkp@intel.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Michael Ellerman <mpe@ellerman.id.au>
Subject: Re: fs/buffer.c:2342:1: warning: the frame size of 2056 bytes is larger than 1024 bytes
Date: Sun, 3 Oct 2021 01:27:30 +0000	[thread overview]
Message-ID: <YVkHAlZrL/XycxXX@zeniv-ca.linux.org.uk> (raw)
In-Reply-To: <202110030821.xXVLBESU-lkp@intel.com>

On Sun, Oct 03, 2021 at 08:48:34AM +0800, kernel test robot wrote:
> Hi Christophe,

>         # save the attached .config to linux build tree

>    fs/buffer.c: In function 'block_read_full_page':
> >> fs/buffer.c:2342:1: warning: the frame size of 2056 bytes is larger than 1024 bytes [-Wframe-larger-than=]

fs/buffer.c:2259:       struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE];

Now,
include/linux/buffer_head.h:44:#define MAX_BUF_PER_PAGE (PAGE_SIZE / 512)

so 'arr' in the above is PAGE_SIZE/512 pointers.  From the attached .config,
CONFIG_32BIT=y
and
# CONFIG_PPC_4K_PAGES is not set
# CONFIG_PPC_16K_PAGES is not set
# CONFIG_PPC_64K_PAGES is not set
CONFIG_PPC_256K_PAGES=y
CONFIG_PPC_PAGE_SHIFT=18

IOW, we have 256K/512 pointers, 4 bytes each, which amounts to 2K.  Just in
that array.

The rest of affected functions have similar local arrays...

      reply	other threads:[~2021-10-03  1:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03  0:48 kernel test robot
2021-10-03  1:27 ` Al Viro [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YVkHAlZrL/XycxXX@zeniv-ca.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=christophe.leroy@csgroup.eu \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®