From: kernel test robot <lkp@intel.com>
To: Elliot Berman <quic_eberman@quicinc.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.org>,
James Morse <james.morse@arm.com>,
Alexandru Elisei <alexandru.elisei@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: kbuild-all@lists.01.org, Elliot Berman <quic_eberman@quicinc.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu
Subject: Re: [PATCH v3] KVM: arm64: Ignore kvm-arm.mode if !is_hyp_mode_available()
Date: Mon, 12 Sep 2022 08:44:36 +0800 [thread overview]
Message-ID: <202209120812.lW9MTQPf-lkp@intel.com> (raw)
In-Reply-To: <20220911214059.2767620-1-quic_eberman@quicinc.com>
Hi Elliot,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on 0982c8d859f8f7022b9fd44d421c7ec721bb41f9]
url: https://github.com/intel-lab-lkp/linux/commits/Elliot-Berman/KVM-arm64-Ignore-kvm-arm-mode-if-is_hyp_mode_available/20220912-054253
base: 0982c8d859f8f7022b9fd44d421c7ec721bb41f9
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220912/202209120812.lW9MTQPf-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/2266c3455ccaa7b42a9a0be751e15a15899d99b8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Elliot-Berman/KVM-arm64-Ignore-kvm-arm-mode-if-is_hyp_mode_available/20220912-054253
git checkout 2266c3455ccaa7b42a9a0be751e15a15899d99b8
# 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 SHELL=/bin/bash arch/arm64/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kvm/arm.c: In function 'early_kvm_mode_cfg':
>> arch/arm64/kvm/arm.c:2281:17: error: expected ';' before 'return'
2281 | return 0;
| ^~~~~~
vim +2281 arch/arm64/kvm/arm.c
2268
2269 static int __init early_kvm_mode_cfg(char *arg)
2270 {
2271 if (!arg)
2272 return -EINVAL;
2273
2274 if (strcmp(arg, "none") == 0) {
2275 kvm_mode = KVM_MODE_NONE;
2276 return 0;
2277 }
2278
2279 if (!is_hyp_mode_available()) {
2280 pr_warn_once("KVM is not available. Ignoring kvm-arm.mode\n")
> 2281 return 0;
2282 }
2283
2284 if (strcmp(arg, "protected") == 0) {
2285 if (!is_kernel_in_hyp_mode())
2286 kvm_mode = KVM_MODE_PROTECTED;
2287 else
2288 pr_warn_once("Protected KVM not available with VHE\n");
2289
2290 return 0;
2291 }
2292
2293 if (strcmp(arg, "nvhe") == 0 && !WARN_ON(is_kernel_in_hyp_mode())) {
2294 kvm_mode = KVM_MODE_DEFAULT;
2295 return 0;
2296 }
2297
2298 return -EINVAL;
2299 }
2300 early_param("kvm-arm.mode", early_kvm_mode_cfg);
2301
--
0-DAY CI Kernel Test Service
https://01.org/lkp
prev parent reply other threads:[~2022-09-12 0:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-11 21:40 Elliot Berman
2022-09-12 0:44 ` kernel test robot [this message]
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=202209120812.lW9MTQPf-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexandru.elisei@arm.com \
--cc=catalin.marinas@arm.com \
--cc=james.morse@arm.com \
--cc=kbuild-all@lists.01.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=quic_eberman@quicinc.com \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®