mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
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 fb56dbb31c
Author: Avi Kivity <[email protected]>
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 <[email protected]>
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 <[email protected]>
Acked-by: Avi Kivity <[email protected]>
Cc: Sam Ravnborg <[email protected]
Cc: David Woodhouse <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
34 lines
751 B
NASM
34 lines
751 B
NASM
header-y += kvm.h
|
|
|
|
ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h)
|
|
unifdef-y += a.out.h
|
|
endif
|
|
unifdef-y += auxvec.h
|
|
unifdef-y += byteorder.h
|
|
unifdef-y += errno.h
|
|
unifdef-y += fcntl.h
|
|
unifdef-y += ioctl.h
|
|
unifdef-y += ioctls.h
|
|
unifdef-y += ipcbuf.h
|
|
unifdef-y += mman.h
|
|
unifdef-y += msgbuf.h
|
|
unifdef-y += param.h
|
|
unifdef-y += poll.h
|
|
unifdef-y += posix_types.h
|
|
unifdef-y += ptrace.h
|
|
unifdef-y += resource.h
|
|
unifdef-y += sembuf.h
|
|
unifdef-y += setup.h
|
|
unifdef-y += shmbuf.h
|
|
unifdef-y += sigcontext.h
|
|
unifdef-y += siginfo.h
|
|
unifdef-y += signal.h
|
|
unifdef-y += socket.h
|
|
unifdef-y += sockios.h
|
|
unifdef-y += stat.h
|
|
unifdef-y += statfs.h
|
|
unifdef-y += termbits.h
|
|
unifdef-y += termios.h
|
|
unifdef-y += types.h
|
|
unifdef-y += unistd.h
|