From: kbuild test robot <fengguang.wu@intel.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kbuild-all@01.org, kvm@vger.kernel.org,
Robert Hu <robert.hu@intel.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: [kvm:next 8/12] arch/x86/kvm/x86.c:6162:2: note: in expansion of macro 'if'
Date: Wed, 8 Feb 2017 23:43:55 +0800 [thread overview]
Message-ID: <201702082353.8H5hqiLX%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2580 bytes --]
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git next
head: 80fbd89cbd07287a7013006c14ddec923b7a4ff6
commit: 55dd00a73a518281bc846dc5de1a718349431eb2 [8/12] KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall
config: i386-randconfig-h1-02082244 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 55dd00a73a518281bc846dc5de1a718349431eb2
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
arch/x86/kvm/x86.c: In function 'kvm_pv_clock_pairing':
arch/x86/kvm/x86.c:6156:2: error: unknown type name 'cycle_t'
cycle_t cycle;
^~~~~~~
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/kvm_host.h:9,
from arch/x86/kvm/x86.c:22:
arch/x86/kvm/x86.c:6162:6: error: implicit declaration of function 'kvm_get_walltime_and_clockread' [-Werror=implicit-function-declaration]
if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> arch/x86/kvm/x86.c:6162:2: note: in expansion of macro 'if'
if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
^~
cc1: some warnings being treated as errors
vim +/if +6162 arch/x86/kvm/x86.c
6146 */
6147 return kvm_vcpu_halt(vcpu) && ret;
6148 }
6149 EXPORT_SYMBOL_GPL(kvm_emulate_halt);
6150
6151 static int kvm_pv_clock_pairing(struct kvm_vcpu *vcpu, gpa_t paddr,
6152 unsigned long clock_type)
6153 {
6154 struct kvm_clock_pairing clock_pairing;
6155 struct timespec ts;
6156 cycle_t cycle;
6157 int ret;
6158
6159 if (clock_type != KVM_CLOCK_PAIRING_WALLCLOCK)
6160 return -KVM_EOPNOTSUPP;
6161
> 6162 if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
6163 return -KVM_EOPNOTSUPP;
6164
6165 clock_pairing.sec = ts.tv_sec;
6166 clock_pairing.nsec = ts.tv_nsec;
6167 clock_pairing.tsc = kvm_read_l1_tsc(vcpu, cycle);
6168 clock_pairing.flags = 0;
6169
6170 ret = 0;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28168 bytes --]
reply other threads:[~2017-02-08 15:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201702082353.8H5hqiLX%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=robert.hu@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.