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 E696DC54EE9 for ; Tue, 20 Sep 2022 03:15:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6F5798000B; Mon, 19 Sep 2022 23:15:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 67E5C80007; Mon, 19 Sep 2022 23:15:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 482798000B; Mon, 19 Sep 2022 23:15:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 2642080007 for ; Mon, 19 Sep 2022 23:15:01 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 03A771A1CAD for ; Tue, 20 Sep 2022 03:15:00 +0000 (UTC) X-FDA: 79930997202.01.39E36BD Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf12.hostedemail.com (Postfix) with ESMTP id 4F8604001B for ; Tue, 20 Sep 2022 03:15:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663643700; x=1695179700; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=noeQyLdjBrKJQycFgfbpDL26zbno8W35OivxmiAO9zE=; b=SOj/jU73NrX0AlsP8jJbOE8yYWgTh60Ro7+mlCp03PmxrC3sD8BszlPG oDq9Nl2Ram9LJjV/ZT8+g07WqV6Y+qTknFzu+SHeTDeeOY6m5DVu5DiC6 fVKhrCC6WiNyOYex2Z3SiWrSlZNPMfzxPd7aDeK2drxXbqWHzbZFyPeGg 1whS6sNbcn4zqW6hxdiEB8W0eYn3e1YFrshvkrZqdwmheuoItJ5V/yVhE xnIaWELueZo5w8rVwgPW4Zg0hNeG0xjh4Cw08AP9wA3NZOsr8+ddzNkVB 3gm0qF/3b/ohfhr2f9lQjCMInlGhflIWeWA708I6Pk0vIaF40DjmqPg/6 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="298308757" X-IronPort-AV: E=Sophos;i="5.93,329,1654585200"; d="scan'208";a="298308757" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 20:14:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,329,1654585200"; d="scan'208";a="707810406" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 19 Sep 2022 20:14:54 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oaTin-0002RQ-1U; Tue, 20 Sep 2022 03:14:53 +0000 Date: Tue, 20 Sep 2022 11:14:04 +0800 From: kernel test robot To: Zhen Lei , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Alexei Starovoitov , Jiri Olsa , Kees Cook , Andrew Morton , Luis Chamberlain , linux-modules@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Zhen Lei Subject: Re: [PATCH v3 8/8] kallsyms: Add self-test facility Message-ID: <202209201123.hihIfjo1-lkp@intel.com> References: <20220919151533.1734-9-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220919151533.1734-9-thunder.leizhen@huawei.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663643700; 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=9d4YDthT3YfRN2fVvYb/WJfyDFZhMJc+KQXc9owl/fE=; b=y60K8bz5pncU5fMhQ8O4YyXrR2+NGV23C27JYUEgR/AJmVXOXqhq7xanIqHzeUwAxcujhr uyeLwJF1KT+NWG25Xc7mkokCL4JsWSLpL8GvpRmiJbU8D/3EKBZSMXVe+fB1JbPV8y04Nm diP9wjO/UZOzszA6yVOoN6R8RYMmCCM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="SOj/jU73"; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 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=1663643700; a=rsa-sha256; cv=none; b=lBB0yMdntx+F2htp3BVEnf9J79pcUw9xfI/jWUe9XpZwtKfIVNX0eWg4jOnvr00rB4gRAz b25wdLJIk3Zl6srG/J1XrWm3vaIWa1bRBpm5TSLZCU+lmmn/5nyVScOoFncndOC/gYMJH6 zw5PW1vVaHB35tmbF/AaEw42mSVsI8c= X-Stat-Signature: 8r36gsg3kj7ospupafp191zu1ztzca3u X-Rspam-User: X-Rspamd-Queue-Id: 4F8604001B X-Rspamd-Server: rspam02 Authentication-Results: imf12.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="SOj/jU73"; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1663643700-429738 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: Hi Zhen, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mcgrof/modules-next] [also build test WARNING on linus/master v6.0-rc6 next-20220919] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Zhen-Lei/kallsyms-Optimizes-the-performance-of-lookup-symbols/20220919-231916 base: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git modules-next config: i386-randconfig-a001-20220919 (https://download.01.org/0day-ci/archive/20220920/202209201123.hihIfjo1-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/intel-lab-lkp/linux/commit/26fdb8f3984ffbdb57da2d1fac7e32ae418bfa96 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zhen-Lei/kallsyms-Optimizes-the-performance-of-lookup-symbols/20220919-231916 git checkout 26fdb8f3984ffbdb57da2d1fac7e32ae418bfa96 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/kallsyms.c:196:15: warning: no previous prototype for function 'kallsyms_sym_address' [-Wmissing-prototypes] unsigned long kallsyms_sym_address(int idx) ^ kernel/kallsyms.c:196:1: note: declare 'static' if the function is not intended to be used outside of this translation unit unsigned long kallsyms_sym_address(int idx) ^ static kernel/kallsyms.c:668:12: warning: no previous prototype for function 'arch_get_kallsym' [-Wmissing-prototypes] int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, ^ kernel/kallsyms.c:668:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, ^ static 2 warnings generated. vim +/kallsyms_sym_address +196 kernel/kallsyms.c 195 > 196 unsigned long kallsyms_sym_address(int idx) 197 { 198 if (!IS_ENABLED(CONFIG_KALLSYMS_BASE_RELATIVE)) 199 return kallsyms_addresses[idx]; 200 201 /* values are unsigned offsets if --absolute-percpu is not in effect */ 202 if (!IS_ENABLED(CONFIG_KALLSYMS_ABSOLUTE_PERCPU)) 203 return kallsyms_relative_base + (u32)kallsyms_offsets[idx]; 204 205 /* ...otherwise, positive offsets are absolute values */ 206 if (kallsyms_offsets[idx] >= 0) 207 return kallsyms_offsets[idx]; 208 209 /* ...and negative offsets are relative to kallsyms_relative_base - 1 */ 210 return kallsyms_relative_base - 1 - kallsyms_offsets[idx]; 211 } 212 -- 0-DAY CI Kernel Test Service https://01.org/lkp