From: kernel test robot <lkp@intel.com>
To: Yi-De Wu <yi-de.wu@mediatek.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Yingshiuan Pan <yingshiuan.pan@mediatek.com>
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 <jades.shih@mediatek.com>,
Miles Chen <miles.chen@mediatek.com>,
Ivan Tseng <ivan.tseng@mediatek.com>,
My Chuang <my.chuang@mediatek.com>,
Shawn Hsiao <shawn.hsiao@mediatek.com>,
PeiLun Suei <peilun.suei@mediatek.com>,
Ze-Yu Wang <ze-yu.wang@mediatek.com>,
Liju Chen <liju-clr.chen@mediatek.com>,
Yi-De Wu <yi-de.wu@mediatek.com>
Subject: Re: [PATCH v1 3/6] soc: mediatek: virt: geniezone: Introduce GenieZone hypervisor support
Date: Thu, 13 Apr 2023 20:42:27 +0800 [thread overview]
Message-ID: <202304132051.wGFK08qz-lkp@intel.com> (raw)
In-Reply-To: <20230413090735.4182-4-yi-de.wu@mediatek.com>
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 <lkp@intel.com>
| 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
next prev parent reply other threads:[~2023-04-13 12:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 9:07 [PATCH v1 0/6] GenieZone hypervisor drivers Yi-De Wu
2023-04-13 9:07 ` [PATCH v1 1/6] docs: geniezone: Introduce GenieZone hypervisor Yi-De Wu
2023-04-13 9:07 ` [PATCH v1 2/6] dt-bindings: hypervisor: Add binding for MediaTek " Yi-De Wu
2023-04-13 13:05 ` Krzysztof Kozlowski
2023-04-14 8:35 ` Yi-De Wu (吳一德)
2023-04-14 8:42 ` Krzysztof Kozlowski
2023-05-12 7:52 ` Yi-De Wu (吳一德)
2023-04-14 15:29 ` Matthias Brugger
2023-05-12 7:52 ` Yi-De Wu (吳一德)
2023-04-13 9:07 ` [PATCH v1 3/6] soc: mediatek: virt: geniezone: Introduce GenieZone hypervisor support Yi-De Wu
2023-04-13 10:37 ` kernel test robot
2023-04-13 12:42 ` kernel test robot [this message]
2023-04-13 12:53 ` kernel test robot
2023-04-13 12:55 ` Krzysztof Kozlowski
2023-04-13 17:08 ` Matthias Brugger
2023-04-14 8:43 ` Yi-De Wu (吳一德)
2023-04-14 8:51 ` Krzysztof Kozlowski
2023-04-14 17:17 ` Trilok Soni
2023-05-12 7:29 ` Yi-De Wu (吳一德)
2023-05-12 7:29 ` Yi-De Wu (吳一德)
2023-04-14 10:48 ` AngeloGioacchino Del Regno
2023-05-12 7:53 ` Yi-De Wu (吳一德)
2023-04-14 11:53 ` AngeloGioacchino Del Regno
2023-04-13 9:07 ` [PATCH v1 4/6] soc: mediatek: virt: geniezone: Introduce irqchip for virtual interrupt injection Yi-De Wu
2023-04-13 9:07 ` [PATCH v1 5/6] soc: mediatek: virt: geniezone: Add ioeventfd support Yi-De Wu
2023-04-13 9:07 ` [PATCH v1 6/6] soc: mediatek: virt: geniezone: Add irqfd support Yi-De Wu
2023-04-13 13:34 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202304132051.wGFK08qz-lkp@intel.com \
--to=lkp@intel.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=ivan.tseng@mediatek.com \
--cc=jades.shih@mediatek.com \
--cc=krzk@kernel.org \
--cc=liju-clr.chen@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=miles.chen@mediatek.com \
--cc=my.chuang@mediatek.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peilun.suei@mediatek.com \
--cc=robh+dt@kernel.org \
--cc=shawn.hsiao@mediatek.com \
--cc=will@kernel.org \
--cc=yi-de.wu@mediatek.com \
--cc=yingshiuan.pan@mediatek.com \
--cc=ze-yu.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).