linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v8 3/4] scanf: convert self-test to KUnit
       [not found] <20250214-scanf-kunit-convert-v8-3-5ea50f95f83c@gmail.com>
@ 2025-02-15 18:50 ` kernel test robot
  2025-02-15 19:52   ` Tamir Duberstein
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2025-02-15 18:50 UTC (permalink / raw)
  To: Tamir Duberstein, David Gow, Petr Mladek, Steven Rostedt,
	Andy Shevchenko, Rasmus Villemoes, Sergey Senozhatsky,
	Andrew Morton, Shuah Khan
  Cc: oe-kbuild-all, Linux Memory Management List, Geert Uytterhoeven,
	linux-kernel, linux-kselftest, Tamir Duberstein

Hi Tamir,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 7b7a883c7f4de1ee5040bd1c32aabaafde54d209]

url:    https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/scanf-implicate-test-line-in-failure-messages/20250215-002302
base:   7b7a883c7f4de1ee5040bd1c32aabaafde54d209
patch link:    https://lore.kernel.org/r/20250214-scanf-kunit-convert-v8-3-5ea50f95f83c%40gmail.com
patch subject: [PATCH v8 3/4] scanf: convert self-test to KUnit
config: sh-randconfig-002-20250216 (https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-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/202502160245.KUrryBJR-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from <command-line>:
   lib/tests/scanf_kunit.c: In function 'numbers_list_ll':
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:390:9: note: in expansion of macro 'numbers_list_8'
     390 |         numbers_list_8(unsigned long long, "%llu",   delim, "llu", check_ull);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:391:9: note: in expansion of macro 'numbers_list_8'
     391 |         numbers_list_8(long long,          "%lld",   delim, "lld", check_ll);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:392:9: note: in expansion of macro 'numbers_list_8'
     392 |         numbers_list_8(long long,          "%lld",   delim, "lli", check_ll);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:393:9: note: in expansion of macro 'numbers_list_8'
     393 |         numbers_list_8(unsigned long long, "%llx",   delim, "llx", check_ull);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:394:9: note: in expansion of macro 'numbers_list_8'
     394 |         numbers_list_8(unsigned long long, "0x%llx", delim, "llx", check_ull);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:395:9: note: in expansion of macro 'numbers_list_8'
     395 |         numbers_list_8(long long,          "0x%llx", delim, "lli", check_ll);
         |         ^~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c: In function 'numbers_list_l':
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_l' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:400:9: note: in expansion of macro 'numbers_list_8'
     400 |         numbers_list_8(unsigned long,      "%lu",    delim, "lu", check_ulong);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_l' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:401:9: note: in expansion of macro 'numbers_list_8'
     401 |         numbers_list_8(long,               "%ld",    delim, "ld", check_long);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_l' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:402:9: note: in expansion of macro 'numbers_list_8'
     402 |         numbers_list_8(long,               "%ld",    delim, "li", check_long);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_l' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:403:9: note: in expansion of macro 'numbers_list_8'
     403 |         numbers_list_8(unsigned long,      "%lx",    delim, "lx", check_ulong);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_l' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:404:9: note: in expansion of macro 'numbers_list_8'
     404 |         numbers_list_8(unsigned long,      "0x%lx",  delim, "lx", check_ulong);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_l' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:405:9: note: in expansion of macro 'numbers_list_8'
     405 |         numbers_list_8(long,               "0x%lx",  delim, "li", check_long);
         |         ^~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c: In function 'numbers_list_d':
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_d' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:410:9: note: in expansion of macro 'numbers_list_8'
     410 |         numbers_list_8(unsigned int,       "%u",     delim, "u", check_uint);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_d' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:411:9: note: in expansion of macro 'numbers_list_8'
     411 |         numbers_list_8(int,                "%d",     delim, "d", check_int);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_d' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:412:9: note: in expansion of macro 'numbers_list_8'
     412 |         numbers_list_8(int,                "%d",     delim, "i", check_int);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_d' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:413:9: note: in expansion of macro 'numbers_list_8'
     413 |         numbers_list_8(unsigned int,       "%x",     delim, "x", check_uint);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_d' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:414:9: note: in expansion of macro 'numbers_list_8'
     414 |         numbers_list_8(unsigned int,       "0x%x",   delim, "x", check_uint);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_d' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:415:9: note: in expansion of macro 'numbers_list_8'
     415 |         numbers_list_8(int,                "0x%x",   delim, "i", check_int);
         |         ^~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c: In function 'numbers_list_h':
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_h' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:420:9: note: in expansion of macro 'numbers_list_8'
     420 |         numbers_list_8(unsigned short,     "%hu",    delim, "hu", check_ushort);
         |         ^~~~~~~~~~~~~~
>> include/linux/compiler.h:197:61: warning: function 'numbers_list_h' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:421:9: note: in expansion of macro 'numbers_list_8'
     421 |         numbers_list_8(short,              "%hd",    delim, "hd", check_short);
         |         ^~~~~~~~~~~~~~
   include/linux/compiler.h:197:61: warning: function 'numbers_list_h' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:422:9: note: in expansion of macro 'numbers_list_8'
     422 |         numbers_list_8(short,              "%hd",    delim, "hi", check_short);
         |         ^~~~~~~~~~~~~~
   include/linux/compiler.h:197:61: warning: function 'numbers_list_h' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                             ^
   include/linux/compiler_types.h:522:23: note: in definition of macro '__compiletime_assert'
     522 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert'
     542 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:9: note: in expansion of macro 'BUILD_BUG_ON'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |         ^~~~~~~~~~~~
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   lib/tests/scanf_kunit.c:333:22: note: in expansion of macro 'ARRAY_SIZE'
     333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);                                     \
         |                      ^~~~~~~~~~
   lib/tests/scanf_kunit.c:356:9: note: in expansion of macro 'test_array_8'
     356 |         test_array_8(fn, expect, test_buffer, fmt_buffer, result);              \
         |         ^~~~~~~~~~~~
   lib/tests/scanf_kunit.c:423:9: note: in expansion of macro 'numbers_list_8'
     423 |         numbers_list_8(unsigned short,     "%hx",    delim, "hx", check_ushort);
         |         ^~~~~~~~~~~~~~
   include/linux/compiler.h:197:61: warning: function 'numbers_list_h' might be a candidate for 'gnu_scanf' format attribute [-Wsuggest-attribute=format]
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))


vim +197 include/linux/compiler.h

230fa253df6352a Christian Borntraeger 2014-11-25  193  
cb7380de9e4cbc9 Kees Cook             2025-02-05  194  #ifdef __CHECKER__
cb7380de9e4cbc9 Kees Cook             2025-02-05  195  #define __BUILD_BUG_ON_ZERO_MSG(e, msg) (0)
cb7380de9e4cbc9 Kees Cook             2025-02-05  196  #else /* __CHECKER__ */
cb7380de9e4cbc9 Kees Cook             2025-02-05 @197  #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
cb7380de9e4cbc9 Kees Cook             2025-02-05  198  #endif /* __CHECKER__ */
cb7380de9e4cbc9 Kees Cook             2025-02-05  199  

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v8 3/4] scanf: convert self-test to KUnit
  2025-02-15 18:50 ` [PATCH v8 3/4] scanf: convert self-test to KUnit kernel test robot
@ 2025-02-15 19:52   ` Tamir Duberstein
  2025-02-16 20:22     ` Andy Shevchenko
  2025-03-05  9:47     ` Petr Mladek
  0 siblings, 2 replies; 6+ messages in thread
From: Tamir Duberstein @ 2025-02-15 19:52 UTC (permalink / raw)
  To: kernel test robot
  Cc: David Gow, Petr Mladek, Steven Rostedt, Andy Shevchenko,
	Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, Shuah Khan,
	oe-kbuild-all, Linux Memory Management List, Geert Uytterhoeven,
	linux-kernel, linux-kselftest

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

