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 F1B2AECAAD5 for ; Sat, 10 Sep 2022 08:16:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4285B6B0071; Sat, 10 Sep 2022 04:16:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D7E86B0072; Sat, 10 Sep 2022 04:16:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C65C8D0002; Sat, 10 Sep 2022 04:16:53 -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 1E8A76B0071 for ; Sat, 10 Sep 2022 04:16:53 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id DBCDF40B7B for ; Sat, 10 Sep 2022 08:16:52 +0000 (UTC) X-FDA: 79895469864.18.2FC822A Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf09.hostedemail.com (Postfix) with ESMTP id 0F73314009E for ; Sat, 10 Sep 2022 08:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662797812; x=1694333812; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Gq6KFwaxOMjOmP9Vt8dpmGtDhoR0BXE+B8RO7Lff1+M=; b=PckQ8oREXzHFIrsXmUPlPJabcdM2qIKLyBwANUCcnFKa7M/ajhN4eQ/R iQli7dmIfKETzAS6BKjG1r4ZUi/nJZeHDwLg4c19TBS7FfdXIkl1/Tze4 XvgfhG8Xy5m0+89ttnKXSNH5XSHCiVE3poUpgzz8CyoSmAXOvdk9/ftl/ UbcY0nIz526guX/TWy4KlGRKbEvt1y6FqGyRnfxS1OBWreRGNIEr1juzN FJzj7mVd5SjX8zNU1ZRXsNAi7J6G5M2wTv7bv2YFBVWgO66KOtic+OKnQ wKsTkq2lCVW9LcUuX04vU2F1o3ww13SfVONEHbO6sbPYCzONKOMnKGGbT g==; X-IronPort-AV: E=McAfee;i="6500,9779,10465"; a="295208174" X-IronPort-AV: E=Sophos;i="5.93,305,1654585200"; d="scan'208";a="295208174" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2022 01:16:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,305,1654585200"; d="scan'208";a="704653004" Received: from lkp-server02.sh.intel.com (HELO b2938d2e5c5a) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 10 Sep 2022 01:16:46 -0700 Received: from kbuild by b2938d2e5c5a with local (Exim 4.96) (envelope-from ) id 1oWvfS-0002It-15; Sat, 10 Sep 2022 08:16:46 +0000 Date: Sat, 10 Sep 2022 16:15:59 +0800 From: kernel test robot To: Jiebin Sun , akpm@linux-foundation.org, vasily.averin@linux.dev, shakeelb@google.com, dennis@kernel.org, tj@kernel.org, cl@linux.com, ebiederm@xmission.com, legion@kernel.org, manfred@colorfullife.com, alexander.mikhalitsyn@virtuozzo.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, tim.c.chen@intel.com, feng.tang@intel.com, ying.huang@intel.com, tianyou.li@intel.com, wangyang.guo@intel.com, jiebin.sun@intel.com Subject: Re: [PATCH v5 1/2] percpu: Add percpu_counter_add_local and percpu_counter_sub_local Message-ID: <202209101659.DitbHM0V-lkp@intel.com> References: <20220909203636.2652466-2-jiebin.sun@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909203636.2652466-2-jiebin.sun@intel.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662797812; a=rsa-sha256; cv=none; b=3YSscFFZ/rcqn0AmXcOaMW4cRfO7F4EZnSmYppFHJgiieiyUDpKgYn5y/23pTb9C7iAC+f qPBYo70hkXBp7NC6+B2+vzp2co/Ds+QsiqIvKi+0hVihkZuof/hJNjXLGUxQ03u59e4ANp KylxKrzQfxgG6djSSObVKXy8Xenvrrk= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=PckQ8oRE; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 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=1662797812; 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=Cy2Td0sSnx9FMoH6J1dbeFrH2SgRIKPbwbUpjjUnSyM=; b=I0v5p2whe2WrkttzXykphaTVA+qGOjEkR5MmCbbNRAunnSTk6mM/bWTo+n6anxetGc/8Y/ 2K1/oJHB0AfuB0ct+Lu+qMytZ/5L1xRSRVd94TKM5nMJxBjzjcaIo9AWEAC79wuARm6HFI LdwBvw/oBuO6pAwZElwTDmWlUNOtBx8= X-Stat-Signature: m73fg1rhz7knp34ps7xwgsxaim7fsgce X-Rspamd-Queue-Id: 0F73314009E X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=PckQ8oRE; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam07 X-HE-Tag: 1662797811-949852 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 Jiebin, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v6.0-rc4 next-20220909] [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/Jiebin-Sun/percpu-Add-percpu_counter_add_local-and-percpu_counter_sub_local/20220910-053730 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220910/202209101659.DitbHM0V-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/44e7288c01b9b125c7a5f97591ca26ffd90e3385 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jiebin-Sun/percpu-Add-percpu_counter_add_local-and-percpu_counter_sub_local/20220910-053730 git checkout 44e7288c01b9b125c7a5f97591ca26ffd90e3385 # 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=x86_64 prepare If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:13: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:10: In file included from include/linux/cred.h:17: In file included from include/linux/sched/user.h:7: >> include/linux/percpu_counter.h:176:2: error: implicit declaration of function 'percpu_counter_sub' is invalid in C99 [-Werror,-Wimplicit-function-declaration] percpu_counter_sub(fbc, amount); ^ include/linux/percpu_counter.h:176:2: note: did you mean 'percpu_counter_set'? include/linux/percpu_counter.h:136:20: note: 'percpu_counter_set' declared here static inline void percpu_counter_set(struct percpu_counter *fbc, s64 amount) ^ include/linux/percpu_counter.h:229:20: error: static declaration of 'percpu_counter_sub' follows non-static declaration static inline void percpu_counter_sub(struct percpu_counter *fbc, s64 amount) ^ include/linux/percpu_counter.h:176:2: note: previous implicit declaration is here percpu_counter_sub(fbc, amount); ^ 2 errors generated. make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1206: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:222: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/percpu_counter_sub +176 include/linux/percpu_counter.h 171 172 /* no smp percpu_counter_sub_local is the same with percpu_counter_sub */ 173 static inline void 174 percpu_counter_sub_local(struct percpu_counter *fbc, s64 amount) 175 { > 176 percpu_counter_sub(fbc, amount); 177 } 178 -- 0-DAY CI Kernel Test Service https://01.org/lkp