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 1DAC5C54EE9 for ; Tue, 20 Sep 2022 06:13:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 53BF980008; Tue, 20 Sep 2022 02:13:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4EC35940007; Tue, 20 Sep 2022 02:13:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B44980008; Tue, 20 Sep 2022 02:13:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 2B7CA940007 for ; Tue, 20 Sep 2022 02:13:38 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EEB8D80463 for ; Tue, 20 Sep 2022 06:13:37 +0000 (UTC) X-FDA: 79931447274.05.BD7485F Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf30.hostedemail.com (Postfix) with ESMTP id 390E880009 for ; Tue, 20 Sep 2022 06:13:34 +0000 (UTC) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MWrjK1gR6z14QkD; Tue, 20 Sep 2022 14:09:25 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 14:13:30 +0800 Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 14:13:29 +0800 Subject: Re: [PATCH v3 8/8] kallsyms: Add self-test facility To: kernel test robot , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , , , "Masahiro Yamada" , Alexei Starovoitov , Jiri Olsa , Kees Cook , Andrew Morton , Luis Chamberlain , CC: , , "Linux Memory Management List" References: <20220919151533.1734-9-thunder.leizhen@huawei.com> <202209201123.hihIfjo1-lkp@intel.com> From: "Leizhen (ThunderTown)" Message-ID: <6c02ff59-99f9-5a4b-9bf2-ab0ea12de2c8@huawei.com> Date: Tue, 20 Sep 2022 14:13:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <202209201123.hihIfjo1-lkp@intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663654417; a=rsa-sha256; cv=none; b=IeGy4MNlsAHsVPXGhsjWJJta0EZh9aX1vc6TD+oCPYMPnFlhcD66882QlOQYZARm8vWnwF GYboO4jCEQszKfRG+r3RsSfS9YrONfzc95zlA9NoOHcvAISXi54Ly7Q9RKfO9bPEzjZCNo XiMwd8wGupsj9at5l1tHJC2Fyg2oAXc= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of thunder.leizhen@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=thunder.leizhen@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663654417; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bMrj88BDBLyo/8/lq6qH/I8ETIzrI2LaST5IsgS+KCs=; b=4RcHBDsmMHezGupCqz3i2m2E5wsa6DuuHjImztXPE0/hsEi2s1S4wlhKDmfdTNbR2StsIc Tp2Ct8T82Nt6xNbJlOzoLQx87dkB5mzCLU2zs87ZXCJF672BwK7LKx047ZDlQjq6DYJwFk 3DafePrRcawVr0CIye4YaWrCdrcQmbo= Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of thunder.leizhen@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=thunder.leizhen@huawei.com X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: w3ui39z35bhw8aw85txy18jxxjtggq7o X-Rspamd-Queue-Id: 390E880009 X-HE-Tag: 1663654414-307794 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: On 2022/9/20 11:14, kernel test robot wrote: > 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) > ^ Well, thanks. Because it's just for testing code, I'm thinking about not changing the header file, but it looks like I'll have to change it. > 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 > -- Regards, Zhen Lei