Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp30546pxh; Thu, 7 Apr 2022 13:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0rFYN/4xqCH2ElpkYJEcshEIOH10/ASPUjm9B+Fq+UFkfYyP/zPuRD71BO1Dcjfn/UZu7 X-Received: by 2002:a63:fd4e:0:b0:399:3005:d0e0 with SMTP id m14-20020a63fd4e000000b003993005d0e0mr12725303pgj.276.1649361816286; Thu, 07 Apr 2022 13:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361816; cv=none; d=google.com; s=arc-20160816; b=PWAdmkegtTXjpxWDN8TnqrMrPbia+ejJzsYzCalVR8NeSXY5JYeuLYLlDAiospbTNM elvkMmZ1q40L9IFL3avpc+SsvIulpaKjS3mClZRUMPUd11bYNwFFiA4eEIU7tlmu3W/0 DuqfVKitunb7cTqTKNwyXf46whK3NzaM1Ms5/3esAZQVdNSZGSXJ8QZEbKd8pBdATjjQ vKiDKDuy2gDbR8OG2KGSvKF7w1bEALHIDZ3g7Is4ZLFh8MiEQBTzKNUNUWchxLkZC7Es nhBL2YU73cLAfYJJbQkJxsVh5oj/iWt5Bb1LGwDGIlGK27/L+PRiAqFYLJYNknlAu4BF 9IhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uUEPjBbdUIyJwLvFBnHQxvI5d1yGFHPf/Ec0EBk/XpM=; b=aX1Ki+DIHGm2ssqbe1oykk/OeyS9iRtbmiKncIRN2+e7TPSdKnuqfimk++VLcXaeVQ vLxz5OkUAqUuMSkuKVFcg113fkByktXJsF8Y/wklfAWQoljO1jRndZyhUraTijBTqzwK P5BAoHNHrF2DB1sgNRxMg4lIV6FUZkKG4eCZaCBN50g8rh52sufcrdT2V/s46cdEF1XV bTuZKNw3nKluXbs4jt43maR9QNF0jfSU1LpYHEh9GXL6+ZuiMkEEqve7U3K49Qeyy31B KL4VZt+5wgYmzFGLDEAtUFP3LAWcYqSNmyu/8KwIcbDY6YrinOl/5rSvI5JtnbPCfrlX YrgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LVS757+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z6-20020a656106000000b003861d94568fsi19410876pgu.732.2022.04.07.13.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LVS757+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60F3E296D2D; Thu, 7 Apr 2022 12:28:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237380AbiDGFMW (ORCPT + 99 others); Thu, 7 Apr 2022 01:12:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbiDGFMQ (ORCPT ); Thu, 7 Apr 2022 01:12:16 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A92E0954AD; Wed, 6 Apr 2022 22:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649308216; x=1680844216; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=myTDEhVwrLnCdPZFU3d6dVMJ7GMZKVQMpzunGAxXFgE=; b=LVS757+haaJZimKvi+Tvbvd5scm0rb7uW4kilUCqWxy8y6flnVLfdr6f FJBIhVtkvnsfeF8n7Ml2bN8JFjJuL/thBuro5EDyydoxOBLrUFDzLI/TZ T13XtH+++VK6IO5t60A8Tcaf3TzlUXEcJrgLc/eYBHgTBwdYmOBadx4Yj Y9mjs40p5QHV7/MzhDOKwr34RkmxspmVPBF5nOt/38cIjnKl4scxRSj+Q eytXdzAuzAgy3WZJuVTkR8fSYdUSYs+LIsLjZdf1gR4p8a87zbvpoW9xh jr3ongXncqSuy5cSryuMMBx/93z0GCioDfe59Vue47kkj8f1xJ0VpNItd Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="260066691" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="260066691" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 22:10:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="506008518" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 06 Apr 2022 22:10:13 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncKPM-00055m-NU; Thu, 07 Apr 2022 05:10:12 +0000 Date: Thu, 7 Apr 2022 13:09:27 +0800 From: kernel test robot To: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Juergen Gross , Boris Ostrovsky , Stefano Stabellini , stable@vger.kernel.org, Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= Subject: Re: [PATCH] xen/balloon: fix page onlining when populating new zone Message-ID: <202204071359.uas4tsu0-lkp@intel.com> References: <20220406133229.15979-1-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406133229.15979-1-jgross@suse.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Juergen, I love your patch! Yet something to improve: [auto build test ERROR on xen-tip/linux-next] [also build test ERROR on linus/master linux/master v5.18-rc1 next-20220406] [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] url: https://github.com/intel-lab-lkp/linux/commits/Juergen-Gross/xen-balloon-fix-page-onlining-when-populating-new-zone/20220407-000935 base: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next config: arm64-randconfig-r011-20220406 (https://download.01.org/0day-ci/archive/20220407/202204071359.uas4tsu0-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.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/b3deb59d5386ade4fb227038f202a9bdb8ade4ab git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Juergen-Gross/xen-balloon-fix-page-onlining-when-populating-new-zone/20220407-000935 git checkout b3deb59d5386ade4fb227038f202a9bdb8ade4ab # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/xen/balloon.c: In function 'decrease_reservation': >> drivers/xen/balloon.c:518:24: error: implicit declaration of function 'alloc_page_for_balloon' [-Werror=implicit-function-declaration] 518 | page = alloc_page_for_balloon(gfp); | ^~~~~~~~~~~~~~~~~~~~~~ drivers/xen/balloon.c:518:22: warning: assignment to 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 518 | page = alloc_page_for_balloon(gfp); | ^ >> drivers/xen/balloon.c:545:17: error: implicit declaration of function 'add_page_to_balloon' [-Werror=implicit-function-declaration] 545 | add_page_to_balloon(page); | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/alloc_page_for_balloon +518 drivers/xen/balloon.c 505 506 static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) 507 { 508 enum bp_state state = BP_DONE; 509 unsigned long i; 510 struct page *page, *tmp; 511 int ret; 512 LIST_HEAD(pages); 513 514 if (nr_pages > ARRAY_SIZE(frame_list)) 515 nr_pages = ARRAY_SIZE(frame_list); 516 517 for (i = 0; i < nr_pages; i++) { > 518 page = alloc_page_for_balloon(gfp); 519 if (page == NULL) { 520 nr_pages = i; 521 state = BP_EAGAIN; 522 break; 523 } 524 list_add(&page->lru, &pages); 525 } 526 527 /* 528 * Ensure that ballooned highmem pages don't have kmaps. 529 * 530 * Do this before changing the p2m as kmap_flush_unused() 531 * reads PTEs to obtain pages (and hence needs the original 532 * p2m entry). 533 */ 534 kmap_flush_unused(); 535 536 /* 537 * Setup the frame, update direct mapping, invalidate P2M, 538 * and add to balloon. 539 */ 540 i = 0; 541 list_for_each_entry_safe(page, tmp, &pages, lru) { 542 frame_list[i++] = xen_page_to_gfn(page); 543 544 list_del(&page->lru); > 545 add_page_to_balloon(page); 546 } 547 548 flush_tlb_all(); 549 550 ret = xenmem_reservation_decrease(nr_pages, frame_list); 551 BUG_ON(ret != nr_pages); 552 553 balloon_stats.current_pages -= nr_pages; 554 555 return state; 556 } 557 -- 0-DAY CI Kernel Test Service https://01.org/lkp