From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00B67C021A0 for ; Sat, 15 Feb 2025 18:51:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A167280017; Sat, 15 Feb 2025 13:51:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 050C5280016; Sat, 15 Feb 2025 13:51:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E33CD280017; Sat, 15 Feb 2025 13:51:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B8036280016 for ; Sat, 15 Feb 2025 13:51:27 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2F3E2122004 for ; Sat, 15 Feb 2025 18:51:27 +0000 (UTC) X-FDA: 83123072214.21.9E8F647 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by imf17.hostedemail.com (Postfix) with ESMTP id AEF7D4000D for ; Sat, 15 Feb 2025 18:51:24 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OheZfvTP; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1739645485; a=rsa-sha256; cv=none; b=jAXIthU2waN6D7Owb9DHOVHNk7DE0FUglUK0fL/rRLbf4KMyDgsIj3Jg11rR758zoBspIE sQq3hNAdy8AlibXjU8tLTcBIHN/xR+5g39C357eTba4URxq3bR1SwsBs/eIKvDNVc01vgB tQ0uIxLZ711BEw4FLpveM+BMriDKBoI= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OheZfvTP; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1739645485; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=f/j0UT3Njvy49ROgFPalRa5wphnIHM/VZX2OAnM32lc=; b=tmURyrFkeJnY3c7qCjNdxZTeDqXSB3iv+2fM3K5WO7wfnmOGPAG106AOH0+3+EnuSAa1Fo 8hh4pX4dbW+vY+Yv6aS0Qq7lyar9ZmiVNEqcPCvjrFIW7n6eS1bfeJzT+WotMCVAWYpWjK slVjjc0HHaZnxHGKjReT+F7TYFNJFKQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1739645485; x=1771181485; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=63NUTSPkfjclQa984MAUwZu52tLXBqvoqpXpqYwVOIM=; b=OheZfvTPytn/Adi29FjFBLL+xfKvhpkI3NCdfeE5GZmgGMCcscXFbCDD sEPBVBl9d+Kn++H8ggl9JSfMjTSMiP7jFB06D4B9+rffQsgjdWcJnmDie MzHzTJqSGadHeTW8BcMbrVkr6Q3Eisz4bUXTokr6jruuyXBID2FT0B25b ECkdv71LpK5LfnRJhKBlAG/onM4Dddslj5TSBZa1FupEHcLbBTsNlgbGI Qgz8AMNbsJnQb8MTx4WoupXr1M1kMqeJJ+kLQVs2TG2+3/yjgM2vHZub1 SM+34YR0I3/Il0qMwVdh5eML2OmFK90jwDI92MXg2YilO1fBPctQ60F6g A==; X-CSE-ConnectionGUID: ZRy+2/TlTu2O6C44YVZWpg== X-CSE-MsgGUID: vMcEl6NER3Cc7d/m1TTw3Q== X-IronPort-AV: E=McAfee;i="6700,10204,11346"; a="40234737" X-IronPort-AV: E=Sophos;i="6.13,289,1732608000"; d="scan'208";a="40234737" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2025 10:51:23 -0800 X-CSE-ConnectionGUID: F8buz/y/Slq76GWXplLgzQ== X-CSE-MsgGUID: nuYRKGGATeSc1dKW7gmfuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,289,1732608000"; d="scan'208";a="144596655" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 15 Feb 2025 10:51:19 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tjNG0-001B5b-2T; Sat, 15 Feb 2025 18:51:16 +0000 Date: Sun, 16 Feb 2025 02:50:45 +0800 From: kernel test robot To: Tamir Duberstein , David Gow , Petr Mladek , Steven Rostedt , Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , Andrew Morton , Shuah Khan Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Tamir Duberstein Subject: Re: [PATCH v8 3/4] scanf: convert self-test to KUnit Message-ID: <202502160245.KUrryBJR-lkp@intel.com> References: <20250214-scanf-kunit-convert-v8-3-5ea50f95f83c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250214-scanf-kunit-convert-v8-3-5ea50f95f83c@gmail.com> X-Rspamd-Queue-Id: AEF7D4000D X-Stat-Signature: kcwati6hfkfo8ga81fb76jaraqfjgj44 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1739645484-249989 X-HE-Meta: U2FsdGVkX1/sGmLjUkJQpE1l0g+dh0fgoc83p3FZ8wVoBjQBbjGuB0ZRtMLAmSdps+r+vMpMI8tCXvdvyJA+C/FL2RsdmzNaDt/1iM1CbPT4oyAobWDk+IuWyONkT7BcOsK6SR5HA/Qitk8QgiF71ccoRlt+ydSeCtVcWFuqNfCxNpZZxWoEQEjIJxTYxaLRUXgSEvj7IMH/azjScuLy3VmWgaeOgkSdAIiuRNB9j1ZapYZCrw/L4nFQXmEwh6OorRkgGwva0aggLeew370+3CuN/0LzotmFom/lQ8N5tOZ/KhRO7Zfj+3Z6ICIfCL1HGzQA9EpxHBc/f4TFl0yUb0KOJqeja99iUW1lelSLvyYXm5crx6/h+eXKeknmhbazVDU9sD6+VWAqaTRk1gsowvRW/cAas1RoDdBB9iBgYaOYJ5hGKwVWcqe2RqO1gPEmJHOKUqByUGy59KmjDnkfeBWfMllF1ecumX0wjCiBtkyI8YFzYcmobZGO4/CqaTi7rcjXcxsjjOrJAhANSzZPTDi//SkCC0UKOSRGT5E54rIrcwycUstHLARKNbG4AGz5Cao5ZqDdf9PlQHNLPslrC+qDe8Z7Es9mkuXPhiB4exlbuuJAovIR1gTXk37k6FewJAm9Wepa6pWiCOHuCiTxx/1LJQ/eVqEJTzybwXyaEfJFddmhxH4tsaE14jXPwXb4A4I4isS0hOiO2gzxTYKFESOVXqHklwMRH2qB5wwMEE/t/mXGJa0y5pp10M3FFC2/fG+aPHR780MBejKPD1ajq5QDVfMhi2f+95xLy+eBpqwiB9P4Z2TTj3YTamDy5J6AK9XqQn/6UAIQP2z1GMUd08GX0w+E9uhvZ740ITGinbs1LL8ZhplWkKp/T7bZfDaCKyJxq7g/ZK0Og5h5ihPa1yEm4YSwWzDa53Jis903lKHjtm/q3ljQLFrLzInUPIYUXKmvDCWl+2i/F8UIvDS LBJfb3dM PLdFCwbsLKN8QotMW+tixCgkTq3YnhS0E0QxRfWWgp6xG7WqbwHPyYL+f8b0zIQhYzX31wl5VEYA2JNL1TbQ0tWheRvJScCuASubIpRlBAY50wQBto920JWpXBdTz7/YhRFxyGNi5uMF6CxPZr599SkqNu+cAo1JTX++w2IizvWHmPX8JlhYaAmQp0NIqS5Hz3cnokqYraL0mRvbn7RGqVI1nEzFFo+ras3I8+zYMCfHEywJho+N7cG9uRyXZpqTYp1OUxQKFwWEP07EAs7dCSCPmKRR2ByjrGGXvc89kH0HqL8G/eeYZh+4jBiGDavtXDrqFe1CpM9L1eIB4blSFuGe4CTKj3T2wrlJ+ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202502160245.KUrryBJR-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from : 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