Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2374638rwl; Thu, 13 Apr 2023 05:48:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YZIB+r23E2r4RUr4ynmZ9U8rJkEMLO5g2TgZhYWJQD0lilJ9CwsSLCcTLGg4htm7IEMGel X-Received: by 2002:a17:90a:6305:b0:246:91d0:9e6f with SMTP id e5-20020a17090a630500b0024691d09e6fmr1976277pjj.3.1681390090415; Thu, 13 Apr 2023 05:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681390090; cv=none; d=google.com; s=arc-20160816; b=F0ZQ//UCaapX99uKc8a1uPTZUGIsRcYcoHl6Wy7jXTIgYiz9sESLFUhFW73w6NTZow u/paQnpj8geOuOWGkld8CfwqW1bWUp097GTebGk6HkNqPeLdBDfDZxqkaZFCQmInCtef VVng4EXuioDlKXCgtashYjyKX3EAhTOTkrhr96VnN7hGetSChnCEK+3V52ZWW5hf03Km kQ9sTu6VEv9Rao3SQ8UzCCqzuG4qtuurkhsrEIpeDt38l5hOQhNk5dmcBlOhDCi+6PrS v4VZN6CrLyKYlRdZPs2pE/hnwU11SSl/Zd1OP9s0Is9K7/uWUQqt1HH3UhqKCiN7XSVD dAdA== 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=uoNrg34kc+6lem2kMar0uYOihFZSJhPiBifZFvTS5g0=; b=nQ2FtSTT8OD1+OrYrWRvNbbTmR31vWVOal2+xo/bzuUI1YnZhESx/W0KD5YeBwVZcH FO+PxirYgpOpVwtwaUBZK4F8vhTom7rDMQBIxgknHwOq+s7FWKgsIrEzKeaJ9glggFow bMzQyJU3L6hmrAwIa/6dFI2eHjY0Wmq/l67WzrnPi2BXiFXO2eKwFf46NgQHNOJ5ncjZ f7aRM+Q3YuBbL8yuv73lF6LUNhN9zkoB7KxkjVPfHyJcyd/TcCXGlGNqC4J+OFtjgRpE g2rjTjfs0uIbpxzqNdXsHBWW68mbgr4KenikDN2li8WFnHDbPi5izPZJh7GdeEd2rCwY amkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G5WkMOUj; 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 bu10-20020a17090aee4a00b0023cfb718146si1860182pjb.30.2023.04.13.05.47.58; Thu, 13 Apr 2023 05:48:10 -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=G5WkMOUj; 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 S229954AbjDMMnG (ORCPT + 99 others); Thu, 13 Apr 2023 08:43:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjDMMnB (ORCPT ); Thu, 13 Apr 2023 08:43:01 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CAF593D6; Thu, 13 Apr 2023 05:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681389779; x=1712925779; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AUmRE/yebNXpdkid5N0KqFC4R4ByzvArot+xXbENuPM=; b=G5WkMOUjdpL23MjMI+gX0zVf4Y5L39/1y8Q0aSkiX0Dp75dBnCeyiUkM ivT2VSIXgVLm8M4xg3f8omu3Gp/XuiCD4UHKIAGoz6CQDY6fzr76mKiDb LqrqjKpb9JOEdmZf42DoDGbo/ajS59XcVmc1oKfGZOUvMHWIkA6QoDOp6 NL7OCXLmIt3s4zMLa7S/fZIWbtAwlYXVh+WYa+wJISkYKdS5UGlg8ASMw ZM2axZFyAIWO4tbycpnDVlw+Uu/sf3Ofn/ZQnrbldTAlhNsySsVZe2StF 8s4GKnC3/jMZUaxzKqjmiJyuDrfGs6XFxXBMmcqdGyAOHJpwROIeWtG3S g==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="342916935" X-IronPort-AV: E=Sophos;i="5.99,193,1677571200"; d="scan'208";a="342916935" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 05:42:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="800801980" X-IronPort-AV: E=Sophos;i="5.99,193,1677571200"; d="scan'208";a="800801980" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 13 Apr 2023 05:42:54 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pmwHo-000YgZ-2M; Thu, 13 Apr 2023 12:42:48 +0000 Date: Thu, 13 Apr 2023 20:42:27 +0800 From: kernel test robot To: Yi-De Wu , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Catalin Marinas , Will Deacon , Matthias Brugger , AngeloGioacchino Del Regno , Yingshiuan Pan Cc: oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jades Shih , Miles Chen , Ivan Tseng , My Chuang , Shawn Hsiao , PeiLun Suei , Ze-Yu Wang , Liju Chen , Yi-De Wu Subject: Re: [PATCH v1 3/6] soc: mediatek: virt: geniezone: Introduce GenieZone hypervisor support Message-ID: <202304132051.wGFK08qz-lkp@intel.com> References: <20230413090735.4182-4-yi-de.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230413090735.4182-4-yi-de.wu@mediatek.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, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 Yi-De, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on krzk-dt/for-next arm64/for-next/core lwn/docs-next linus/master v6.3-rc6 next-20230412] [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/Yi-De-Wu/docs-geniezone-Introduce-GenieZone-hypervisor/20230413-170932 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20230413090735.4182-4-yi-de.wu%40mediatek.com patch subject: [PATCH v1 3/6] soc: mediatek: virt: geniezone: Introduce GenieZone hypervisor support config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230413/202304132051.wGFK08qz-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.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/2d01949ddd48b1bc2cc9849154afe60781068f39 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yi-De-Wu/docs-geniezone-Introduce-GenieZone-hypervisor/20230413-170932 git checkout 2d01949ddd48b1bc2cc9849154afe60781068f39 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/soc/mediatek/virt/geniezone/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304132051.wGFK08qz-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/soc/mediatek/virt/geniezone/gzvm_vm.c:31:5: warning: no previous prototype for 'gzvm_gfn_to_pfn_memslot' [-Wmissing-prototypes] 31 | int gzvm_gfn_to_pfn_memslot(struct gzvm_memslot *memslot, u64 gfn, u64 *pfn) | ^~~~~~~~~~~~~~~~~~~~~~~ vim +/gzvm_gfn_to_pfn_memslot +31 drivers/soc/mediatek/virt/geniezone/gzvm_vm.c 19 20 21 /** 22 * @brief Translate gfn (guest ipa) to pfn (host pa), result is in @pfn 23 * 24 * Leverage KVM's `gfn_to_pfn_memslot`. Because `gfn_to_pfn_memslot` needs 25 * kvm_memory_slot as parameter, this function populates necessary fileds 26 * for calling `gfn_to_pfn_memslot`. 27 * 28 * @retval 0 succeed 29 * @retval -EFAULT failed to convert 30 */ > 31 int gzvm_gfn_to_pfn_memslot(struct gzvm_memslot *memslot, u64 gfn, u64 *pfn) 32 { 33 hfn_t __pfn; 34 struct kvm_memory_slot kvm_slot = {0}; 35 36 kvm_slot.base_gfn = memslot->base_gfn; 37 kvm_slot.npages = memslot->npages; 38 kvm_slot.dirty_bitmap = NULL; 39 kvm_slot.userspace_addr = memslot->userspace_addr; 40 kvm_slot.flags = memslot->flags; 41 kvm_slot.id = memslot->slot_id; 42 kvm_slot.as_id = 0; 43 44 __pfn = gfn_to_pfn_memslot(&kvm_slot, gfn); 45 if (is_error_noslot_pfn(__pfn)) { 46 *pfn = 0; 47 return -EFAULT; 48 } 49 50 *pfn = __pfn; 51 return 0; 52 } 53 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests