public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: avivdaum <aviv.daum@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Christian Brauner <christianvanbrauner@gmail.com>,
	Christian Brauner <brauner@kernel.org>
Subject: [brauner-vfs:vfs-7.1.fat 1/1] fs/fat/fat_test.c:226:13: warning: stack frame size (2648) exceeds limit (1280) in 'fat_time_fat2unix_test'
Date: Wed, 25 Mar 2026 17:41:12 +0800	[thread overview]
Message-ID: <202603251755.4UYY1Rcd-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs-7.1.fat
head:   4bbf3f58e00f8671eb384c7df6983d803058b204
commit: 4bbf3f58e00f8671eb384c7df6983d803058b204 [1/1] fat: add KUnit tests for timestamp conversion helpers
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260325/202603251755.4UYY1Rcd-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/20260325/202603251755.4UYY1Rcd-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/202603251755.4UYY1Rcd-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/fat/fat_test.c:226:13: warning: stack frame size (2648) exceeds limit (1280) in 'fat_time_fat2unix_test' [-Wframe-larger-than]
     226 | static void fat_time_fat2unix_test(struct kunit *test)
         |             ^
>> fs/fat/fat_test.c:249:13: warning: stack frame size (2640) exceeds limit (1280) in 'fat_time_unix2fat_test' [-Wframe-larger-than]
     249 | static void fat_time_unix2fat_test(struct kunit *test)
         |             ^
>> fs/fat/fat_test.c:275:13: warning: stack frame size (2640) exceeds limit (1280) in 'fat_time_unix2fat_clamp_test' [-Wframe-larger-than]
     275 | static void fat_time_unix2fat_clamp_test(struct kunit *test)
         |             ^
>> fs/fat/fat_test.c:300:13: warning: stack frame size (2656) exceeds limit (1280) in 'fat_time_unix2fat_no_csec_test' [-Wframe-larger-than]
     300 | static void fat_time_unix2fat_no_csec_test(struct kunit *test)
         |             ^
>> fs/fat/fat_test.c:322:13: warning: stack frame size (2632) exceeds limit (1280) in 'fat_truncate_atime_test' [-Wframe-larger-than]
     322 | static void fat_truncate_atime_test(struct kunit *test)
         |             ^
   5 warnings generated.


vim +/fat_time_fat2unix_test +226 fs/fat/fat_test.c

