2019-05-30 19:03:44 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2018-11-13 17:19:30 +07:00
|
|
|
generated-y += syscall_table.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += bug.h
|
2018-03-26 21:59:15 +07:00
|
|
|
generic-y += compat.h
|
2017-07-21 15:35:31 +07:00
|
|
|
generic-y += device.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += div64.h
|
2018-06-19 14:03:16 +07:00
|
|
|
generic-y += dma-mapping.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += emergency-restart.h
|
2012-08-03 15:12:38 +07:00
|
|
|
generic-y += exec.h
|
2016-12-26 02:34:44 +07:00
|
|
|
generic-y += extable.h
|
2017-07-15 04:50:03 +07:00
|
|
|
generic-y += fb.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += hardirq.h
|
2019-09-28 04:12:57 +07:00
|
|
|
generic-y += hw_irq.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += irq_regs.h
|
2014-09-06 20:43:02 +07:00
|
|
|
generic-y += irq_work.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += kdebug.h
|
|
|
|
generic-y += kmap_types.h
|
2017-07-10 01:32:57 +07:00
|
|
|
generic-y += kprobes.h
|
KVM: export <linux/kvm_para.h> and <asm/kvm_para.h> iif KVM is supported
I do not see any consistency about headers_install of <linux/kvm_para.h>
and <asm/kvm_para.h>.
According to my analysis of Linux 5.1-rc1, there are 3 groups:
[1] Both <linux/kvm_para.h> and <asm/kvm_para.h> are exported
alpha, arm, hexagon, mips, powerpc, s390, sparc, x86
[2] <asm/kvm_para.h> is exported, but <linux/kvm_para.h> is not
arc, arm64, c6x, h8300, ia64, m68k, microblaze, nios2, openrisc,
parisc, sh, unicore32, xtensa
[3] Neither <linux/kvm_para.h> nor <asm/kvm_para.h> is exported
csky, nds32, riscv
This does not match to the actual KVM support. At least, [2] is
half-baked.
Nor do arch maintainers look like they care about this. For example,
commit 0add53713b1c ("microblaze: Add missing kvm_para.h to Kbuild")
exported <asm/kvm_para.h> to user-space in order to fix an in-kernel
build error.
We have two ways to make this consistent:
[A] export both <linux/kvm_para.h> and <asm/kvm_para.h> for all
architectures, irrespective of the KVM support
[B] Match the header export of <linux/kvm_para.h> and <asm/kvm_para.h>
to the KVM support
My first attempt was [A] because the code looks cleaner, but Paolo
suggested [B].
So, this commit goes with [B].
For most architectures, <asm/kvm_para.h> was moved to the kernel-space.
I changed include/uapi/linux/Kbuild so that it checks generated
asm/kvm_para.h as well as check-in ones.
After this commit, there will be two groups:
[1] Both <linux/kvm_para.h> and <asm/kvm_para.h> are exported
arm, arm64, mips, powerpc, s390, x86
[2] Neither <linux/kvm_para.h> nor <asm/kvm_para.h> is exported
alpha, arc, c6x, csky, h8300, hexagon, ia64, m68k, microblaze,
nds32, nios2, openrisc, parisc, riscv, sh, sparc, unicore32, xtensa
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-03-18 16:08:12 +07:00
|
|
|
generic-y += kvm_para.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += local.h
|
|
|
|
generic-y += local64.h
|
2014-01-22 06:36:22 +07:00
|
|
|
generic-y += mcs_spinlock.h
|
2015-07-18 06:23:58 +07:00
|
|
|
generic-y += mm-arch-hooks.h
|
2019-02-22 19:49:41 +07:00
|
|
|
generic-y += mmiowb.h
|
2017-07-21 15:44:07 +07:00
|
|
|
generic-y += param.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += percpu.h
|
2014-01-22 06:36:16 +07:00
|
|
|
generic-y += preempt.h
|
2019-01-02 05:08:32 +07:00
|
|
|
generic-y += qrwlock.h
|
|
|
|
generic-y += qspinlock.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += sections.h
|
|
|
|
generic-y += topology.h
|
2012-11-14 03:18:21 +07:00
|
|
|
generic-y += trace_clock.h
|
2019-09-28 04:12:57 +07:00
|
|
|
generic-y += user.h
|
2018-10-27 05:03:02 +07:00
|
|
|
generic-y += vga.h
|
2015-04-29 23:48:40 +07:00
|
|
|
generic-y += word-at-a-time.h
|
2012-10-15 06:55:41 +07:00
|
|
|
generic-y += xor.h
|