UAPI fixes 2012-10-17

-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 
 iQIVAwUAUH60qBOxKuMESys7AQKQkw/+OB9DOP86qLEpNBNt5Ue4Ee8G6F6oj32M
 eUIH71iD9HWVbEsWwwhXZmZcGOJzLbfX4cN2FIiFl4Jxxj3NwDE7GJMRY2sOBp+q
 SYrUVahcpHM4CDaFX6778pSAicM7cb7F5FyPPF7C0y39bor/Znm9SMmP83oyYcwo
 smYO6NVl3Qi9b0xlHIYLE3BadO7SIGHt5crqDqZMNue1jiTox/4lliIIGer4rr3q
 NaJjW2P19pG+ok0HNzHmhBKp+wpila9+TgQHsZjE+u6DizGsxxq6fiPi6A8EWAA/
 mEPJQW73qeNA/kzEwjmvEoVNoOd+X3kT+cpaMegKT4BQdLyi6LtAlhw5RMXLPucd
 KvmYTFxcMxxNlQbD28hCdm1kTj6cOaZS96bpz4mwYXMOlljLyi49XEceh7G9ue1S
 0fOds/maCLPNcxyThcrP12pIn3Ou9ZpL7UjQKvNeZirVed25hi2lkbza9UeRRYRu
 y13ELZKges9I2BQ3moMOSZ7TnUGepP8ohnVJnE8w7hegrz2L7WkNPdbuYEV5lqoP
 jJVtf5pjvjhLAGUPvzWWgH2sbV12U+Fi35A5+YELoqd+OXU/gCSU1YeeeotAFdst
 gka9HloiYQHSWLbj/1SXUo058WI6/dNwZcj1KznJrBkk87V48SM4BPsZ4zbt7nww
 19Fr3cD7YMY=
 =UV14
 -----END PGP SIGNATURE-----

Merge tag 'uapi-fixes-20121017' of git://git.infradead.org/users/dhowells/linux-headers

Pull misc UAPI fixes from David Howells:
 "They do a number of things:

  (1) Import a patch from Catalin Marinas to extend the generic-y in
      Kbuild facility to uapi directories.

  (2) Make arch/tile's ucontext.h file use (1) and remove the header-y
      line from the kernel internal side of things.

  (3) Remove some now-empty conditional bits from include/linux/Kbuild.
      The contents got moved to the UAPI side of things along with new
      conditionals.

  (4) Deal with now-empty files:

     (a) Empty Kbuild files under include/ get removed.

     (b) Empty Kbuild files under arch/ get comments to hold them as
         they are likely to end up with generic-y or genhdr-y lines.
         Deleting them appears to work if we want to go that route.

     (c) Put a comment into uapi/asm-generic/kvm_para.h to prevent the
         patch program from deleting that, and made the arches with
         empty kvm_para.h uapi files use that instead of having their
         own files.

     (d) Put comments into four other empty uapi/ headers to prevent the
         patch program from deleting them.

  A question: Is this the right way to deal with the now-empty Kbuild
  files?

  The ones under include/ are unlikely to be used - even for generated
  files, I think - so getting rid of them is probably okay.  Once all
  the bits are in, we can probably remove all the Kbuild files under
  include/ that aren't also under include/uapi/.

  The ones under arch/ are more of an issue because of the potential for
  generic-y and genhdr-y."

* tag 'uapi-fixes-20121017' of git://git.infradead.org/users/dhowells/linux-headers:
  UAPI: Make arch/sparc/include/uapi/asm/sigcontext.h non-empty
  UAPI: Make arch/sh/include/uapi/asm/hw_breakpoint.h non-empty
  UAPI: Make arch/mn10300/include/uapi/asm/setup.h non-empty
  UAPI: Put a comment into uapi/asm-generic/kvm_para.h and use it from arches
  UAPI: The tile arch uses the generic ucontext.h file
  UAPI: Place comments in empty arch Kbuilds to make them non-empty
  UAPI: Remove empty non-UAPI Kbuild files
  UAPI: Remove empty conditionals from include/linux/Kbuild
  UAPI: Make uapi/linux/irqnr.h non-empty
  uapi: Allow automatic generation of uapi/asm/ header files
tirimbino
Linus Torvalds 12 years ago
commit 985c9e615a
  1. 4
      Makefile
  2. 2
      arch/ia64/include/uapi/asm/Kbuild
  3. 0
      arch/ia64/include/uapi/asm/kvm_para.h
  4. 1
      arch/mips/include/asm/Kbuild
  5. 4
      arch/mn10300/include/uapi/asm/setup.h
  6. 2
      arch/s390/include/uapi/asm/Kbuild
  7. 0
      arch/s390/include/uapi/asm/kvm_para.h
  8. 4
      arch/sh/include/uapi/asm/hw_breakpoint.h
  9. 4
      arch/sparc/include/uapi/asm/sigcontext.h
  10. 1
      arch/tile/include/arch/Kbuild
  11. 3
      arch/tile/include/asm/Kbuild
  12. 3
      arch/tile/include/uapi/asm/Kbuild
  13. 4
      include/Kbuild
  14. 0
      include/asm-generic/Kbuild
  15. 0
      include/drm/Kbuild
  16. 26
      include/linux/Kbuild
  17. 0
      include/linux/byteorder/Kbuild
  18. 0
      include/linux/caif/Kbuild
  19. 0
      include/linux/can/Kbuild
  20. 0
      include/linux/isdn/Kbuild
  21. 0
      include/linux/mmc/Kbuild
  22. 1
      include/linux/netfilter/Kbuild
  23. 0
      include/linux/netfilter/ipset/Kbuild
  24. 0
      include/linux/netfilter_arp/Kbuild
  25. 0
      include/linux/netfilter_bridge/Kbuild
  26. 0
      include/linux/netfilter_ipv4/Kbuild
  27. 0
      include/linux/netfilter_ipv6/Kbuild
  28. 0
      include/linux/nfsd/Kbuild
  29. 0
      include/linux/spi/Kbuild
  30. 0
      include/linux/sunrpc/Kbuild
  31. 0
      include/linux/tc_act/Kbuild
  32. 0
      include/linux/tc_ematch/Kbuild
  33. 0
      include/linux/wimax/Kbuild
  34. 0
      include/mtd/Kbuild
  35. 4
      include/uapi/asm-generic/kvm_para.h
  36. 4
      include/uapi/linux/irqnr.h
  37. 0
      include/xen/Kbuild
  38. 2
      scripts/Makefile.asm-generic