b0d4adaf3b3c44 David Gow 2021-04-15  225  
b0d4adaf3b3c44 David Gow 2021-04-15 @226  static void fat_time_fat2unix_test(struct kunit *test)
b0d4adaf3b3c44 David Gow 2021-04-15  227  {
b0d4adaf3b3c44 David Gow 2021-04-15  228  	static struct msdos_sb_info fake_sb;
b0d4adaf3b3c44 David Gow 2021-04-15  229  	struct timespec64 ts;
b0d4adaf3b3c44 David Gow 2021-04-15  230  	struct fat_timestamp_testcase *testcase =
b0d4adaf3b3c44 David Gow 2021-04-15  231  		(struct fat_timestamp_testcase *)test->param_value;
b0d4adaf3b3c44 David Gow 2021-04-15  232  
4bbf3f58e00f86 avivdaum  2026-03-16  233  	fat_test_set_time_offset(&fake_sb, testcase->time_offset);
b0d4adaf3b3c44 David Gow 2021-04-15  234  
b0d4adaf3b3c44 David Gow 2021-04-15  235  	fat_time_fat2unix(&fake_sb, &ts,
b0d4adaf3b3c44 David Gow 2021-04-15  236  			  testcase->time,
b0d4adaf3b3c44 David Gow 2021-04-15  237  			  testcase->date,
b0d4adaf3b3c44 David Gow 2021-04-15  238  			  testcase->cs);
b0d4adaf3b3c44 David Gow 2021-04-15  239  	KUNIT_EXPECT_EQ_MSG(test,
b0d4adaf3b3c44 David Gow 2021-04-15  240  			    testcase->ts.tv_sec,
b0d4adaf3b3c44 David Gow 2021-04-15  241  			    ts.tv_sec,
b0d4adaf3b3c44 David Gow 2021-04-15  242  			    "Timestamp mismatch (seconds)\n");
b0d4adaf3b3c44 David Gow 2021-04-15  243  	KUNIT_EXPECT_EQ_MSG(test,
b0d4adaf3b3c44 David Gow 2021-04-15  244  			    testcase->ts.tv_nsec,
b0d4adaf3b3c44 David Gow 2021-04-15  245  			    ts.tv_nsec,
b0d4adaf3b3c44 David Gow 2021-04-15  246  			    "Timestamp mismatch (nanoseconds)\n");
b0d4adaf3b3c44 David Gow 2021-04-15  247  }
b0d4adaf3b3c44 David Gow 2021-04-15  248  
b0d4adaf3b3c44 David Gow 2021-04-15 @249  static void fat_time_unix2fat_test(struct kunit *test)
b0d4adaf3b3c44 David Gow 2021-04-15  250  {
b0d4adaf3b3c44 David Gow 2021-04-15  251  	static struct msdos_sb_info fake_sb;
b0d4adaf3b3c44 David Gow 2021-04-15  252  	__le16 date, time;
b0d4adaf3b3c44 David Gow 2021-04-15  253  	u8 cs;
b0d4adaf3b3c44 David Gow 2021-04-15  254  	struct fat_timestamp_testcase *testcase =
b0d4adaf3b3c44 David Gow 2021-04-15  255  		(struct fat_timestamp_testcase *)test->param_value;
b0d4adaf3b3c44 David Gow 2021-04-15  256  
4bbf3f58e00f86 avivdaum  2026-03-16  257  	fat_test_set_time_offset(&fake_sb, testcase->time_offset);
b0d4adaf3b3c44 David Gow 2021-04-15  258  
b0d4adaf3b3c44 David Gow 2021-04-15  259  	fat_time_unix2fat(&fake_sb, &testcase->ts,
b0d4adaf3b3c44 David Gow 2021-04-15  260  			  &time, &date, &cs);
b0d4adaf3b3c44 David Gow 2021-04-15  261  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  262  			    testcase->time,
4bbf3f58e00f86 avivdaum  2026-03-16  263  			    time,
b0d4adaf3b3c44 David Gow 2021-04-15  264  			    "Time mismatch\n");
b0d4adaf3b3c44 David Gow 2021-04-15  265  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  266  			    testcase->date,
4bbf3f58e00f86 avivdaum  2026-03-16  267  			    date,
b0d4adaf3b3c44 David Gow 2021-04-15  268  			    "Date mismatch\n");
b0d4adaf3b3c44 David Gow 2021-04-15  269  	KUNIT_EXPECT_EQ_MSG(test,
b0d4adaf3b3c44 David Gow 2021-04-15  270  			    testcase->cs,
b0d4adaf3b3c44 David Gow 2021-04-15  271  			    cs,
b0d4adaf3b3c44 David Gow 2021-04-15  272  			    "Centisecond mismatch\n");
b0d4adaf3b3c44 David Gow 2021-04-15  273  }
b0d4adaf3b3c44 David Gow 2021-04-15  274  
4bbf3f58e00f86 avivdaum  2026-03-16 @275  static void fat_time_unix2fat_clamp_test(struct kunit *test)
4bbf3f58e00f86 avivdaum  2026-03-16  276  {
4bbf3f58e00f86 avivdaum  2026-03-16  277  	static struct msdos_sb_info fake_sb;
4bbf3f58e00f86 avivdaum  2026-03-16  278  	__le16 date, time;
4bbf3f58e00f86 avivdaum  2026-03-16  279  	u8 cs;
4bbf3f58e00f86 avivdaum  2026-03-16  280  	struct fat_unix2fat_clamp_testcase *testcase =
4bbf3f58e00f86 avivdaum  2026-03-16  281  		(struct fat_unix2fat_clamp_testcase *)test->param_value;
4bbf3f58e00f86 avivdaum  2026-03-16  282  
4bbf3f58e00f86 avivdaum  2026-03-16  283  	fat_test_set_time_offset(&fake_sb, testcase->time_offset);
4bbf3f58e00f86 avivdaum  2026-03-16  284  
4bbf3f58e00f86 avivdaum  2026-03-16  285  	fat_time_unix2fat(&fake_sb, &testcase->ts, &time, &date, &cs);
4bbf3f58e00f86 avivdaum  2026-03-16  286  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  287  			    testcase->time,
4bbf3f58e00f86 avivdaum  2026-03-16  288  			    time,
4bbf3f58e00f86 avivdaum  2026-03-16  289  			    "Clamped time mismatch\n");
4bbf3f58e00f86 avivdaum  2026-03-16  290  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  291  			    testcase->date,
4bbf3f58e00f86 avivdaum  2026-03-16  292  			    date,
4bbf3f58e00f86 avivdaum  2026-03-16  293  			    "Clamped date mismatch\n");
4bbf3f58e00f86 avivdaum  2026-03-16  294  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  295  			    testcase->cs,
4bbf3f58e00f86 avivdaum  2026-03-16  296  			    cs,
4bbf3f58e00f86 avivdaum  2026-03-16  297  			    "Clamped centisecond mismatch\n");
4bbf3f58e00f86 avivdaum  2026-03-16  298  }
4bbf3f58e00f86 avivdaum  2026-03-16  299  
4bbf3f58e00f86 avivdaum  2026-03-16 @300  static void fat_time_unix2fat_no_csec_test(struct kunit *test)
4bbf3f58e00f86 avivdaum  2026-03-16  301  {
4bbf3f58e00f86 avivdaum  2026-03-16  302  	static struct msdos_sb_info fake_sb;
4bbf3f58e00f86 avivdaum  2026-03-16  303  	struct timespec64 ts = {
4bbf3f58e00f86 avivdaum  2026-03-16  304  		.tv_sec = 946684799LL,
4bbf3f58e00f86 avivdaum  2026-03-16  305  		.tv_nsec = 0L,
4bbf3f58e00f86 avivdaum  2026-03-16  306  	};
4bbf3f58e00f86 avivdaum  2026-03-16  307  	__le16 date, time;
4bbf3f58e00f86 avivdaum  2026-03-16  308  
4bbf3f58e00f86 avivdaum  2026-03-16  309  	fat_test_set_time_offset(&fake_sb, 0);
4bbf3f58e00f86 avivdaum  2026-03-16  310  
4bbf3f58e00f86 avivdaum  2026-03-16  311  	fat_time_unix2fat(&fake_sb, &ts, &time, &date, NULL);
4bbf3f58e00f86 avivdaum  2026-03-16  312  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  313  			    49021,
4bbf3f58e00f86 avivdaum  2026-03-16  314  			    le16_to_cpu(time),
4bbf3f58e00f86 avivdaum  2026-03-16  315  			    "Time mismatch without centiseconds\n");
4bbf3f58e00f86 avivdaum  2026-03-16  316  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  317  			    10143,
4bbf3f58e00f86 avivdaum  2026-03-16  318  			    le16_to_cpu(date),
4bbf3f58e00f86 avivdaum  2026-03-16  319  			    "Date mismatch without centiseconds\n");
4bbf3f58e00f86 avivdaum  2026-03-16  320  }
4bbf3f58e00f86 avivdaum  2026-03-16  321  
4bbf3f58e00f86 avivdaum  2026-03-16 @322  static void fat_truncate_atime_test(struct kunit *test)
4bbf3f58e00f86 avivdaum  2026-03-16  323  {
4bbf3f58e00f86 avivdaum  2026-03-16  324  	static struct msdos_sb_info fake_sb;
4bbf3f58e00f86 avivdaum  2026-03-16  325  	struct timespec64 actual;
4bbf3f58e00f86 avivdaum  2026-03-16  326  	struct fat_truncate_atime_testcase *testcase =
4bbf3f58e00f86 avivdaum  2026-03-16  327  		(struct fat_truncate_atime_testcase *)test->param_value;
4bbf3f58e00f86 avivdaum  2026-03-16  328  
4bbf3f58e00f86 avivdaum  2026-03-16  329  	fat_test_set_time_offset(&fake_sb, testcase->time_offset);
4bbf3f58e00f86 avivdaum  2026-03-16  330  
4bbf3f58e00f86 avivdaum  2026-03-16  331  	actual = fat_truncate_atime(&fake_sb, &testcase->ts);
4bbf3f58e00f86 avivdaum  2026-03-16  332  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  333  			    testcase->expected.tv_sec,
4bbf3f58e00f86 avivdaum  2026-03-16  334  			    actual.tv_sec,
4bbf3f58e00f86 avivdaum  2026-03-16  335  			    "Atime truncation seconds mismatch\n");
4bbf3f58e00f86 avivdaum  2026-03-16  336  	KUNIT_EXPECT_EQ_MSG(test,
4bbf3f58e00f86 avivdaum  2026-03-16  337  			    testcase->expected.tv_nsec,
4bbf3f58e00f86 avivdaum  2026-03-16  338  			    actual.tv_nsec,
4bbf3f58e00f86 avivdaum  2026-03-16  339  			    "Atime truncation nanoseconds mismatch\n");
4bbf3f58e00f86 avivdaum  2026-03-16  340  }
4bbf3f58e00f86 avivdaum  2026-03-16  341  

:::::: The code at line 226 was first introduced by commit
:::::: b0d4adaf3b3c4402d9c3b6186e02aa1e4f7985cd fat: Add KUnit tests for checksums and timestamps

:::::: TO: David Gow <davidgow@google.com>
:::::: CC: Shuah Khan <skhan@linuxfoundation.org>

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

                 reply	other threads:[~2026-03-25  9:42 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=202603251755.4UYY1Rcd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aviv.daum@gmail.com \
    --cc=brauner@kernel.org \
    --cc=christianvanbrauner@gmail.com \
    --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