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 8A4C6C4828F for ; Sat, 3 Feb 2024 16:23:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A62C26B0071; Sat, 3 Feb 2024 11:23:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A131E6B0072; Sat, 3 Feb 2024 11:23:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 901736B0074; Sat, 3 Feb 2024 11:23:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 80CA16B0071 for ; Sat, 3 Feb 2024 11:23:02 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4F8D5140381 for ; Sat, 3 Feb 2024 16:23:02 +0000 (UTC) X-FDA: 81751011804.21.55D3A10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf10.hostedemail.com (Postfix) with ESMTP id 447CEC0008 for ; Sat, 3 Feb 2024 16:22:59 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="nuwl/6Jl"; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1706977380; a=rsa-sha256; cv=none; b=q4dQkmy323TBMRDT0LOov+k6u8LmuOaMBvhDNwJNx5MV5Fn+2dzDX1TUYVKNPBxRiuK5gX WkmQiL+3qNsUg2n1DGNey2bkP3MZ6KvIAqK8f0cA7pRUHzWn70652O4x9DTapatP4nP+jx b8TJij4urWTae9lmF3zVpWacI5ENiPc= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="nuwl/6Jl"; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1706977380; 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: references:dkim-signature; bh=F7MH/p7T+P+2BZ45D2shKHi+6jFK9cMjK65iUMtXxIs=; b=zWKp084q8dDfjDVudnUdSY71dr2/zy4ddeBZrHNVNzWK4vz3DRkXsBdNRFrGzZAcw7F/t/ iAn3pf5zoiwX+EedIMajs4B8Q/pqYz7con8mBLTo7RP8fubdmAZBExZq5FJK8Bt2OhqODz g6qoCY8Nuh08w/loWzwG6vlLZnIH4BA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706977379; x=1738513379; h=date:from:to:cc:subject:message-id:mime-version; bh=pxfHy6WlUCvJoBkWpv8moVVc5Q8voUSqnXEo2OleG2o=; b=nuwl/6Jl+TMcn2Y7wK7ZnEmHeQXlFTIw/UesfXoGoAlG7csQg5vVTYPz z3WYDx6JUdevrDF0RvJgfzhFOD8BVEv1us5sRcmN41ZokQ/a0T7AuraYF PiV1sI3Om8rTWOgh8ezwBfbM6e+eRYXknVvzAqc6voN20iLZygsMtk1oe 7nknG6Dq/mwqJqrEzd0RWpOiFbaKJmcT8f4CuKJY0EGqIoDVQT1lkPgfM Fq1vz99FrdaYzxQBMGy+xNumDRGGYJ/tl3oWC0Zxmrn2NdCrbsESfakVf qrud0pNcKFTnT+1RVv8FR5VsBU7W7WMVY2flSeOw+fYHEmojqx7S32la3 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10973"; a="489644" X-IronPort-AV: E=Sophos;i="6.05,240,1701158400"; d="scan'208";a="489644" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2024 08:22:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,240,1701158400"; d="scan'208";a="4959592" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by fmviesa003.fm.intel.com with ESMTP; 03 Feb 2024 08:22:56 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rWIn4-0005II-0a; Sat, 03 Feb 2024 16:22:53 +0000 Date: Sun, 4 Feb 2024 00:22:01 +0800 From: kernel test robot To: Ivan Orlov Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Takashi Iwai Subject: [linux-next:master 2558/3789] include/kunit/test.h:528:17: warning: '%s' directive argument is null Message-ID: <202402040001.VSlU8PNJ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 447CEC0008 X-Stat-Signature: pp8w6ejtyaofygcp9bck636r1se5mu51 X-Rspam-User: X-HE-Tag: 1706977379-457441 X-HE-Meta: U2FsdGVkX18skPAvC17MEp581a5amY4Wv2DwJan9M83V2TkHwlgfS6QRSqYUKivYO7onSn5qe6+oOWYbaR7XY9QrIgEnlErUxno/jQLsbnWAM1XrRVKQTA5yZbVL/b+ETgnCOiVF6FBsxOfMCZJdtW31gGDGJGt1oJ+W1qqJlBKdfrVHhr9xR+KyKyQXk+VTuLp39Pgbwy3hE7s09HuJtY3QADqqT8ou6zznmkjctErsHE4dc+jNeDTptbuW61TciNleEVzhy8Lbgr9RKcWUrTTnqF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z1N6z3LIMEXThihhSBMwU53CGd1OMCn/1HGf0HHq7nHPTw5Qj6QuPR8N4QlG744mfKyTWJKjU78dWEJv9dRsHqq+K7KKvadKBHkeKNV9qdPhWvu5cD4I= 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 076d56d74f17e625b3d63cf4743b3d7d02180379 commit: 3e39acf56ededdebd1033349a16b704839b94b28 [2558/3789] ALSA: core: Add sound core KUnit test config: x86_64-randconfig-011-20240203 (https://download.01.org/0day-ci/archive/20240204/202402040001.VSlU8PNJ-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240204/202402040001.VSlU8PNJ-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/202402040001.VSlU8PNJ-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/kunit/assert.h:13, from include/kunit/test.h:12, from sound/core/sound_kunit.c:7: sound/core/sound_kunit.c: In function 'test_card_set_id': include/linux/printk.h:455:44: warning: '%s' directive argument is null [-Wformat-overflow=] 455 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) | ^ include/linux/printk.h:427:17: note: in definition of macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~ include/kunit/test.h:527:17: note: in expansion of macro 'printk' 527 | printk(lvl fmt, ##__VA_ARGS__); \ | ^~~~~~ include/kunit/test.h:533:9: note: in expansion of macro 'kunit_log' 533 | kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt, \ | ^~~~~~~~~ include/kunit/test.h:546:9: note: in expansion of macro 'kunit_printk' 546 | kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ sound/core/sound_kunit.c:259:9: note: in expansion of macro 'kunit_info' 259 | kunit_info(test, "%s", card->id); | ^~~~~~~~~~ In file included from sound/core/sound_kunit.c:7: >> include/kunit/test.h:528:17: warning: '%s' directive argument is null [-Wformat-overflow=] 528 | kunit_log_append((test_or_suite)->log, fmt, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 529 | ##__VA_ARGS__); \ | ~~~~~~~~~~~~~~ include/kunit/test.h:533:9: note: in expansion of macro 'kunit_log' 533 | kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt, \ | ^~~~~~~~~ include/kunit/test.h:546:9: note: in expansion of macro 'kunit_printk' 546 | kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ sound/core/sound_kunit.c:259:9: note: in expansion of macro 'kunit_info' 259 | kunit_info(test, "%s", card->id); | ^~~~~~~~~~ vim +528 include/kunit/test.h e2219db280e3fe Alan Maguire 2020-03-26 484 6d2426b2f258da David Gow 2021-06-24 485 /** 6d2426b2f258da David Gow 2021-06-24 486 * kunit_mark_skipped() - Marks @test_or_suite as skipped 6d2426b2f258da David Gow 2021-06-24 487 * 6d2426b2f258da David Gow 2021-06-24 488 * @test_or_suite: The test context object. 6d2426b2f258da David Gow 2021-06-24 489 * @fmt: A printk() style format string. 6d2426b2f258da David Gow 2021-06-24 490 * 6d2426b2f258da David Gow 2021-06-24 491 * Marks the test as skipped. @fmt is given output as the test status 6d2426b2f258da David Gow 2021-06-24 492 * comment, typically the reason the test was skipped. 6d2426b2f258da David Gow 2021-06-24 493 * 6d2426b2f258da David Gow 2021-06-24 494 * Test execution continues after kunit_mark_skipped() is called. 6d2426b2f258da David Gow 2021-06-24 495 */ 6d2426b2f258da David Gow 2021-06-24 496 #define kunit_mark_skipped(test_or_suite, fmt, ...) \ 6d2426b2f258da David Gow 2021-06-24 497 do { \ 6d2426b2f258da David Gow 2021-06-24 498 WRITE_ONCE((test_or_suite)->status, KUNIT_SKIPPED); \ 6d2426b2f258da David Gow 2021-06-24 499 scnprintf((test_or_suite)->status_comment, \ 6d2426b2f258da David Gow 2021-06-24 500 KUNIT_STATUS_COMMENT_SIZE, \ 6d2426b2f258da David Gow 2021-06-24 501 fmt, ##__VA_ARGS__); \ 6d2426b2f258da David Gow 2021-06-24 502 } while (0) 6d2426b2f258da David Gow 2021-06-24 503 6d2426b2f258da David Gow 2021-06-24 504 /** 6d2426b2f258da David Gow 2021-06-24 505 * kunit_skip() - Marks @test_or_suite as skipped 6d2426b2f258da David Gow 2021-06-24 506 * 6d2426b2f258da David Gow 2021-06-24 507 * @test_or_suite: The test context object. 6d2426b2f258da David Gow 2021-06-24 508 * @fmt: A printk() style format string. 6d2426b2f258da David Gow 2021-06-24 509 * 6d2426b2f258da David Gow 2021-06-24 510 * Skips the test. @fmt is given output as the test status 6d2426b2f258da David Gow 2021-06-24 511 * comment, typically the reason the test was skipped. 6d2426b2f258da David Gow 2021-06-24 512 * 6d2426b2f258da David Gow 2021-06-24 513 * Test execution is halted after kunit_skip() is called. 6d2426b2f258da David Gow 2021-06-24 514 */ 6d2426b2f258da David Gow 2021-06-24 515 #define kunit_skip(test_or_suite, fmt, ...) \ 6d2426b2f258da David Gow 2021-06-24 516 do { \ 6d2426b2f258da David Gow 2021-06-24 517 kunit_mark_skipped((test_or_suite), fmt, ##__VA_ARGS__);\ 6d2426b2f258da David Gow 2021-06-24 518 kunit_try_catch_throw(&((test_or_suite)->try_catch)); \ 6d2426b2f258da David Gow 2021-06-24 519 } while (0) e2219db280e3fe Alan Maguire 2020-03-26 520 e2219db280e3fe Alan Maguire 2020-03-26 521 /* e2219db280e3fe Alan Maguire 2020-03-26 522 * printk and log to per-test or per-suite log buffer. Logging only done e2219db280e3fe Alan Maguire 2020-03-26 523 * if CONFIG_KUNIT_DEBUGFS is 'y'; if it is 'n', no log is allocated/used. e2219db280e3fe Alan Maguire 2020-03-26 524 */ e2219db280e3fe Alan Maguire 2020-03-26 525 #define kunit_log(lvl, test_or_suite, fmt, ...) \ e2219db280e3fe Alan Maguire 2020-03-26 526 do { \ e2219db280e3fe Alan Maguire 2020-03-26 527 printk(lvl fmt, ##__VA_ARGS__); \ 2c6a96dad5797e Rae Moar 2023-03-08 @528 kunit_log_append((test_or_suite)->log, fmt, \ e2219db280e3fe Alan Maguire 2020-03-26 529 ##__VA_ARGS__); \ e2219db280e3fe Alan Maguire 2020-03-26 530 } while (0) e2219db280e3fe Alan Maguire 2020-03-26 531 741a98d022362c Brendan Higgins 2019-09-23 532 #define kunit_printk(lvl, test, fmt, ...) \ c3bba690a26432 Alan Maguire 2020-03-26 533 kunit_log(lvl, test, KUNIT_SUBTEST_INDENT "# %s: " fmt, \ c3bba690a26432 Alan Maguire 2020-03-26 534 (test)->name, ##__VA_ARGS__) 914cc63eea6fbe Brendan Higgins 2019-09-23 535 914cc63eea6fbe Brendan Higgins 2019-09-23 536 /** 914cc63eea6fbe Brendan Higgins 2019-09-23 537 * kunit_info() - Prints an INFO level message associated with @test. 914cc63eea6fbe Brendan Higgins 2019-09-23 538 * 914cc63eea6fbe Brendan Higgins 2019-09-23 539 * @test: The test context object. 914cc63eea6fbe Brendan Higgins 2019-09-23 540 * @fmt: A printk() style format string. 914cc63eea6fbe Brendan Higgins 2019-09-23 541 * 914cc63eea6fbe Brendan Higgins 2019-09-23 542 * Prints an info level message associated with the test suite being run. 914cc63eea6fbe Brendan Higgins 2019-09-23 543 * Takes a variable number of format parameters just like printk(). 914cc63eea6fbe Brendan Higgins 2019-09-23 544 */ 914cc63eea6fbe Brendan Higgins 2019-09-23 545 #define kunit_info(test, fmt, ...) \ 914cc63eea6fbe Brendan Higgins 2019-09-23 @546 kunit_printk(KERN_INFO, test, fmt, ##__VA_ARGS__) 914cc63eea6fbe Brendan Higgins 2019-09-23 547 :::::: The code at line 528 was first introduced by commit :::::: 2c6a96dad5797e57b4cf04101d6c8d5c7a571603 kunit: fix bug of extra newline characters in debugfs logs :::::: TO: Rae Moar :::::: CC: Shuah Khan -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki