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 4DCCEC433F5 for ; Thu, 24 Feb 2022 15:31:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 99E388D0002; Thu, 24 Feb 2022 10:31:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 925CB8D0001; Thu, 24 Feb 2022 10:31:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C61A8D0002; Thu, 24 Feb 2022 10:31:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id 65E428D0001 for ; Thu, 24 Feb 2022 10:31:48 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 266E82167F for ; Thu, 24 Feb 2022 15:31:48 +0000 (UTC) X-FDA: 79178063496.06.4393D5B Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf22.hostedemail.com (Postfix) with ESMTP id 680DBC000D for ; Thu, 24 Feb 2022 15:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645716706; x=1677252706; h=date:from:to:cc:subject:message-id:mime-version; bh=ohKbLViu2Rv+K9nA7kE7xEdvvYGrACT/Wz0SC7agW4Q=; b=Va0bG/8njySyB4dLNL4vZduM/cS+G8zjPVv1Vk5l8Uey4iRFn6mKl4vA gi86RlcU1UDwFQEwEk2jiHvc2s7QLHZ4SBA+b0PSEpQtig61wgSdXMDm7 IryEw7oof7C5MZzHaWI7IQsj1+vQGw+ORkLwPbWRQ6VvtTA82TIX8seB8 9MQX9hY8ejIa6p65LskClMn2vbf0GCLUw6Sea/luBBGrz3PpWN9h61fFe 6+cmlaks/XUf+HRJKA4widXmuKL1yCQBdYca8r4oqJgt+gsKetP3fksM8 rAdd9TjSUx3wvgLdD7/x3PBMrmRqFoAKiCc28Wg61fQ2bBiUkoq3vxjIC g==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="252453525" X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="252453525" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 07:31:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="607451426" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 24 Feb 2022 07:31:26 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nNG5V-0003FK-Pg; Thu, 24 Feb 2022 15:31:25 +0000 Date: Thu, 24 Feb 2022 23:30:25 +0800 From: kernel test robot To: Kees Cook Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Todd Kjos , Andrew Morton , Linux Memory Management List , Yee Lee Subject: [ammarfaizi2-block:google/android/kernel/common/android12-kiwi-5.10 8861/9999] kernel/kcov.c:296:14: warning: conflicting types for built-in function '__sanitizer_cov_trace_switch'; expected 'void(long long unsigned int, void *)' Message-ID: <202202242354.7zL85dQI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Stat-Signature: ouozcfbm5huqusbwwqfcq8q7gakupi8z X-Rspam-User: Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Va0bG/8n"; spf=none (imf22.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 680DBC000D X-HE-Tag: 1645716706-184463 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-kiwi-5.10 head: b0f8b9f7d23884213c86f388be625777f61fb769 commit: c2985e13ddc87258e98fad13e435129a210092b6 [8861/9999] UPSTREAM: ubsan: enable for all*config builds config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220224/202202242354.7zL85dQI-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/c2985e13ddc87258e98fad13e435129a210092b6 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-kiwi-5.10 git checkout c2985e13ddc87258e98fad13e435129a210092b6 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/kcov.c:296:14: warning: conflicting types for built-in function '__sanitizer_cov_trace_switch'; expected 'void(long long unsigned int, void *)' [-Wbuiltin-declaration-mismatch] 296 | void notrace __sanitizer_cov_trace_switch(u64 val, u64 *cases) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/linkage.h:7, from include/linux/kernel.h:8, from include/asm-generic/bug.h:20, from arch/powerpc/include/asm/bug.h:109, from include/linux/bug.h:5, from arch/powerpc/include/asm/cmpxchg.h:8, from arch/powerpc/include/asm/atomic.h:11, from include/linux/atomic.h:7, from kernel/kcov.c:5: kernel/kcov.c:322:15: warning: conflicting types for built-in function '__sanitizer_cov_trace_switch'; expected 'void(long long unsigned int, void *)' [-Wbuiltin-declaration-mismatch] 322 | EXPORT_SYMBOL(__sanitizer_cov_trace_switch); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/export.h:125:28: note: in definition of macro '___EXPORT_SYMBOL' 125 | extern typeof(sym) sym; \ | ^~~ include/linux/export.h:187:41: note: in expansion of macro '__EXPORT_SYMBOL' 187 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") | ^~~~~~~~~~~~~~~ include/linux/export.h:190:41: note: in expansion of macro '_EXPORT_SYMBOL' 190 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") | ^~~~~~~~~~~~~~ kernel/kcov.c:322:1: note: in expansion of macro 'EXPORT_SYMBOL' 322 | EXPORT_SYMBOL(__sanitizer_cov_trace_switch); | ^~~~~~~~~~~~~ vim +296 kernel/kcov.c ded97d2c2b2c5f Victor Chibotaru 2017-11-17 295 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 @296 void notrace __sanitizer_cov_trace_switch(u64 val, u64 *cases) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 297 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 298 u64 i; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 299 u64 count = cases[0]; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 300 u64 size = cases[1]; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 301 u64 type = KCOV_CMP_CONST; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 302 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 303 switch (size) { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 304 case 8: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 305 type |= KCOV_CMP_SIZE(0); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 306 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 307 case 16: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 308 type |= KCOV_CMP_SIZE(1); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 309 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 310 case 32: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 311 type |= KCOV_CMP_SIZE(2); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 312 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 313 case 64: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 314 type |= KCOV_CMP_SIZE(3); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 315 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 316 default: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 317 return; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 318 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 319 for (i = 0; i < count; i++) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 320 write_comp_data(type, cases[i + 2], val, _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 321 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 322 EXPORT_SYMBOL(__sanitizer_cov_trace_switch); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 323 #endif /* ifdef CONFIG_KCOV_ENABLE_COMPARISONS */ ded97d2c2b2c5f Victor Chibotaru 2017-11-17 324 :::::: The code at line 296 was first introduced by commit :::::: ded97d2c2b2c5f1dcced0bc57133f7753b037dfc kcov: support comparison operands collection :::::: TO: Victor Chibotaru :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org