Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2829172rwb; Mon, 19 Sep 2022 10:32:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7LkN29B5WZvfGJwFIuz24JJOiIh2ys/Pq8I7FzU6s629YmLy+ebRiaVTFzYS/qwMnbgqhu X-Received: by 2002:a63:2cc2:0:b0:41c:681d:60d2 with SMTP id s185-20020a632cc2000000b0041c681d60d2mr15960826pgs.502.1663608767665; Mon, 19 Sep 2022 10:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663608767; cv=none; d=google.com; s=arc-20160816; b=ek7N0c0cde3GathP31eNcvdJLd8tiXEp4iTe5c1gcVLj0nKyft362lwJXqNBS79JNZ GXBPkpm1/sNyjXmJKtU48G9GZsB0nXt2nssxHYZyMGUI9celpeuzEiURuNSAYewL1C80 7PYjCEHVyh3Jal7TQ5UGl9JHnVbhrzazBbYUTVKl8sj+J1AoNNf/QQuho13cSD5D+vG7 6U8F1Nm9BN/XJvQnjfLtnKfwyO5g4ePirvjZ6bec2IxbjCkgomNHVGcBuIlJNZTNzC1t j5pE0WRFbrKwTbD3PFpsJZJEwUiRtOxoIr1lFzlZji0XUOzO4lV63vqW7L9QHWToEybC oo0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9yJgEhz1e3U7MzJGsKC5r6cYpyvK3rsV/AGrn2cRPQY=; b=u4ZU3ZkTA0kZh1OmnZ89gKY+VsxEDaz/vbSoHhS4Z34h8apxU2ThSsUvbHXXyyVjdh 16Pj8GAkB7h+8ZM68DghYCi6Kj69S2s0VKDkBQw3AjhZb2IXll5DNORfx822LXHXnHAV 3OTYtK0F1wpRiC8Dn/m10F7PdGFxncINC7klYX4Ll7cqMXveri8WVJugVLbdqYU95LlR 90Z7xYr3W+bT6nExE1+ApiO2CQ7wEuUcsnRJwrqa/1KZVPRNM2a1ECWKPhCFdL12uVFx V6L0NP8VMD1wyUNqnXGwYy0pZxA6tbAycOWLglIJX8JskG+SsIoFWnWwOTiuyQYbkjhu Q1Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BLIWFlLg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a62-20020a639041000000b0043512d64885si227432pge.424.2022.09.19.10.32.35; Mon, 19 Sep 2022 10:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BLIWFlLg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbiISQoy (ORCPT + 99 others); Mon, 19 Sep 2022 12:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbiISQov (ORCPT ); Mon, 19 Sep 2022 12:44:51 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB0B3B6 for ; Mon, 19 Sep 2022 09:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663605889; x=1695141889; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EZewErbpnJoVBfLJL/c/JW4xu0UtQOz7YRXGFLIeHj8=; b=BLIWFlLgQgpGVxGPFmT2yyU2KxZX0y1DEBUFKodbV+u7rqSb6WfZzUUV drCLwMuumDBchUwm16impM4qY6SU1xJ5f3hbEV+bY6xsi76utiGSll327 fbP0m42FrDEw8/0bMJcSqV1N+AKFLdN03sqxSMpVJ3AHJuo+1dcK4VLEa sXDIKkAyqd/5BhixwfRljZg4cfBe0sqPwzdXQVloAc+uElZLDHeM+HS+o IRh1ZTDpK408kQXTbasX5jKyYHBL3d4wDYuM94yxyt6QWCire3AorMYRY lSzMdyiPXrUi1NKscLERk8y9tTP0Z4y3j4YyHsfkI6YXPFY6Vk+LGKP95 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="300270372" X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="300270372" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.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> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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