public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Codex <jullanggit@proton.me>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [koverstreet-bcachefs:pr/1073 60/62] fs/bcachefs/init/dev.c:2241:12: warning: stack frame size (1088) exceeds limit (1024) in 'bch2_dev_resize_thread'
Date: Wed, 22 Apr 2026 23:20:15 +0800	[thread overview]
Message-ID: <202604222317.Gn6OQEv2-lkp@intel.com> (raw)

tree:   https://github.com/koverstreet/bcachefs pr/1073
head:   d2a62b04dbdf826f75c734329003dbb927941266
commit: a2c5355977eeeff6c78b444746f448b673689cea [60/62] bcachefs: shrink: bound stalled tail detection on reconcile work
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260422/202604222317.Gn6OQEv2-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260422/202604222317.Gn6OQEv2-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/oe-kbuild-all/202604222317.Gn6OQEv2-lkp@intel.com/

All warnings (new ones prefixed by >>):

   fs/bcachefs/init/dev.c:1004:5: warning: stack frame size (1056) exceeds limit (1024) in 'bch2_dev_add' [-Wframe-larger-than]
    1004 | int bch2_dev_add(struct bch_fs *c, const char *path, struct printbuf *err)
         |     ^
>> fs/bcachefs/init/dev.c:2241:12: warning: stack frame size (1088) exceeds limit (1024) in 'bch2_dev_resize_thread' [-Wframe-larger-than]
    2241 | static int bch2_dev_resize_thread(void *arg)
         |            ^
   2 warnings generated.


vim +/bch2_dev_resize_thread +2241 fs/bcachefs/init/dev.c

24a0d1607fa915 Jul Lang 2026-02-17  2240  
557af95f7f9ec3 Codex    2026-04-14 @2241  static int bch2_dev_resize_thread(void *arg)
557af95f7f9ec3 Codex    2026-04-14  2242  {
557af95f7f9ec3 Codex    2026-04-14  2243  	struct bch_dev *ca = arg;
557af95f7f9ec3 Codex    2026-04-14  2244  	struct bch_fs *c = ca->fs;
557af95f7f9ec3 Codex    2026-04-14  2245  	u64 seen_seq = 0;
557af95f7f9ec3 Codex    2026-04-14  2246  
557af95f7f9ec3 Codex    2026-04-14  2247  	set_freezable();
557af95f7f9ec3 Codex    2026-04-14  2248  
557af95f7f9ec3 Codex    2026-04-14  2249  	while (!kthread_should_stop()) {
557af95f7f9ec3 Codex    2026-04-14  2250  		kthread_wait_freezable(kthread_should_stop() ||
557af95f7f9ec3 Codex    2026-04-14  2251  				       bch2_dev_resize_seq(ca) != seen_seq);
557af95f7f9ec3 Codex    2026-04-14  2252  		if (kthread_should_stop())
557af95f7f9ec3 Codex    2026-04-14  2253  			break;
557af95f7f9ec3 Codex    2026-04-14  2254  
557af95f7f9ec3 Codex    2026-04-14  2255  		while (!kthread_should_stop()) {
557af95f7f9ec3 Codex    2026-04-14  2256  			u64 seq = bch2_dev_resize_seq(ca);
557af95f7f9ec3 Codex    2026-04-14  2257  			u64 target = bch2_dev_resize_target(ca);
557af95f7f9ec3 Codex    2026-04-14  2258  			int ret;
557af95f7f9ec3 Codex    2026-04-14  2259  			CLASS(printbuf, err)();
557af95f7f9ec3 Codex    2026-04-14  2260  
557af95f7f9ec3 Codex    2026-04-14  2261  			if (target == ca->mi.nbuckets) {
557af95f7f9ec3 Codex    2026-04-14  2262  				ret = 0;
557af95f7f9ec3 Codex    2026-04-14  2263  			} else if (target > ca->mi.nbuckets) {
557af95f7f9ec3 Codex    2026-04-14  2264  				ret = __bch2_dev_grow(c, ca, target, &err);
557af95f7f9ec3 Codex    2026-04-14  2265  			} else {
557af95f7f9ec3 Codex    2026-04-14  2266  				ret = __bch2_dev_shrink(c, ca, target, seq, &err);
557af95f7f9ec3 Codex    2026-04-14  2267  			}
557af95f7f9ec3 Codex    2026-04-14  2268  
557af95f7f9ec3 Codex    2026-04-14  2269  			if (ret == -EAGAIN)
557af95f7f9ec3 Codex    2026-04-14  2270  				continue;
557af95f7f9ec3 Codex    2026-04-14  2271  
557af95f7f9ec3 Codex    2026-04-14  2272  			if (ret && err.pos)
557af95f7f9ec3 Codex    2026-04-14  2273  				bch_err_dev(ca, "%s", err.buf);
557af95f7f9ec3 Codex    2026-04-14  2274  			else if (ret && ret != -EINTR)
557af95f7f9ec3 Codex    2026-04-14  2275  				bch_err_fn_dev(ca, ret);
557af95f7f9ec3 Codex    2026-04-14  2276  
557af95f7f9ec3 Codex    2026-04-14  2277  			seen_seq = bch2_dev_resize_seq(ca);
557af95f7f9ec3 Codex    2026-04-14  2278  			if (ret == -EINTR)
557af95f7f9ec3 Codex    2026-04-14  2279  				break;
557af95f7f9ec3 Codex    2026-04-14  2280  			if (!bch2_dev_resize_finish(ca, seq, ret))
557af95f7f9ec3 Codex    2026-04-14  2281  				continue;
557af95f7f9ec3 Codex    2026-04-14  2282  			break;
557af95f7f9ec3 Codex    2026-04-14  2283  		}
557af95f7f9ec3 Codex    2026-04-14  2284  	}
557af95f7f9ec3 Codex    2026-04-14  2285  
557af95f7f9ec3 Codex    2026-04-14  2286  	return 0;
557af95f7f9ec3 Codex    2026-04-14  2287  }
557af95f7f9ec3 Codex    2026-04-14  2288  

:::::: The code at line 2241 was first introduced by commit
:::::: 557af95f7f9ec319e6085541199cc4e936a5778b bcachefs: make device resize converge to the latest target

:::::: TO: Codex <jullanggit@proton.me>
:::::: CC: Jul Lang <jullanggit@proton.me>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-04-22 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202604222317.Gn6OQEv2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jullanggit@proton.me \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox