2019-05-30 20:03:44 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2018-11-13 14:00:29 +08:00
|
|
|
generated-y += syscall_table.h
|
2014-02-03 17:38:39 +08:00
|
|
|
generic-y += barrier.h
|
2018-03-26 22:59:15 +08:00
|
|
|
generic-y += compat.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += device.h
|
2018-06-20 16:19:45 +08:00
|
|
|
generic-y += dma-mapping.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += emergency-restart.h
|
2012-08-03 16:12:38 +08:00
|
|
|
generic-y += exec.h
|
2016-12-26 03:33:17 +08:00
|
|
|
generic-y += extable.h
|
2015-01-06 15:49:52 +08:00
|
|
|
generic-y += futex.h
|
2012-10-30 14:24:27 +08:00
|
|
|
generic-y += hw_irq.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += irq_regs.h
|
2014-09-06 21:43:02 +08:00
|
|
|
generic-y += irq_work.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += kdebug.h
|
|
|
|
generic-y += kmap_types.h
|
2017-07-10 02:32:46 +08: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 17:08:12 +08:00
|
|
|
generic-y += kvm_para.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += local.h
|
2014-01-22 07:36:16 +08:00
|
|
|
generic-y += local64.h
|
2014-01-22 07:36:22 +08:00
|
|
|
generic-y += mcs_spinlock.h
|
2015-07-18 07:23:58 +08:00
|
|
|
generic-y += mm-arch-hooks.h
|
2019-02-22 20:49:41 +08:00
|
|
|
generic-y += mmiowb.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += percpu.h
|
2014-02-03 17:35:35 +08:00
|
|
|
generic-y += preempt.h
|
2012-06-01 03:49:48 +08:00
|
|
|
generic-y += sections.h
|
arch: unexport asm/shmparam.h for all architectures
Most architectures do not export shmparam.h to user-space.
$ find arch -name shmparam.h | sort
arch/alpha/include/asm/shmparam.h
arch/arc/include/asm/shmparam.h
arch/arm64/include/asm/shmparam.h
arch/arm/include/asm/shmparam.h
arch/csky/include/asm/shmparam.h
arch/ia64/include/asm/shmparam.h
arch/mips/include/asm/shmparam.h
arch/nds32/include/asm/shmparam.h
arch/nios2/include/asm/shmparam.h
arch/parisc/include/asm/shmparam.h
arch/powerpc/include/asm/shmparam.h
arch/s390/include/asm/shmparam.h
arch/sh/include/asm/shmparam.h
arch/sparc/include/asm/shmparam.h
arch/x86/include/asm/shmparam.h
arch/xtensa/include/asm/shmparam.h
Strangely, some users of the asm-generic wrapper export shmparam.h
$ git grep 'generic-y += shmparam.h'
arch/c6x/include/uapi/asm/Kbuild:generic-y += shmparam.h
arch/h8300/include/uapi/asm/Kbuild:generic-y += shmparam.h
arch/hexagon/include/uapi/asm/Kbuild:generic-y += shmparam.h
arch/m68k/include/uapi/asm/Kbuild:generic-y += shmparam.h
arch/microblaze/include/uapi/asm/Kbuild:generic-y += shmparam.h
arch/openrisc/include/uapi/asm/Kbuild:generic-y += shmparam.h
arch/riscv/include/asm/Kbuild:generic-y += shmparam.h
arch/unicore32/include/uapi/asm/Kbuild:generic-y += shmparam.h
The newly added riscv correctly creates the asm-generic wrapper
in the kernel space, but the others (c6x, h8300, hexagon, m68k,
microblaze, openrisc, unicore32) create the one in the uapi directory.
Digging into the git history, now I guess fcc8487d477a ("uapi:
export all headers under uapi directories") was the misconversion.
Prior to that commit, no architecture exported to shmparam.h
As its commit description said, that commit exported shmparam.h
for c6x, h8300, hexagon, m68k, openrisc, unicore32.
83f0124ad81e ("microblaze: remove asm-generic wrapper headers")
accidentally exported shmparam.h for microblaze.
This commit unexports shmparam.h for those architectures.
There is no more reason to export include/uapi/asm-generic/shmparam.h,
so it has been moved to include/asm-generic/shmparam.h
Link: http://lkml.kernel.org/r/1546904307-11124-1-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Stafford Horne <shorne@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Cc: Mark Salter <msalter@redhat.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Vincent Chen <deanbo422@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-02-02 06:20:12 +08:00
|
|
|
generic-y += shmparam.h
|
2012-10-30 14:24:28 +08:00
|
|
|
generic-y += spinlock.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += topology.h
|
2012-11-14 04:18:21 +08:00
|
|
|
generic-y += trace_clock.h
|
2012-05-30 05:30:08 +08:00
|
|
|
generic-y += word-at-a-time.h
|
2012-05-30 21:49:59 +08:00
|
|
|
generic-y += xor.h
|