Files
kernel_xiaomi_sm8250/include/linux
David Howells f3dfd599af UAPI: Fix conditional header installation handling (notably kvm_para.h on m68k)
The m68k arch doesn't have a kvm_para.h (unlike most or maybe all other
arches), but there is one in asm-generic.  This means that:

	ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
			  $(srctree)/include/asm-$(SRCARCH)/kvm_para.h \
			  $(INSTALL_HDR_PATH)/include/asm-*/kvm_para.h),)
	header-y += kvm_para.h
	endif

gets it wrong because it is invoked twice during the header installation - and
on the second occasion, asm-generic/kvm_para.h has been installed in usr/,
thus triggering a attempt to install asm-m68k/kvm_para.h which will fail.

There are three headers with this sort of conditional logic: a.out.h, kvm.h
and kvm_para.h.  For all three of them, change the logic to be something like:

	ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
			  $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),)

which finds the header in only the two places it should be found, and doesn't
get incorrectly triggered by the installation of asm-generic's version.

Signed-off-by: David Howells <dhowells@redhat.com>
2012-10-04 18:16:47 +01:00
..
2012-09-19 19:08:53 -06:00
2012-08-10 15:27:02 -04:00
2012-07-30 17:25:21 -07:00
2012-09-19 19:08:46 -06:00
2012-08-07 10:10:57 +02:00
2012-07-30 17:25:11 -07:00
2012-09-17 15:00:38 -07:00
2012-09-17 15:00:38 -07:00
2012-08-21 01:19:54 -07:00
2012-09-05 12:18:11 -07:00
2012-09-26 21:10:00 -04:00
2012-10-02 21:35:55 -04:00
2012-08-09 16:18:06 -07:00
2012-09-19 19:50:20 +02:00
2012-08-14 14:28:32 -07:00
2012-10-01 18:39:45 -04:00
2012-08-14 14:28:32 -07:00
2012-09-07 14:57:45 -04:00
2012-08-14 14:28:32 -07:00
2012-09-26 13:52:36 -07:00
2012-08-22 10:24:41 -04:00
2012-09-17 15:00:37 -07:00
2012-07-29 21:24:13 +04:00
2012-09-27 10:47:59 +02:00
2012-07-30 19:06:52 -04:00
2012-07-30 19:06:52 -04:00
2012-07-31 18:42:43 -07:00
2012-09-13 09:08:02 -06:00
2012-08-21 20:50:25 +02:00
2012-09-06 09:17:01 -07:00
2012-07-30 17:25:20 -07:00
2012-08-21 16:28:31 +02:00
2012-07-22 23:57:55 +04:00
2012-09-05 17:21:36 -07:00
2012-07-31 08:16:24 -06:00
2012-07-31 18:42:50 -07:00
2012-08-04 12:15:37 +04:00