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 1E9D4ECAAA1 for ; Mon, 19 Sep 2022 16:44:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7B6206B0073; Mon, 19 Sep 2022 12:44:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7653A6B0074; Mon, 19 Sep 2022 12:44:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 62D96940007; Mon, 19 Sep 2022 12:44:51 -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 51F776B0073 for ; Mon, 19 Sep 2022 12:44:51 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 1FDE8A01A7 for ; Mon, 19 Sep 2022 16:44:51 +0000 (UTC) X-FDA: 79929409182.29.E011D45 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf27.hostedemail.com (Postfix) with ESMTP id 2E4DE4000A for ; Mon, 19 Sep 2022 16:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663605890; x=1695141890; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EZewErbpnJoVBfLJL/c/JW4xu0UtQOz7YRXGFLIeHj8=; b=AAT0DUQ1wqEDeeHkJKRzqpYgAFvY/SRcBLTt6pe5PzFnUo3HFTiNj1/F xZuNgYaxFL6VtKTG8fqiMoqkr+dbWWkIvzbejbO0Rg8BfZz47vekY7BZf jY5gpL+uo2KOyxI8GGcc+PJpDyAttvx0QdMpOxQjEDKKjkU8VX8feE0zI Qvvv/pEs9EdEMEKug66rWf1Wp2M0gTXgeNk05OOkHyJRCpY60D7Jjrt73 qsN6Jty/6o9Md3qYmQs8dF2DnEl22Q4UXuyGp/aYHDjXmCe6afheU1TYP 9o2shMSaQMIjYkg1ye9U8VK+YjzZveg77SFEnsm86Ejb5sMplaXTV874o g==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="298180469" X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="298180469" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 09:44:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="596154581" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 19 Sep 2022 09:44:46 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oaJsz-00026H-2f; Mon, 19 Sep 2022 16:44:45 +0000 Date: Tue, 20 Sep 2022 00:43:46 +0800 From: kernel test robot To: Liu Shixin , Andrew Morton Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , linux-kernel@vger.kernel.org, Liu Shixin , Kefeng Wang Subject: Re: [PATCH 4/9] mm/mmap: use hotplug_memory_notifier() directly Message-ID: <202209200009.uVNUOZp9-lkp@intel.com> References: <20220919083152.1824305-5-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220919083152.1824305-5-liushixin2@huawei.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663605890; a=rsa-sha256; cv=none; b=xsj5t280huFeK0yYZ3UJ2RBNmDU0ij6vhCxOPcirh3+EFqvXKPAnSsqwMrNq2iWz521NUR i+opZD6YaGuOr3hxQP+BWQEupUi+R8MfpzoLkU2t0J3WrvTC2C5Y2CGg46KMC+7/ocXz6Y pdZoAsUCnPIirhUwXS8z/EfFfDWD3e0= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=AAT0DUQ1; spf=pass (imf27.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663605890; 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=9yJgEhz1e3U7MzJGsKC5r6cYpyvK3rsV/AGrn2cRPQY=; b=BLBmALUuTXkPIgCI/ZdbhLMv6jI115hnXa1cOkdpj4UxZei80kmyFo3HxKJ/HTAxe75/jY qIIA8R6QXC3ds0zKX2p7lCJUZpHn0FK0Yuz4j+2XFZnPh/zC+4hp22VG1xk+/bFq23jZAP FpZ988JX1+2uPo8NP75+YqqAwft/1ro= X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 2E4DE4000A Authentication-Results: imf27.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=AAT0DUQ1; spf=pass (imf27.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-Stat-Signature: dbd9p5fcqxwqbh68p3bnehy3gudqp14m X-HE-Tag: 1663605889-337775 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 Liu, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Liu-Shixin/mm-Use-hotplug_memory_notifier-instead-of-register_hotmemory_notifier/20220919-160043 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: arm64-randconfig-r036-20220919 (https://download.01.org/0day-ci/archive/20220920/202209200009.uVNUOZp9-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/f147c36bfc42b2f7ee738305544169ddeae003e8 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Liu-Shixin/mm-Use-hotplug_memory_notifier-instead-of-register_hotmemory_notifier/20220919-160043 git checkout f147c36bfc42b2f7ee738305544169ddeae003e8 # 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=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> mm/mmap.c:3749:30: error: expected identifier or '(' if (hotplug_memory_notifier(&reserve_mem_notifier, 0)) ^ >> mm/mmap.c:3749:6: error: use of undeclared identifier 'reserve_mem_notifier_mem_nb' if (hotplug_memory_notifier(&reserve_mem_notifier, 0)) ^ include/linux/memory.h:167:28: note: expanded from macro 'hotplug_memory_notifier' register_memory_notifier(&fn##_mem_nb); \ ^ :58:1: note: expanded from here reserve_mem_notifier_mem_nb ^ 2 errors generated. vim +3749 mm/mmap.c 3746 3747 static int __meminit init_reserve_notifier(void) 3748 { > 3749 if (hotplug_memory_notifier(&reserve_mem_notifier, 0)) -- 0-DAY CI Kernel Test Service https://01.org/lkp