]> err.no Git - linux-2.6/commit
kvm: provide kvm.h for all architecture: fixes headers_install
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 2 Apr 2008 20:04:40 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Apr 2008 22:28:18 +0000 (15:28 -0700)
commitdd135ebbd2a6b5e07dadb66c4dd033bb69531051
tree8f8bf987ed9594d5ac0df40fbb34258aa9310179
parent8eb224cd45239714c2be104f17d5ca16b6b5d7ac
kvm: provide kvm.h for all architecture: fixes headers_install

Currently include/linux/kvm.h is not considered by make headers_install,
because Kbuild cannot handle " unifdef-$(CONFIG_FOO) += foo.h.  This problem
was introduced by

commit fb56dbb31c4738a3918db81fd24da732ce3b4ae6
Author: Avi Kivity <avi@qumranet.com>
Date:   Sun Dec 2 10:50:06 2007 +0200

    KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM

    Currently, make headers_check barfs due to <asm/kvm.h>, which <linux/kvm.h>
    includes, not existing.  Rather than add a zillion <asm/kvm.h>s, export kvm.
    only if the arch actually supports it.

Signed-off-by: Avi Kivity <avi@qumranet.com>
which makes this an 2.6.25 regression.

One way of solving the issue is to enhance Kbuild, but Avi and David conviced
me, that changing headers_install is not the way to go.  This patch changes
the definition for linux/kvm.h to unifdef-y.

If Â unifdef-y is used for linux/kvm.h "make headers_check" will fail on all
architectures without asm/kvm.h.  Therefore, this patch also provides
asm/kvm.h on all architectures.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Avi Kivity <avi@qumranet.com>
Cc: Sam Ravnborg <sam@ravnborg.org
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
24 files changed:
include/asm-alpha/kvm.h [new file with mode: 0644]
include/asm-arm/kvm.h [new file with mode: 0644]
include/asm-avr32/kvm.h [new file with mode: 0644]
include/asm-blackfin/kvm.h [new file with mode: 0644]
include/asm-cris/kvm.h [new file with mode: 0644]
include/asm-frv/kvm.h [new file with mode: 0644]
include/asm-generic/Kbuild.asm
include/asm-h8300/kvm.h [new file with mode: 0644]
include/asm-ia64/kvm.h [new file with mode: 0644]
include/asm-m32r/kvm.h [new file with mode: 0644]
include/asm-m68k/kvm.h [new file with mode: 0644]
include/asm-m68knommu/kvm.h [new file with mode: 0644]
include/asm-mips/kvm.h [new file with mode: 0644]
include/asm-mn10300/kvm.h [new file with mode: 0644]
include/asm-parisc/kvm.h [new file with mode: 0644]
include/asm-powerpc/kvm.h [new file with mode: 0644]
include/asm-s390/kvm.h [new file with mode: 0644]
include/asm-sh/kvm.h [new file with mode: 0644]
include/asm-sparc/kvm.h [new file with mode: 0644]
include/asm-sparc64/kvm.h [new file with mode: 0644]
include/asm-um/kvm.h [new file with mode: 0644]
include/asm-v850/kvm.h [new file with mode: 0644]
include/asm-xtensa/kvm.h [new file with mode: 0644]
include/linux/Kbuild