@ -437,7 +437,9 @@ endif
PHONY += asm-generic PHONY += asm-generic
asm-generic: asm-generic:
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
obj=arch/$(SRCARCH)/include/generated/asm src=asm obj=arch/$(SRCARCH)/include/generated/asm
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm
# To make sure we do not include .config for any of the *config targets # To make sure we do not include .config for any of the *config targets
# catch them early, and hand them over to scripts/kconfig/Makefile # catch them early, and hand them over to scripts/kconfig/Makefile

@ -1,6 +1,8 @@
# UAPI Header export list # UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm include include/uapi/asm-generic/Kbuild.asm
generic-y += kvm_para.h
header-y += auxvec.h header-y += auxvec.h
header-y += bitsperlong.h header-y += bitsperlong.h
header-y += break.h header-y += break.h

@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/

@ -1,6 +1,8 @@
# UAPI Header export list # UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm include include/uapi/asm-generic/Kbuild.asm
generic-y += kvm_para.h
header-y += auxvec.h header-y += auxvec.h
header-y += bitsperlong.h header-y += bitsperlong.h
header-y += byteorder.h header-y += byteorder.h

@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/

@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/

@ -0,0 +1 @@
# Tile arch headers

@ -1,8 +1,6 @@
header-y += ../arch/ header-y += ../arch/
header-y += ucontext.h
generic-y += bug.h generic-y += bug.h
generic-y += bugs.h generic-y += bugs.h
generic-y += clkdev.h generic-y += clkdev.h
@ -37,5 +35,4 @@ generic-y += statfs.h
generic-y += termbits.h generic-y += termbits.h
generic-y += termios.h generic-y += termios.h
generic-y += types.h generic-y += types.h
generic-y += ucontext.h
generic-y += xor.h generic-y += xor.h

@ -15,4 +15,7 @@ header-y += siginfo.h
header-y += signal.h header-y += signal.h
header-y += stat.h header-y += stat.h
header-y += swab.h header-y += swab.h
header-y += ucontext.h
header-y += unistd.h header-y += unistd.h
generic-y += ucontext.h

@ -1,12 +1,8 @@
# Top-level Makefile calls into asm-$(ARCH) # Top-level Makefile calls into asm-$(ARCH)
# List only non-arch directories below # List only non-arch directories below
header-y += asm-generic/
header-y += linux/ header-y += linux/
header-y += sound/ header-y += sound/
header-y += mtd/
header-y += rdma/ header-y += rdma/
header-y += video/ header-y += video/
header-y += drm/
header-y += xen/
header-y += scsi/ header-y += scsi/

@ -1,31 +1,5 @@
header-y += byteorder/
header-y += can/
header-y += caif/
header-y += dvb/ header-y += dvb/
header-y += hdlc/ header-y += hdlc/
header-y += hsi/ header-y += hsi/
header-y += isdn/
header-y += mmc/
header-y += nfsd/
header-y += raid/ header-y += raid/
header-y += spi/
header-y += sunrpc/
header-y += tc_act/
header-y += tc_ematch/
header-y += netfilter/
header-y += netfilter_arp/
header-y += netfilter_bridge/
header-y += netfilter_ipv4/
header-y += netfilter_ipv6/
header-y += usb/ header-y += usb/
header-y += wimax/
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h),)
endif
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm.h),)
endif
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),)
endif

@ -1 +0,0 @@
header-y += ipset/

@ -0,0 +1,4 @@
/*
* There isn't anything here, but the file must not be empty or patch
* will delete it.
*/

@ -0,0 +1,4 @@
/*
* There isn't anything here anymore, but the file must not be empty or patch
* will delete it.
*/

@ -5,7 +5,7 @@
# and for each file listed in this file with generic-y creates # and for each file listed in this file with generic-y creates
# a small wrapper file in $(obj) (arch/$(SRCARCH)/include/generated/asm) # a small wrapper file in $(obj) (arch/$(SRCARCH)/include/generated/asm)
kbuild-file := $(srctree)/arch/$(SRCARCH)/include/asm/Kbuild kbuild-file := $(srctree)/arch/$(SRCARCH)/include/$(src)/Kbuild
-include $(kbuild-file) -include $(kbuild-file)
include scripts/Kbuild.include include scripts/Kbuild.include

Loading…
Cancel
Save