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 4A6DEC04AA9 for ; Wed, 20 Sep 2023 15:47:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9AC86B0185; Wed, 20 Sep 2023 11:47:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4AFC6B0186; Wed, 20 Sep 2023 11:47:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B13606B0187; Wed, 20 Sep 2023 11:47:00 -0400 (EDT) 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 A28086B0185 for ; Wed, 20 Sep 2023 11:47:00 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6C3AF4011D for ; Wed, 20 Sep 2023 15:47:00 +0000 (UTC) X-FDA: 81257404200.10.976A00C Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf28.hostedemail.com (Postfix) with ESMTP id E1F45C0022 for ; Wed, 20 Sep 2023 15:46:57 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YxBiXbin; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 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=1695224818; 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=wEjzW0wjMfIDQWocdA5PKKGm8V+OBifBeSqmCqvcXFc=; b=7476jAARwMU6bQF4BVjvbbeLfSGWZFbr/ksfcgikof/XoN6qfS9R+kDS43CIzSvbIRoN4R gYi8auRq4ueGRl8CHTnyEXbPuv7g3FDR+cOQ5OxxDmBLBkWnrnI6ec6Fsq9v0W8WgiKxRi Qp0rYtR4sv7SNQixi8JiHb99wvMuVDs= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YxBiXbin; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 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=1695224818; a=rsa-sha256; cv=none; b=6daKwE6V1VDhQBWBUeChrp6vML8N+KOXHJUzaP0oR/Np8Lgv9WWT3kPnh3VOfoRfEk0Dfb BBaG561s7GE9b2OfW62lksJv03kL3J6gLfFmENZkFQDLZc11KWSZo8QiqcWBtbpM94ENYJ jN/OEQCXtSNLPpw1HZHkqi86qmEjjjQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695224818; x=1726760818; h=date:from:to:cc:subject:message-id:mime-version; bh=9P55vXbP7nXOfBGiFC3LYPAZl0T5vUxuIOlmf1RldnQ=; b=YxBiXbinsFkFjvK4ioVIG/VOE78j1GPg9JvJHNt3+PwDq3GLN8RkXsJI /uqrWnTK7bm3vdHbCGz0lB/jQzzX6lWjY53xdm0dQlUChAwXItYyxasiK XVtxVhBoWhNwMc2LIvMJOo+sELiK5jVYr9ah25qQJ+XJ1+rU91zT3ClNT r4VpV0U5cyCeggkcIqoreO8u1n/773ww9CYFByLfZv9ItDcpO/oiK7EVK pRIjWmsnBM3WqI2U9uH5lKy4y78enInx+Xg+boNQHEYtASAVxZNAkqYZJ n7TX6aTt2jUscF9ncz1SAN2pMqGMiS7zj/ZqmcZq+NlAUUTfik9LOFa3z w==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="380175558" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="380175558" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 08:46:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="746694765" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="746694765" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 20 Sep 2023 08:46:53 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qizPf-0008tk-22; Wed, 20 Sep 2023 15:46:51 +0000 Date: Wed, 20 Sep 2023 23:46:31 +0800 From: kernel test robot To: Richard Fitzgerald Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Shuah Khan , David Gow Subject: [linux-next:master 5739/6619] lib/kunit/kunit-test.c:565:25: warning: cast from 'void (*)(const void *)' to 'kunit_action_t *' (aka 'void (*)(void *)') converts to incompatible function type Message-ID: <202309202345.yPRVHW8Q-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: E1F45C0022 X-Rspam-User: X-Stat-Signature: 634usfaqqmknqaufpgbj1ky8m3aqnx3w X-Rspamd-Server: rspam01 X-HE-Tag: 1695224817-57205 X-HE-Meta: U2FsdGVkX1/BWgfPey8IinFwKwQhtumQZ+YgzLInFEB7fX+hz6vF3TKv7jPBlQoo5CEdJWwDfW1Fcl267KwiQ2jRaVvtMuzUJXrnQP7jViMusgUTFjJlBRcgk1OmR1UKTHxdtBx6Q2Yz359MVi86E8QUSbCR1XK5n6xRPSq4l9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EObIUsmQ8wP+C7iLnE70Xj385q9w/IhQKKrhDilCj3loKMk4c1D1fpseR1nyqyUeWDU//cuU7OmcCIxQ4lVPsIPHIvlWMfPQC 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 926f75c8a5ab70567eb4c2d82fbc96963313e564 commit: 05e2006ce493cb6fb5e5b4b8317f82754dfa2b1e [5739/6619] kunit: Use string_stream for test log config: hexagon-buildonly-randconfig-r002-20221027 (https://download.01.org/0day-ci/archive/20230920/202309202345.yPRVHW8Q-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309202345.yPRVHW8Q-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/202309202345.yPRVHW8Q-lkp@intel.com/ All warnings (new ones prefixed by >>): >> lib/kunit/kunit-test.c:565:25: warning: cast from 'void (*)(const void *)' to 'kunit_action_t *' (aka 'void (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict] kunit_add_action(test, (kunit_action_t *)kfree, full_log); ^~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +565 lib/kunit/kunit-test.c 545 546 static void kunit_log_test(struct kunit *test) 547 { 548 struct kunit_suite suite; 549 #ifdef CONFIG_KUNIT_DEBUGFS 550 char *full_log; 551 #endif 552 suite.log = kunit_alloc_string_stream(test, GFP_KERNEL); 553 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); 554 string_stream_set_append_newlines(suite.log, true); 555 556 kunit_log(KERN_INFO, test, "put this in log."); 557 kunit_log(KERN_INFO, test, "this too."); 558 kunit_log(KERN_INFO, &suite, "add to suite log."); 559 kunit_log(KERN_INFO, &suite, "along with this."); 560 561 #ifdef CONFIG_KUNIT_DEBUGFS 562 KUNIT_EXPECT_TRUE(test, test->log->append_newlines); 563 564 full_log = string_stream_get_string(test->log); > 565 kunit_add_action(test, (kunit_action_t *)kfree, full_log); 566 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, 567 strstr(full_log, "put this in log.")); 568 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, 569 strstr(full_log, "this too.")); 570 571 full_log = string_stream_get_string(suite.log); 572 kunit_add_action(test, kfree_wrapper, full_log); 573 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, 574 strstr(full_log, "add to suite log.")); 575 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, 576 strstr(full_log, "along with this.")); 577 #else 578 KUNIT_EXPECT_NULL(test, test->log); 579 #endif 580 } 581 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki