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 268B8C6FA90 for ; Tue, 20 Sep 2022 03:15:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6F4F28000A; Mon, 19 Sep 2022 23:15:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6A41F80007; Mon, 19 Sep 2022 23:15:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 56C1D8000A; Mon, 19 Sep 2022 23:15:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4832F80007 for ; Mon, 19 Sep 2022 23:15:00 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 12463141B06 for ; Tue, 20 Sep 2022 03:15:00 +0000 (UTC) X-FDA: 79930997160.28.AB4D8EC Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf29.hostedemail.com (Postfix) with ESMTP id 80A25120011 for ; Tue, 20 Sep 2022 03:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663643699; x=1695179699; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0xmeP7bbIPEvgr7OHnrVDNezLI0+wyzTyhuQOnioe2E=; b=b29lv0xbO5FfvWZMqRP8iTceMSy4xGT09Otq40wYDbJNHcV3cTOe1owH ZdA/osLl2EPDXCBns8exoStJO5W93+b/SgWT15sQm2Y5WG+mbe/CS7rbG xe+Il4AfQ8U9zTVnZGm2davsQwk4iFAO/PqKwenDN1L3bTGBc2VXci3Zw vo+igPRBJhJWgyEBY8I+NXIYesXnFkZ0ORW3HM6s6s6Oexf45CI/wUmP8 yqlmdshreFSoQDMqW/WVdjeOevgVw45TEkH/4YGQ/oZffosAoki9r3fuE qVEBVDfSK+ATk60j967SHEREieZNoo10yri9uB5FjzAcvBcRPLCeur+Rc Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="325881787" X-IronPort-AV: E=Sophos;i="5.93,329,1654585200"; d="scan'208";a="325881787" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 20:14:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,329,1654585200"; d="scan'208";a="947487099" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by fmsmga005.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-0002RY-1p; Tue, 20 Sep 2022 03:14:53 +0000 Date: Tue, 20 Sep 2022 11:14:07 +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: kbuild-all@lists.01.org, Linux Memory Management List , Zhen Lei Subject: Re: [PATCH v3 8/8] kallsyms: Add self-test facility Message-ID: <202209201126.fpHaqBEx-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-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=b29lv0xb; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663643699; a=rsa-sha256; cv=none; b=LlUHspfUw498EBYoAweS2wpqzd2P6v7uJ1Ugzka6nhqm5GVfSQi+f6ogxnRvfTIz+KL7Bm L9NMRwqOewcPdlYljXulyU/oX8Vik12h/BGmGFFcwXzKXmpIroh1HaJdLD8tY11SghSwlM kwZ8JKs5Rlnzg+stK6hTOUWqpPWictY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663643699; 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=RRS8iV2OFKUOcF88Ce2hgfJ2pp2wv5Pd5IHn3m+4QZg=; b=QkQIVt7o7A/jT34O17ykQC6KMNFh5ZCMamWbZr9zRx4v2uBPnOIOF2bZXPHt4P1myYLSW9 Zf4tDslzmSLE9nO91OYSswRvuuQZPaJDFbgOD4kiAz5/LGsolk13Or4AvL3aMb937hH34B EBOMYxDNWMN4ThybYwJry1aw81/LhNk= X-Stat-Signature: yk51twd7dndwn8dkkcskrefcwwun8wah X-Rspamd-Queue-Id: 80A25120011 Authentication-Results: imf29.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=b29lv0xb; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1663643699-119328 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: arm-nhk8815_defconfig (https://download.01.org/0day-ci/archive/20220920/202209201126.fpHaqBEx-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/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=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm 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 'kallsyms_sym_address' [-Wmissing-prototypes] 196 | unsigned long kallsyms_sym_address(int idx) | ^~~~~~~~~~~~~~~~~~~~ kernel/kallsyms.c:668:12: warning: no previous prototype for 'arch_get_kallsym' [-Wmissing-prototypes] 668 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, | ^~~~~~~~~~~~~~~~ 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