On Sat, Feb 15, 2025 at 1:51 PM kernel test robot <lkp@intel.com> wrote:
>
> Hi Tamir,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on 7b7a883c7f4de1ee5040bd1c32aabaafde54d209]
>
> url:
https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/scanf-implicate-test-line-in-failure-messages/20250215-002302
> base:   7b7a883c7f4de1ee5040bd1c32aabaafde54d209
> patch link:
https://lore.kernel.org/r/20250214-scanf-kunit-convert-v8-3-5ea50f95f83c%40gmail.com
> patch subject: [PATCH v8 3/4] scanf: convert self-test to KUnit
> config: sh-randconfig-002-20250216 (
https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-lkp@intel.com/config
)
> compiler: sh4-linux-gcc (GCC) 14.2.0
> reproduce (this is a W=1 build): (
https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-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/202502160245.KUrryBJR-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
>    In file included from <command-line>:
>    lib/tests/scanf_kunit.c: In function 'numbers_list_ll':
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:390:9: note: in expansion of macro
'numbers_list_8'
>      390 |         numbers_list_8(unsigned long long, "%llu",   delim,
"llu", check_ull);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:391:9: note: in expansion of macro
'numbers_list_8'
>      391 |         numbers_list_8(long long,          "%lld",   delim,
"lld", check_ll);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:392:9: note: in expansion of macro
'numbers_list_8'
>      392 |         numbers_list_8(long long,          "%lld",   delim,
"lli", check_ll);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:393:9: note: in expansion of macro
'numbers_list_8'
>      393 |         numbers_list_8(unsigned long long, "%llx",   delim,
"llx", check_ull);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:394:9: note: in expansion of macro
'numbers_list_8'
>      394 |         numbers_list_8(unsigned long long, "0x%llx", delim,
"llx", check_ull);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:395:9: note: in expansion of macro
'numbers_list_8'
>      395 |         numbers_list_8(long long,          "0x%llx", delim,
"lli", check_ll);
>          |         ^~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c: In function 'numbers_list_l':
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_l'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:400:9: note: in expansion of macro
'numbers_list_8'
>      400 |         numbers_list_8(unsigned long,      "%lu",    delim,
"lu", check_ulong);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_l'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:401:9: note: in expansion of macro
'numbers_list_8'
>      401 |         numbers_list_8(long,               "%ld",    delim,
"ld", check_long);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_l'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:402:9: note: in expansion of macro
'numbers_list_8'
>      402 |         numbers_list_8(long,               "%ld",    delim,
"li", check_long);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_l'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:403:9: note: in expansion of macro
'numbers_list_8'
>      403 |         numbers_list_8(unsigned long,      "%lx",    delim,
"lx", check_ulong);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_l'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:404:9: note: in expansion of macro
'numbers_list_8'
>      404 |         numbers_list_8(unsigned long,      "0x%lx",  delim,
"lx", check_ulong);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_l'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:405:9: note: in expansion of macro
'numbers_list_8'
>      405 |         numbers_list_8(long,               "0x%lx",  delim,
"li", check_long);
>          |         ^~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c: In function 'numbers_list_d':
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_d'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:410:9: note: in expansion of macro
'numbers_list_8'
>      410 |         numbers_list_8(unsigned int,       "%u",     delim,
"u", check_uint);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_d'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:411:9: note: in expansion of macro
'numbers_list_8'
>      411 |         numbers_list_8(int,                "%d",     delim,
"d", check_int);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_d'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:412:9: note: in expansion of macro
'numbers_list_8'
>      412 |         numbers_list_8(int,                "%d",     delim,
"i", check_int);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_d'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:413:9: note: in expansion of macro
'numbers_list_8'
>      413 |         numbers_list_8(unsigned int,       "%x",     delim,
"x", check_uint);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_d'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:414:9: note: in expansion of macro
'numbers_list_8'
>      414 |         numbers_list_8(unsigned int,       "0x%x",   delim,
"x", check_uint);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_d'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:415:9: note: in expansion of macro
'numbers_list_8'
>      415 |         numbers_list_8(int,                "0x%x",   delim,
"i", check_int);
>          |         ^~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c: In function 'numbers_list_h':
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_h'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:420:9: note: in expansion of macro
'numbers_list_8'
>      420 |         numbers_list_8(unsigned short,     "%hu",    delim,
"hu", check_ushort);
>          |         ^~~~~~~~~~~~~~
> >> include/linux/compiler.h:197:61: warning: function 'numbers_list_h'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:421:9: note: in expansion of macro
'numbers_list_8'
>      421 |         numbers_list_8(short,              "%hd",    delim,
"hd", check_short);
>          |         ^~~~~~~~~~~~~~
>    include/linux/compiler.h:197:61: warning: function 'numbers_list_h'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:422:9: note: in expansion of macro
'numbers_list_8'
>      422 |         numbers_list_8(short,              "%hd",    delim,
"hi", check_short);
>          |         ^~~~~~~~~~~~~~
>    include/linux/compiler.h:197:61: warning: function 'numbers_list_h'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>          |                                                             ^
>    include/linux/compiler_types.h:522:23: note: in definition of macro
'__compiletime_assert'
>      522 |                 if (!(condition))
         \
>          |                       ^~~~~~~~~
>    include/linux/compiler_types.h:542:9: note: in expansion of macro
'_compiletime_assert'
>      542 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
>          |         ^~~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:9: note: in expansion of macro
'BUILD_BUG_ON'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |         ^~~~~~~~~~~~
>    include/linux/compiler.h:202:33: note: in expansion of macro
'__BUILD_BUG_ON_ZERO_MSG'
>      202 | #define __must_be_array(a)
__BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
>          |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:59: note: in expansion of macro
'__must_be_array'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
>          |
 ^~~~~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:333:22: note: in expansion of macro
'ARRAY_SIZE'
>      333 |         BUILD_BUG_ON(ARRAY_SIZE(arr) != 8);
                 \
>          |                      ^~~~~~~~~~
>    lib/tests/scanf_kunit.c:356:9: note: in expansion of macro
'test_array_8'
>      356 |         test_array_8(fn, expect, test_buffer, fmt_buffer,
result);              \
>          |         ^~~~~~~~~~~~
>    lib/tests/scanf_kunit.c:423:9: note: in expansion of macro
'numbers_list_8'
>      423 |         numbers_list_8(unsigned short,     "%hx",    delim,
"hx", check_ushort);
>          |         ^~~~~~~~~~~~~~
>    include/linux/compiler.h:197:61: warning: function 'numbers_list_h'
might be a candidate for 'gnu_scanf' format attribute
[-Wsuggest-attribute=format]
>      197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct
{_Static_assert(!(e), msg);}))
>
>
> vim +197 include/linux/compiler.h
>
> 230fa253df6352a Christian Borntraeger 2014-11-25  193
> cb7380de9e4cbc9 Kees Cook             2025-02-05  194  #ifdef __CHECKER__
> cb7380de9e4cbc9 Kees Cook             2025-02-05  195  #define
__BUILD_BUG_ON_ZERO_MSG(e, msg) (0)
> cb7380de9e4cbc9 Kees Cook             2025-02-05  196  #else /*
__CHECKER__ */
> cb7380de9e4cbc9 Kees Cook             2025-02-05 @197  #define
__BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e),
msg);}))
> cb7380de9e4cbc9 Kees Cook             2025-02-05  198  #endif /*
__CHECKER__ */
> cb7380de9e4cbc9 Kees Cook             2025-02-05  199
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

I am not able to reproduce these warnings with clang 19.1.7. They also
don't obviously make sense to me.

[-- Attachment #2: Type: text/html, Size: 77929 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v8 3/4] scanf: convert self-test to KUnit
  2025-02-15 19:52   ` Tamir Duberstein
@ 2025-02-16 20:22     ` Andy Shevchenko
  2025-02-17 14:29       ` Tamir Duberstein
  2025-03-05  9:47     ` Petr Mladek
  1 sibling, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2025-02-16 20:22 UTC (permalink / raw)
  To: Tamir Duberstein
  Cc: kernel test robot, David Gow, Petr Mladek, Steven Rostedt,
	Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, Shuah Khan,
	oe-kbuild-all, Linux Memory Management List, Geert Uytterhoeven,
	linux-kernel, linux-kselftest

On Sat, Feb 15, 2025 at 02:52:22PM -0500, Tamir Duberstein wrote:
> On Sat, Feb 15, 2025 at 1:51 PM kernel test robot <lkp@intel.com> wrote:

> I am not able to reproduce these warnings with clang 19.1.7. They also
> don't obviously make sense to me.


Please, when reply, remove boielrplate stuff!
I have just wasted a couple of minutes to understand what's going on in the
message that is 2700 lines of text as the reply to the bot message which was
~700 lines.

-- 
With Best Regards,
Andy Shevchenko




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v8 3/4] scanf: convert self-test to KUnit
  2025-02-16 20:22     ` Andy Shevchenko
@ 2025-02-17 14:29       ` Tamir Duberstein
  0 siblings, 0 replies; 6+ messages in thread
From: Tamir Duberstein @ 2025-02-17 14:29 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: kernel test robot, David Gow, Petr Mladek, Steven Rostedt,
	Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, Shuah Khan,
	oe-kbuild-all, Linux Memory Management List, Geert Uytterhoeven,
	linux-kernel, linux-kselftest

On Sun, Feb 16, 2025 at 3:22 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> Please, when reply, remove boielrplate stuff!
> I have just wasted a couple of minutes to understand what's going on in the
> message that is 2700 lines of text as the reply to the bot message which was
> ~700 lines.

My apologies. I forgot what a mess a mobile email client makes.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v8 3/4] scanf: convert self-test to KUnit
  2025-02-15 19:52   ` Tamir Duberstein
  2025-02-16 20:22     ` Andy Shevchenko
@ 2025-03-05  9:47     ` Petr Mladek
  2025-03-05 11:36       ` Tamir Duberstein
  1 sibling, 1 reply; 6+ messages in thread
From: Petr Mladek @ 2025-03-05  9:47 UTC (permalink / raw)
  To: Tamir Duberstein
  Cc: kernel test robot, David Gow, Steven Rostedt, Andy Shevchenko,
	Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, Shuah Khan,
	oe-kbuild-all, Linux Memory Management List, Geert Uytterhoeven,
	linux-kernel, linux-kselftest

On Sat 2025-02-15 14:52:22, Tamir Duberstein wrote:
> On Sat, Feb 15, 2025 at 1:51 PM kernel test robot <lkp@intel.com> wrote:
> >
> > Hi Tamir,
> >
> > kernel test robot noticed the following build warnings:
> >
> > [auto build test WARNING on 7b7a883c7f4de1ee5040bd1c32aabaafde54d209]
> >
> > url:
> https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/scanf-implicate-test-line-in-failure-messages/20250215-002302
> > base:   7b7a883c7f4de1ee5040bd1c32aabaafde54d209
> > patch link:
> https://lore.kernel.org/r/20250214-scanf-kunit-convert-v8-3-5ea50f95f83c%40gmail.com
> > patch subject: [PATCH v8 3/4] scanf: convert self-test to KUnit
> > config: sh-randconfig-002-20250216 (
> https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-lkp@intel.com/config
> )
> > compiler: sh4-linux-gcc (GCC) 14.2.0
> > reproduce (this is a W=1 build): (
> https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-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/202502160245.KUrryBJR-lkp@intel.com/
> >
> > All warnings (new ones prefixed by >>):
> >
> >    In file included from <command-line>:
> >    lib/tests/scanf_kunit.c: In function 'numbers_list_ll':
> > >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
> might be a candidate for 'gnu_scanf' format attribute
> [-Wsuggest-attribute=format]
> 
> I am not able to reproduce these warnings with clang 19.1.7. They also
> don't obviously make sense to me.

I have reproduced the problem with gcc:

$> gcc --version
gcc (SUSE Linux) 14.2.1 20250220 [revision 9ffecde121af883b60bbe60d00425036bc873048]

$> make W=1 lib/test_scanf.ko
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  CC [M]  lib/test_scanf.o
In file included from <command-line>:
lib/test_scanf.c: In function ‘numbers_list_ll’:
./include/linux/compiler.h:197:61: warning: function ‘numbers_list_ll’ might be a candidate for ‘gnu_scanf’ format attribute [-Wsuggest-attribute=format]
  197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
      |                                                             ^
[...]

It seems that it is a regression introduced by the first
patch of this patch set. And the fix is:

diff --git a/lib/test_scanf.c b/lib/test_scanf.c
index d1664e0d0138..e65b10c3dc11 100644
--- a/lib/test_scanf.c
+++ b/lib/test_scanf.c
@@ -27,7 +27,7 @@ static struct rnd_state rnd_state __initdata;
 typedef int (*check_fn)(const char *file, const int line, const void *check_data,
 			const char *string, const char *fmt, int n_args, va_list ap);
 
-static void __scanf(6, 0) __init
+static void __scanf(6, 8) __init
 _test(const char *file, const int line, check_fn fn, const void *check_data, const char *string,
 	const char *fmt, int n_args, ...)
 {

Best Regards,
Petr


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v8 3/4] scanf: convert self-test to KUnit
  2025-03-05  9:47     ` Petr Mladek
@ 2025-03-05 11:36       ` Tamir Duberstein
  0 siblings, 0 replies; 6+ messages in thread
From: Tamir Duberstein @ 2025-03-05 11:36 UTC (permalink / raw)
  To: Petr Mladek
  Cc: kernel test robot, David Gow, Steven Rostedt, Andy Shevchenko,
	Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, Shuah Khan,
	oe-kbuild-all, Linux Memory Management List, Geert Uytterhoeven,
	linux-kernel, linux-kselftest

On Wed, Mar 5, 2025 at 4:47 AM Petr Mladek <pmladek@suse.com> wrote:
>
> On Sat 2025-02-15 14:52:22, Tamir Duberstein wrote:
> > On Sat, Feb 15, 2025 at 1:51 PM kernel test robot <lkp@intel.com> wrote:
> > >
> > > Hi Tamir,
> > >
> > > kernel test robot noticed the following build warnings:
> > >
> > > [auto build test WARNING on 7b7a883c7f4de1ee5040bd1c32aabaafde54d209]
> > >
> > > url:
> > https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/scanf-implicate-test-line-in-failure-messages/20250215-002302
> > > base:   7b7a883c7f4de1ee5040bd1c32aabaafde54d209
> > > patch link:
> > https://lore.kernel.org/r/20250214-scanf-kunit-convert-v8-3-5ea50f95f83c%40gmail.com
> > > patch subject: [PATCH v8 3/4] scanf: convert self-test to KUnit
> > > config: sh-randconfig-002-20250216 (
> > https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-lkp@intel.com/config
> > )
> > > compiler: sh4-linux-gcc (GCC) 14.2.0
> > > reproduce (this is a W=1 build): (
> > https://download.01.org/0day-ci/archive/20250216/202502160245.KUrryBJR-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/202502160245.KUrryBJR-lkp@intel.com/
> > >
> > > All warnings (new ones prefixed by >>):
> > >
> > >    In file included from <command-line>:
> > >    lib/tests/scanf_kunit.c: In function 'numbers_list_ll':
> > > >> include/linux/compiler.h:197:61: warning: function 'numbers_list_ll'
> > might be a candidate for 'gnu_scanf' format attribute
> > [-Wsuggest-attribute=format]
> >
> > I am not able to reproduce these warnings with clang 19.1.7. They also
> > don't obviously make sense to me.
>
> I have reproduced the problem with gcc:
>
> $> gcc --version
> gcc (SUSE Linux) 14.2.1 20250220 [revision 9ffecde121af883b60bbe60d00425036bc873048]
>
> $> make W=1 lib/test_scanf.ko
>   CALL    scripts/checksyscalls.sh
>   DESCEND objtool
>   INSTALL libsubcmd_headers
>   CC [M]  lib/test_scanf.o
> In file included from <command-line>:
> lib/test_scanf.c: In function ‘numbers_list_ll’:
> ./include/linux/compiler.h:197:61: warning: function ‘numbers_list_ll’ might be a candidate for ‘gnu_scanf’ format attribute [-Wsuggest-attribute=format]
>   197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
>       |                                                             ^
> [...]
>
> It seems that it is a regression introduced by the first
> patch of this patch set. And the fix is:
>
> diff --git a/lib/test_scanf.c b/lib/test_scanf.c
> index d1664e0d0138..e65b10c3dc11 100644
> --- a/lib/test_scanf.c
> +++ b/lib/test_scanf.c
> @@ -27,7 +27,7 @@ static struct rnd_state rnd_state __initdata;
>  typedef int (*check_fn)(const char *file, const int line, const void *check_data,
>                         const char *string, const char *fmt, int n_args, va_list ap);
>
> -static void __scanf(6, 0) __init
> +static void __scanf(6, 8) __init
>  _test(const char *file, const int line, check_fn fn, const void *check_data, const char *string,
>         const char *fmt, int n_args, ...)
>  {
>
> Best Regards,
> Petr

Thanks for the review! I'll respin later today unless you let me know otherwise.

Cheers.
Tamir


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-05 19:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20250214-scanf-kunit-convert-v8-3-5ea50f95f83c@gmail.com>
2025-02-15 18:50 ` [PATCH v8 3/4] scanf: convert self-test to KUnit kernel test robot
2025-02-15 19:52   ` Tamir Duberstein
2025-02-16 20:22     ` Andy Shevchenko
2025-02-17 14:29       ` Tamir Duberstein
2025-03-05  9:47     ` Petr Mladek
2025-03-05 11:36       ` Tamir Duberstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox