public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 35/38] unicore32: clean-up uapi Kbuild file
       [not found]   ` <1405350546-28467-35-git-send-email-sam@ravnborg.org>
@ 2014-07-15 10:53     ` James Hogan
  2014-07-15 11:07       ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: James Hogan @ 2014-07-15 10:53 UTC (permalink / raw)
  To: Sam Ravnborg, Arnd Bergmann; +Cc: lkml, linux-arch, Guan Xuetao, kvm

On 14/07/14 16:09, Sam Ravnborg wrote:
> Remove redundant assignments.
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
> ---
>  arch/unicore32/include/uapi/asm/Kbuild | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/arch/unicore32/include/uapi/asm/Kbuild b/arch/unicore32/include/uapi/asm/Kbuild
> index 0514d7a..aff532f 100644
> --- a/arch/unicore32/include/uapi/asm/Kbuild
> +++ b/arch/unicore32/include/uapi/asm/Kbuild
> @@ -1,10 +1,5 @@
>  # UAPI Header export list
>  include include/uapi/asm-generic/Kbuild.asm
>  
> -header-y += byteorder.h
> -header-y += kvm_para.h
> -header-y += ptrace.h
> -header-y += sigcontext.h
> -header-y += unistd.h
> -
> +# Wapper from asm-generic
>  generic-y += kvm_para.h
> 

You dropped the generic-y += kvm_para.h for arm64 & c6x, but not for
unicore, avr32 & ia64 patch, which seems a bit inconsistent. Was there
some reason behind that?

AFACT the non-uapi kvm_para.h is needed (e.g. by using the generic
non-uapi one) by kernel/watchdog.c for
kvm_check_and_clear_guest_paused(), so all arches should have at least
generic-y += kvm_para.h (or their own one) for non-uapi, even if they
have a uapi one too.

For UAPI, they're presumably only needed for architectures which support
KVM (s390, ia64, arm, powerpc, arm64, mips, x86 all provide an asm/kvm.h).

Is that right? Clearly there's some cleanup to do for kvm_para.h (which
is what made me look at the header issues previously).

Cheers
James

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

* Re: [PATCH 35/38] unicore32: clean-up uapi Kbuild file
  2014-07-15 10:53     ` [PATCH 35/38] unicore32: clean-up uapi Kbuild file James Hogan
@ 2014-07-15 11:07       ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2014-07-15 11:07 UTC (permalink / raw)
  To: James Hogan; +Cc: Arnd Bergmann, lkml, linux-arch, Guan Xuetao, kvm

Hi James.

> > +# Wapper from asm-generic
> >  generic-y += kvm_para.h
> > 
> 
> You dropped the generic-y += kvm_para.h for arm64 & c6x, but not for
> unicore, avr32 & ia64 patch, which seems a bit inconsistent. Was there
> some reason behind that?
I was fooling around with kvm_para.h and in both cases dropping
them was wrong.

kvm_para.h shows the current nightmare when you want to add a header
file that for most architectures has a generic implementation, but
in a few cases have a dedicated implementation.
This is the same point that Arnd raises.

I will fix it up so kvm_para.h is again specified for arm64 + c6x.
And then will address the whole mess later if I manage to come up
with something that is acceptable (simple enough).

Thanks for the review!

	Sam

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

end of thread, other threads:[~2014-07-15 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20140714150609.GA28358@ravnborg.org>
     [not found] ` <1405350546-28467-1-git-send-email-sam@ravnborg.org>
     [not found]   ` <1405350546-28467-35-git-send-email-sam@ravnborg.org>
2014-07-15 10:53     ` [PATCH 35/38] unicore32: clean-up uapi Kbuild file James Hogan
2014-07-15 11:07       ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox