All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v02 00/45] Compile test and fixes for exported header files
@ 2015-02-16 23:05 Mikko Rapeli
  2015-02-16 23:05 ` [PATCH 01/45] Makefile: propagate verbose options Mikko Rapeli
                   ` (47 more replies)
  0 siblings, 48 replies; 143+ messages in thread
From: Mikko Rapeli @ 2015-02-16 23:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mikko Rapeli

v2:
added cross compiler support with CROSS_COMPILE,
detecting libc and GCC headers from compiler,
more header file fixes

v1:
https://lkml.org/lkml/2014/8/21/665

Users of kernel header files would be happier if they did not contain
kernel specific parts and would contain #include statements for all
other header files that they depend on, and in general would compile.

This patch set fixes some headers_install issues, then introduces a
compile test for headers exported to userspace and then fixes many of the
userspace header compilation failures.

Changes are also available in headers_test_v02 branch at github:
https://github.com/mcfrisk/linux/tree/headers_test_v02

Mikko Rapeli (45):
  Makefile: propagate verbose options
  scripts/headers.sh: add verbose option to make calls if defined
  headers_install.sh: enhance error handling
  scripts/headers_compile_test.sh: compile test script for exported
    headers
  drm.h: include stdlib.h in userspace
  drm_mode.h: include stdint.h and linux/types.h in userspace
  exynos_drm.h: include stdint.h in userspace
  nouveau_drm.h: include stdint.h in userspace
  radeon_drm.h: include stdint.h in userspace
  r128_drm.h: include drm/drm.h
  via_drm.h: include linux/types.h instead of non-existing
    via_drmclient.h
  via_drm.h: hide struct via_file_private in userspace
  savage_drm.h: include <drm/drm.h>
  sis_drm.h: hide sis_file_private in userspace
  dm-log-userspace.h: include stdint.h in userspace
  hsi_char.h: include stdint.h in userspace
  ebtables.h: include stdint.h in userspace
  cld.h: include stdint.h in userspace
  rds.h: include stdint.h in userspace
  sctp.h: include stdint.h in userspace
  scsi_bsg_fc.h: include stdint.h in userspace
  scsi_netlink.h: include stdint.h in userspace
  scsi_netlink_fc.h: include stdint.h in userspace
  hdspm.h: include stdint.h in userspace
  gntalloc.h: include stdint.h in userspace
  gntdev.h: include stdint.h in userspace
  include/uapi/linux/sysctl.h: include stdlib.h in userspace
  include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h
  include/uapi/asm-generic/msgbuf.h: include asm/ipcbuf.h
  include/uapi/asm-generic/shmbuf.h: include fixes
  asm-generic/sembuf.h: include asm/posix_types.h and asm/ipcbuf.h
  drm/i810_drm.h: include drm/drm.h
  include/uapi/asm-generic/signal.h: include stdlib.h in userspace
  include/uapi/asm-generic/signal.h: hide sigset_t definition in
    userspace
  include/uapi/sound/asound.h: include stdlib.h in userspace
  include/uapi/linux/netfilter.h: include in.h and in6.h
  include/uapi/linux/socket.h: include sys/socket.h in userspace
  include/uapi/linux/agpgart.h: include stdlib.h in userspace
  include/uapi/sound/asequencer.h: include sound/asound.h
  include/uapi/sound/emu10k1.h: include sound/asound.h
  include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and
    code_valid in userspace
  include/uapi/linux/rds.h: include linux/socket.h and linux/types.h
    always
  include/uapi/linux/netfilter_bridge.h: include if.h
  nf_conntrack_tuple_common.h: include linux/types.h and
    linux/netfilter.h
  include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

 Makefile                                           |   8 +-
 include/uapi/asm-generic/ipcbuf.h                  |   2 +
 include/uapi/asm-generic/msgbuf.h                  |   2 +
 include/uapi/asm-generic/sembuf.h                  |   2 +
 include/uapi/asm-generic/shmbuf.h                  |   6 +
 include/uapi/asm-generic/signal.h                  |   7 +
 include/uapi/asm-generic/ucontext.h                |   3 +
 include/uapi/drm/drm.h                             |   4 +
 include/uapi/drm/drm_mode.h                        |   5 +
 include/uapi/drm/exynos_drm.h                      |   5 +
 include/uapi/drm/i810_drm.h                        |   2 +
 include/uapi/drm/nouveau_drm.h                     |   6 +
 include/uapi/drm/r128_drm.h                        |   2 +
 include/uapi/drm/radeon_drm.h                      |   5 +
 include/uapi/drm/savage_drm.h                      |   2 +
 include/uapi/drm/sis_drm.h                         |   2 +
 include/uapi/drm/via_drm.h                         |   6 +-
 include/uapi/linux/agpgart.h                       |   1 +
 include/uapi/linux/dm-log-userspace.h              |   5 +
 include/uapi/linux/hsi/hsi_char.h                  |   7 +-
 include/uapi/linux/netfilter.h                     |   3 +-
 .../linux/netfilter/nf_conntrack_tuple_common.h    |   3 +
 include/uapi/linux/netfilter_bridge.h              |   1 +
 include/uapi/linux/netfilter_bridge/ebtables.h     |   5 +
 include/uapi/linux/nfsd/cld.h                      |   6 +
 include/uapi/linux/rds.h                           |   4 +
 include/uapi/linux/sctp.h                          |   4 +
 include/uapi/linux/socket.h                        |   4 +
 include/uapi/linux/sysctl.h                        |   4 +
 include/uapi/scsi/scsi_bsg_fc.h                    |   6 +
 include/uapi/scsi/scsi_netlink.h                   |   6 +-
 include/uapi/scsi/scsi_netlink_fc.h                |   5 +
 include/uapi/sound/asequencer.h                    |   1 +
 include/uapi/sound/asound.h                        |   3 +
 include/uapi/sound/emu10k1.h                       |   9 +-
 include/uapi/sound/hdspm.h                         |   6 +
 include/uapi/xen/gntalloc.h                        |   6 +
 include/uapi/xen/gntdev.h                          |   6 +
 scripts/headers.sh                                 |   2 +-
 scripts/headers_compile_test.sh                    | 143 +++++++++++++++++++++
 scripts/headers_install.sh                         |  15 ++-
 41 files changed, 306 insertions(+), 18 deletions(-)
 create mode 100755 scripts/headers_compile_test.sh

-- 
2.1.4


^ permalink raw reply	[flat|nested] 143+ messages in thread

end of thread, other threads:[~2015-04-09 16:09 UTC | newest]

Thread overview: 143+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-16 23:05 [PATCH RFC v02 00/45] Compile test and fixes for exported header files Mikko Rapeli
2015-02-16 23:05 ` [PATCH 01/45] Makefile: propagate verbose options Mikko Rapeli
2015-02-17  7:18   ` Masahiro Yamada
2015-03-10 22:36     ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 02/45] scripts/headers.sh: add verbose option to make calls if defined Mikko Rapeli
2015-02-17  7:18   ` Masahiro Yamada
2015-03-10 22:37     ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 03/45] headers_install.sh: enhance error handling Mikko Rapeli
2015-02-17 13:17   ` Michal Marek
2015-03-10 22:44     ` Mikko Rapeli
2015-03-11 10:16       ` Michal Marek
2015-03-11 10:24         ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 04/45] scripts/headers_compile_test.sh: compile test script for exported headers Mikko Rapeli
2015-02-16 23:05 ` [PATCH 05/45] drm.h: include stdlib.h in userspace Mikko Rapeli
2015-02-23 10:26   ` Emil Velikov
2015-02-23 10:26     ` Emil Velikov
2015-02-23 10:35     ` Mikko Rapeli
2015-02-23 10:35       ` Mikko Rapeli
2015-03-20 20:25       ` Emil Velikov
2015-03-20 20:25         ` Emil Velikov
2015-03-21 12:17         ` Mikko Rapeli
2015-03-21 12:17           ` Mikko Rapeli
2015-04-09 16:00           ` Emil Velikov
2015-04-09 16:00             ` Emil Velikov
2015-04-09 16:09             ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 06/45] drm_mode.h: include stdint.h and linux/types.h " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 07/45] exynos_drm.h: include stdint.h " Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 08/45] nouveau_drm.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 09/45] radeon_drm.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 10/45] r128_drm.h: include drm/drm.h Mikko Rapeli
2015-02-16 23:05 ` [PATCH 11/45] via_drm.h: include linux/types.h instead of non-existing via_drmclient.h Mikko Rapeli
2015-02-16 23:05 ` [PATCH 12/45] via_drm.h: hide struct via_file_private in userspace Mikko Rapeli
2015-02-16 23:05 ` [PATCH 13/45] savage_drm.h: include <drm/drm.h> Mikko Rapeli
2015-02-16 23:05 ` [PATCH 14/45] sis_drm.h: hide sis_file_private in userspace Mikko Rapeli
2015-02-16 23:05 ` [PATCH 15/45] dm-log-userspace.h: include stdint.h " Mikko Rapeli
2015-02-16 23:32   ` Mike Snitzer
2015-02-16 23:48     ` Mikko Rapeli
2015-02-16 23:48       ` Mikko Rapeli
2015-02-17  9:08   ` Arnd Bergmann
2015-02-17  9:08     ` Arnd Bergmann
2015-02-17 13:38     ` Alasdair G Kergon
2015-02-17 13:55       ` Arnd Bergmann
2015-02-17 13:55         ` Arnd Bergmann
2015-03-10 22:48         ` Mikko Rapeli
2015-03-10 22:48           ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 16/45] hsi_char.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 17/45] ebtables.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 18/45] cld.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 19/45] rds.h: " Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 20/45] sctp.h: " Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-17 13:11   ` Neil Horman
2015-02-17 13:11     ` Neil Horman
2015-02-17 13:11     ` Neil Horman
2015-02-18 15:48   ` Daniel Borkmann
2015-02-18 15:48     ` Daniel Borkmann
2015-02-18 15:48     ` Daniel Borkmann
2015-02-18 16:05     ` Mikko Rapeli
2015-02-18 16:05       ` Mikko Rapeli
2015-02-18 16:05       ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 21/45] scsi_bsg_fc.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 22/45] scsi_netlink.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 23/45] scsi_netlink_fc.h: " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 24/45] hdspm.h: " Mikko Rapeli
2015-02-17  6:46   ` Takashi Iwai
2015-02-17  6:46     ` Takashi Iwai
2015-03-11  0:28     ` Mikko Rapeli
2015-03-11  6:09       ` Takashi Iwai
2015-03-11  6:09         ` Takashi Iwai
2015-02-16 23:05 ` [PATCH 25/45] gntalloc.h: " Mikko Rapeli
2015-02-18 11:53   ` David Vrabel
2015-02-18 11:53   ` [Xen-devel] " David Vrabel
2015-02-18 11:53     ` David Vrabel
2015-03-10 22:48     ` Mikko Rapeli
2015-03-10 22:48     ` [Xen-devel] " Mikko Rapeli
2015-03-10 22:48       ` Mikko Rapeli
2015-02-16 23:05 ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 26/45] gntdev.h: " Mikko Rapeli
2015-02-16 23:05 ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 27/45] include/uapi/linux/sysctl.h: include stdlib.h " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 28/45] include/uapi/asm-generic/ipcbuf.h: include linux/posix_types.h Mikko Rapeli
2015-02-16 23:05 ` [PATCH 29/45] include/uapi/asm-generic/msgbuf.h: include asm/ipcbuf.h Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 30/45] include/uapi/asm-generic/shmbuf.h: include fixes Mikko Rapeli
2015-02-16 23:05 ` [PATCH 31/45] asm-generic/sembuf.h: include asm/posix_types.h and asm/ipcbuf.h Mikko Rapeli
2015-02-16 23:05 ` [PATCH 32/45] drm/i810_drm.h: include drm/drm.h Mikko Rapeli
2015-02-16 23:05 ` [PATCH 33/45] include/uapi/asm-generic/signal.h: include stdlib.h in userspace Mikko Rapeli
2015-02-17  9:44   ` Arnd Bergmann
2015-02-17  9:44     ` Arnd Bergmann
2015-03-10 22:58     ` Mikko Rapeli
2015-03-11 10:02       ` Arnd Bergmann
2015-03-11 10:02         ` Arnd Bergmann
2015-02-16 23:05 ` [PATCH 34/45] include/uapi/asm-generic/signal.h: hide sigset_t definition " Mikko Rapeli
2015-02-17  9:16   ` Arnd Bergmann
2015-02-17  9:16     ` Arnd Bergmann
2015-03-11  0:05     ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 35/45] include/uapi/sound/asound.h: include stdlib.h " Mikko Rapeli
2015-02-17  6:46   ` Takashi Iwai
2015-02-16 23:05 ` [PATCH 36/45] include/uapi/linux/netfilter.h: include in.h and in6.h Mikko Rapeli
2015-02-16 23:05 ` [PATCH 37/45] include/uapi/linux/socket.h: include sys/socket.h in userspace Mikko Rapeli
2015-02-17  9:14   ` Arnd Bergmann
2015-02-17  9:14     ` Arnd Bergmann
2015-03-11  0:38     ` Mikko Rapeli
2015-03-11  0:38       ` Mikko Rapeli
2015-03-11  0:59       ` Mikko Rapeli
2015-03-11  0:59         ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 38/45] include/uapi/linux/agpgart.h: include stdlib.h " Mikko Rapeli
2015-02-16 23:05 ` [PATCH 39/45] include/uapi/sound/asequencer.h: include sound/asound.h Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-17  6:46   ` Takashi Iwai
2015-02-16 23:05 ` [PATCH 40/45] include/uapi/sound/emu10k1.h: " Mikko Rapeli
2015-02-17  6:46   ` Takashi Iwai
2015-02-16 23:05 ` [PATCH 41/45] include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and code_valid in userspace Mikko Rapeli
2015-02-17  6:27   ` Takashi Iwai
2015-02-17  6:27     ` Takashi Iwai
2015-03-11  1:22     ` Mikko Rapeli
2015-03-11  1:22       ` Mikko Rapeli
2015-03-11  6:11       ` Takashi Iwai
2015-03-11  6:11         ` Takashi Iwai
2015-03-11  9:46         ` Arnd Bergmann
2015-03-11  9:46           ` Arnd Bergmann
2015-03-12  6:11           ` Takashi Iwai
2015-03-12  6:11             ` Takashi Iwai
2015-03-12  8:45             ` Arnd Bergmann
2015-03-12  8:45               ` Arnd Bergmann
2015-03-12  9:05               ` Takashi Iwai
2015-03-12  9:05                 ` Takashi Iwai
2015-02-16 23:05 ` [PATCH 42/45] include/uapi/linux/rds.h: include linux/socket.h and linux/types.h always Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 43/45] include/uapi/linux/netfilter_bridge.h: include if.h Mikko Rapeli
2015-02-17  0:02   ` Jan Engelhardt
2015-02-17  0:02     ` Jan Engelhardt
2015-03-11  1:49     ` Mikko Rapeli
2015-03-11  1:49       ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 44/45] nf_conntrack_tuple_common.h: include linux/types.h and linux/netfilter.h Mikko Rapeli
2015-02-16 23:05   ` Mikko Rapeli
2015-02-16 23:05 ` [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h Mikko Rapeli
2015-02-17  9:10   ` Arnd Bergmann
2015-03-11  1:59     ` Mikko Rapeli
2015-02-18 16:16 ` [PATCH RFC v02 00/45] Compile test and fixes for exported header files Mikko Rapeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.