From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [zen:6.7/zen-sauce 8/31] fs/bcachefs/chardev.c:528:1: warning: the frame size of 1056 bytes is larger than 1024 bytes
Date: Wed, 17 Jan 2024 18:42:44 +0800 [thread overview]
Message-ID: <202401171828.NWEcP9pD-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "only Makefile file changed"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: steven@liquorix.net
tree: https://github.com/zen-kernel/zen-kernel 6.7/zen-sauce
head: 01ffb5c93fff64050b2eda359d20f812f62c91c3
commit: 47715d438aa7c28ae732ab8cce27b832e93b6b51 [8/31] ZEN: Disable stack conservation for GCC
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240117/202401171828.NWEcP9pD-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240117/202401171828.NWEcP9pD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202401171828.NWEcP9pD-lkp@intel.com/
All warnings (new ones prefixed by >>):
fs/bcachefs/chardev.c: In function 'bch2_ioctl_dev_usage':
>> fs/bcachefs/chardev.c:528:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
528 | }
| ^
vim +528 fs/bcachefs/chardev.c
1c6fdbd8f2465d Kent Overstreet 2017-03-16 484
22502ac23a2eaa Kent Overstreet 2019-12-16 485 static long bch2_ioctl_dev_usage(struct bch_fs *c,
22502ac23a2eaa Kent Overstreet 2019-12-16 486 struct bch_ioctl_dev_usage __user *user_arg)
22502ac23a2eaa Kent Overstreet 2019-12-16 487 {
22502ac23a2eaa Kent Overstreet 2019-12-16 488 struct bch_ioctl_dev_usage arg;
22502ac23a2eaa Kent Overstreet 2019-12-16 489 struct bch_dev_usage src;
22502ac23a2eaa Kent Overstreet 2019-12-16 490 struct bch_dev *ca;
22502ac23a2eaa Kent Overstreet 2019-12-16 491 unsigned i;
22502ac23a2eaa Kent Overstreet 2019-12-16 492
22502ac23a2eaa Kent Overstreet 2019-12-16 493 if (!test_bit(BCH_FS_STARTED, &c->flags))
22502ac23a2eaa Kent Overstreet 2019-12-16 494 return -EINVAL;
22502ac23a2eaa Kent Overstreet 2019-12-16 495
22502ac23a2eaa Kent Overstreet 2019-12-16 496 if (copy_from_user(&arg, user_arg, sizeof(arg)))
22502ac23a2eaa Kent Overstreet 2019-12-16 497 return -EFAULT;
22502ac23a2eaa Kent Overstreet 2019-12-16 498
22502ac23a2eaa Kent Overstreet 2019-12-16 499 if ((arg.flags & ~BCH_BY_INDEX) ||
22502ac23a2eaa Kent Overstreet 2019-12-16 500 arg.pad[0] ||
22502ac23a2eaa Kent Overstreet 2019-12-16 501 arg.pad[1] ||
22502ac23a2eaa Kent Overstreet 2019-12-16 502 arg.pad[2])
22502ac23a2eaa Kent Overstreet 2019-12-16 503 return -EINVAL;
22502ac23a2eaa Kent Overstreet 2019-12-16 504
22502ac23a2eaa Kent Overstreet 2019-12-16 505 ca = bch2_device_lookup(c, arg.dev, arg.flags);
22502ac23a2eaa Kent Overstreet 2019-12-16 506 if (IS_ERR(ca))
22502ac23a2eaa Kent Overstreet 2019-12-16 507 return PTR_ERR(ca);
22502ac23a2eaa Kent Overstreet 2019-12-16 508
3d080aa52f6c1b Kent Overstreet 2020-07-22 509 src = bch2_dev_usage_read(ca);
22502ac23a2eaa Kent Overstreet 2019-12-16 510
22502ac23a2eaa Kent Overstreet 2019-12-16 511 arg.state = ca->mi.state;
22502ac23a2eaa Kent Overstreet 2019-12-16 512 arg.bucket_size = ca->mi.bucket_size;
22502ac23a2eaa Kent Overstreet 2019-12-16 513 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket;
822835ffeae411 Kent Overstreet 2022-04-01 514 arg.buckets_ec = src.buckets_ec;
22502ac23a2eaa Kent Overstreet 2019-12-16 515
22502ac23a2eaa Kent Overstreet 2019-12-16 516 for (i = 0; i < BCH_DATA_NR; i++) {
822835ffeae411 Kent Overstreet 2022-04-01 517 arg.d[i].buckets = src.d[i].buckets;
822835ffeae411 Kent Overstreet 2022-04-01 518 arg.d[i].sectors = src.d[i].sectors;
822835ffeae411 Kent Overstreet 2022-04-01 519 arg.d[i].fragmented = src.d[i].fragmented;
22502ac23a2eaa Kent Overstreet 2019-12-16 520 }
22502ac23a2eaa Kent Overstreet 2019-12-16 521
22502ac23a2eaa Kent Overstreet 2019-12-16 522 percpu_ref_put(&ca->ref);
22502ac23a2eaa Kent Overstreet 2019-12-16 523
301e0237cadfc7 Dan Carpenter 2023-09-14 524 if (copy_to_user(user_arg, &arg, sizeof(arg)))
301e0237cadfc7 Dan Carpenter 2023-09-14 525 return -EFAULT;
301e0237cadfc7 Dan Carpenter 2023-09-14 526
301e0237cadfc7 Dan Carpenter 2023-09-14 527 return 0;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 @528 }
1c6fdbd8f2465d Kent Overstreet 2017-03-16 529
:::::: The code at line 528 was first introduced by commit
:::::: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit
:::::: TO: Kent Overstreet <kent.overstreet@gmail.com>
:::::: CC: Kent Overstreet <kent.overstreet@linux.dev>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-01-17 10:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 10:42 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-22 8:32 [zen:6.7/zen-sauce 8/31] fs/bcachefs/chardev.c:528:1: warning: the frame size of 1056 bytes is larger than 1024 bytes kernel test robot
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=202401171828.NWEcP9pD-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.