All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-review:UPDATE-20201024-140641/David-Gow/fat-Add-KUnit-tests-for-checksums-and-timestamps/20201024-132133 1/1] fs/fat/fat_test.c:180:1: warning: the frame size of 2704 bytes is larger than 1024 bytes
@ 2020-11-02  5:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-02  5:51 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7956 bytes --]

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20201024-140641/David-Gow/fat-Add-KUnit-tests-for-checksums-and-timestamps/20201024-132133
head:   d0fe6397e1095d58588d8ca2fb93b9edf29a352c
commit: d0fe6397e1095d58588d8ca2fb93b9edf29a352c [1/1] fat: Add KUnit tests for checksums and timestamps
config: arc-randconfig-r021-20201030 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/d0fe6397e1095d58588d8ca2fb93b9edf29a352c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20201024-140641/David-Gow/fat-Add-KUnit-tests-for-checksums-and-timestamps/20201024-132133
        git checkout d0fe6397e1095d58588d8ca2fb93b9edf29a352c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:14,
                    from include/kunit/assert.h:13,
                    from include/kunit/test.h:12,
                    from fs/fat/fat_test.c:9:
   fs/fat/fat_test.c: In function 'fat_checksum_test':
   include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
      18 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
         |                            ^~
   include/kunit/test.h:748:9: note: in expansion of macro '__typecheck'
     748 |  ((void)__typecheck(__left, __right));           \
         |         ^~~~~~~~~~~
   include/kunit/test.h:772:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
     772 |  KUNIT_BASE_BINARY_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:861:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
     861 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:871:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
     871 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:1234:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
    1234 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fat/fat_test.c:16:2: note: in expansion of macro 'KUNIT_EXPECT_EQ'
      16 |  KUNIT_EXPECT_EQ(test, fat_checksum("VMLINUX    "), 44);
         |  ^~~~~~~~~~~~~~~
   include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
      18 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
         |                            ^~
   include/kunit/test.h:748:9: note: in expansion of macro '__typecheck'
     748 |  ((void)__typecheck(__left, __right));           \
         |         ^~~~~~~~~~~
   include/kunit/test.h:772:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
     772 |  KUNIT_BASE_BINARY_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:861:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
     861 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:871:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
     871 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:1234:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
    1234 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fat/fat_test.c:18:2: note: in expansion of macro 'KUNIT_EXPECT_EQ'
      18 |  KUNIT_EXPECT_EQ(test, fat_checksum("README  TXT"), 115);
         |  ^~~~~~~~~~~~~~~
   include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
      18 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
         |                            ^~
   include/kunit/test.h:748:9: note: in expansion of macro '__typecheck'
     748 |  ((void)__typecheck(__left, __right));           \
         |         ^~~~~~~~~~~
   include/kunit/test.h:772:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
     772 |  KUNIT_BASE_BINARY_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:861:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
     861 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:871:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
     871 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kunit/test.h:1234:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
    1234 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fat/fat_test.c:20:2: note: in expansion of macro 'KUNIT_EXPECT_EQ'
      20 |  KUNIT_EXPECT_EQ(test, fat_checksum("ABCDEFGHA  "), 98);
         |  ^~~~~~~~~~~~~~~
   fs/fat/fat_test.c: At top level:
   fs/fat/fat_test.c:33:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
      33 | const static struct fat_timestamp_testcase time_test_cases[] = {
         | ^~~~~
   fs/fat/fat_test.c: In function 'fat_time_unix2fat_test':
   fs/fat/fat_test.c:162:31: warning: passing argument 2 of 'fat_time_unix2fat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     162 |   fat_time_unix2fat(&fake_sb, &time_test_cases[i].ts,
         |                               ^~~~~~~~~~~~~~~~~~~~~~
   In file included from fs/fat/fat_test.c:11:
   fs/fat/fat.h:445:77: note: expected 'struct timespec64 *' but argument is of type 'const struct timespec64 *'
     445 | extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts,
         |                                                          ~~~~~~~~~~~~~~~~~~~^~
>> fs/fat/fat_test.c:180:1: warning: the frame size of 2704 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     180 | }
         | ^
   fs/fat/fat_test.c: In function 'fat_time_fat2unix_test':
   fs/fat/fat_test.c:149:1: warning: the frame size of 2700 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     149 | }
         | ^

vim +180 fs/fat/fat_test.c

   150	
   151	static void fat_time_unix2fat_test(struct kunit *test)
   152	{
   153		struct msdos_sb_info fake_sb;
   154		int i;
   155		__le16 date, time;
   156		u8 cs;
   157	
   158		for (i = 0; i < ARRAY_SIZE(time_test_cases); ++i) {
   159			fake_sb.options.tz_set = 1;
   160			fake_sb.options.time_offset = time_test_cases[i].time_offset;
   161	
   162			fat_time_unix2fat(&fake_sb, &time_test_cases[i].ts,
   163					  &time, &date, &cs);
   164			KUNIT_EXPECT_EQ_MSG(test,
   165					    time_test_cases[i].time,
   166					    time,
   167					    "Time mismatch in case \"%s\"\n",
   168					    time_test_cases[i].name);
   169			KUNIT_EXPECT_EQ_MSG(test,
   170					    time_test_cases[i].date,
   171					    date,
   172					    "Date mismatch in case \"%s\"\n",
   173					    time_test_cases[i].name);
   174			KUNIT_EXPECT_EQ_MSG(test,
   175					    time_test_cases[i].cs,
   176					    cs,
   177					    "Centisecond mismatch in case \"%s\"\n",
   178					    time_test_cases[i].name);
   179		}
 > 180	}
   181	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30790 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-02  5:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02  5:51 [linux-review:UPDATE-20201024-140641/David-Gow/fat-Add-KUnit-tests-for-checksums-and-timestamps/20201024-132133 1/1] fs/fat/fat_test.c:180:1: warning: the frame size of 2704 bytes is larger than 1024 bytes kernel test robot

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.