kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of funct
@ 2012-10-09  1:53 Fengguang Wu
  2012-10-10 21:57 ` [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of f Frederic Weisbecker
  2012-10-10 23:49 ` Fengguang Wu
  0 siblings, 2 replies; 3+ messages in thread
From: Fengguang Wu @ 2012-10-09  1:53 UTC (permalink / raw)
  To: kernel-janitors

Hi Frederic,

FYI, kernel build failed on

tree:   git://github.com/fweisbec/linux-dynticks.git cputime/cleanups
head:   e9a4d5c1f47ed3df66e61ef2e681db1ab01a0d7a
commit: a9da39a10a81d67dd1c34e103d83334a3449cc9f [1/3] kvm: Directly account vtime to system on guest switch
config: powerpc-allyesconfig

All error/warnings:

In file included from arch/powerpc/kernel/asm-offsets.c:53:0:
include/linux/kvm_host.h: In function 'kvm_guest_enter':
include/linux/kvm_host.h:692:2: error: implicit declaration of function 'vtime_account_system' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

vim +692 include/linux/kvm_host.h

d172fcd3 drivers/kvm/kvm.h        Laurent Vivier      2007-10-15  686  {
8fa22068 include/linux/kvm_host.h Gleb Natapov        2011-05-04  687  	BUG_ON(preemptible());
a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  688  	/*
a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  689  	 * This is running in ioctl context so we can avoid
a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  690  	 * the call to vtime_account() with its unnecessary idle check.
a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  691  	 */
a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05 @692  	vtime_account_system(current);
d172fcd3 drivers/kvm/kvm.h        Laurent Vivier      2007-10-15  693  	current->flags |= PF_VCPU;
8fa22068 include/linux/kvm_host.h Gleb Natapov        2011-05-04  694  	/* KVM does not hold any references to rcu protected data when it
8fa22068 include/linux/kvm_host.h Gleb Natapov        2011-05-04  695  	 * switches CPU into a guest mode. In fact switching to a guest mode

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of f
  2012-10-09  1:53 [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of funct Fengguang Wu
@ 2012-10-10 21:57 ` Frederic Weisbecker
  2012-10-10 23:49 ` Fengguang Wu
  1 sibling, 0 replies; 3+ messages in thread
From: Frederic Weisbecker @ 2012-10-10 21:57 UTC (permalink / raw)
  To: kernel-janitors

2012/10/9 Fengguang Wu <fengguang.wu@intel.com>:
> Hi Frederic,
>
> FYI, kernel build failed on
>
> tree:   git://github.com/fweisbec/linux-dynticks.git cputime/cleanups
> head:   e9a4d5c1f47ed3df66e61ef2e681db1ab01a0d7a
> commit: a9da39a10a81d67dd1c34e103d83334a3449cc9f [1/3] kvm: Directly account vtime to system on guest switch
> config: powerpc-allyesconfig
>
> All error/warnings:
>
> In file included from arch/powerpc/kernel/asm-offsets.c:53:0:
> include/linux/kvm_host.h: In function 'kvm_guest_enter':
> include/linux/kvm_host.h:692:2: error: implicit declaration of function 'vtime_account_system' [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
>
> vim +692 include/linux/kvm_host.h
>
> d172fcd3 drivers/kvm/kvm.h        Laurent Vivier      2007-10-15  686  {
> 8fa22068 include/linux/kvm_host.h Gleb Natapov        2011-05-04  687   BUG_ON(preemptible());
> a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  688   /*
> a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  689    * This is running in ioctl context so we can avoid
> a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  690    * the call to vtime_account() with its unnecessary idle check.
> a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05  691    */
> a9da39a1 include/linux/kvm_host.h Frederic Weisbecker 2012-10-05 @692   vtime_account_system(current);
> d172fcd3 drivers/kvm/kvm.h        Laurent Vivier      2007-10-15  693   current->flags |= PF_VCPU;
> 8fa22068 include/linux/kvm_host.h Gleb Natapov        2011-05-04  694   /* KVM does not hold any references to rcu protected data when it
> 8fa22068 include/linux/kvm_host.h Gleb Natapov        2011-05-04  695    * switches CPU into a guest mode. In fact switching to a guest mode

Thanks for your testing!

I fixed the patch, could you please test this branch? (only the three
last patches matter)

git://github.com/fweisbec/linux-dynticks.git  cputime/cleanups-v2

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of f
  2012-10-09  1:53 [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of funct Fengguang Wu
  2012-10-10 21:57 ` [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of f Frederic Weisbecker
@ 2012-10-10 23:49 ` Fengguang Wu
  1 sibling, 0 replies; 3+ messages in thread
From: Fengguang Wu @ 2012-10-10 23:49 UTC (permalink / raw)
  To: kernel-janitors

Hi Frederic,

> git://github.com/fweisbec/linux-dynticks.git  cputime/cleanups-v2

That builds fine. Thank you for the quick fix!

Fengguang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-10 23:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-09  1:53 [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of funct Fengguang Wu
2012-10-10 21:57 ` [dynticks:cputime/cleanups 1/3] include/linux/kvm_host.h:692:2: error: implicit declaration of f Frederic Weisbecker
2012-10-10 23:49 ` Fengguang Wu

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).