linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/11] Kbuild: fix -Wmissing-include-path warnings
@ 2016-06-15 15:45 Arnd Bergmann
  2016-06-15 15:45 ` [PATCH v2 01/11] Kbuild: don't add ../../ to include path Arnd Bergmann
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Arnd Bergmann @ 2016-06-15 15:45 UTC (permalink / raw)
  To: Michal Marek
  Cc: linux-kbuild, linux-kernel, linux-arm-kernel, netdev, dri-devel,
	Arnd Bergmann

This warning is enabled at "make W=1" level, and found a bunch of
actual problems in code that adds -I flags to nonexisting directories.
All of these are harmless, but clearly wrong.

Kbuild itself also adds a bunch of extra directories, including in
some cases those outside of the kernel tree (e.g. ../../include),
which can have surprising consequences.

This series fixes all the warnings I found with -Wmissing-include-dirs
enabled on ARM randconfigs and x86 allmodconfig. The non-Kbuild
patches can all be applied independently, while we probably want
the Kbuild stuff to be kept as a series, if we decide to merge them.

I have added my test patch at the end, mainly to see if the Kbuild
bot finds any other warnings on additional architectures.

	Arnd

Arnd Bergmann (11):
  Kbuild: don't add ../../ to include path
  Kbuild: avoid duplicate include path
  Kbuild: always prefix objtree in LINUXINCLUDE
  Kbuild: arch: look for generated headers in obtree
  Kbuild: don't add obj tree in additional includes
  ARM: don't include removed directories
  ARM: hide mach-*/ include for ARM_SINGLE_ARMV7M
  drm: amd: remove broken include path
  net: skfb: remove obsolete -I cflag
  rtlwifi: don't add include path for rtl8188ee
  [EXPERIMENTAL] Kbuild: enable -Wmissing-include-dirs by default

 Makefile                                                | 16 ++++++++++------
 arch/alpha/boot/Makefile                                |  2 +-
 arch/arm/Makefile                                       |  2 ++
 arch/arm/mach-mvebu/Makefile                            |  3 +--
 arch/arm/mach-realview/Makefile                         |  3 +--
 arch/arm/mach-s5pv210/Makefile                          |  2 +-
 arch/powerpc/boot/Makefile                              |  2 +-
 arch/powerpc/kvm/Makefile                               |  2 +-
 arch/s390/boot/compressed/Makefile                      |  4 ++--
 arch/um/Makefile                                        |  4 ++--
 arch/x86/boot/Makefile                                  |  2 +-
 arch/x86/realmode/rm/Makefile                           |  2 +-
 drivers/gpu/drm/amd/acp/Makefile                        |  2 --
 drivers/net/fddi/skfp/Makefile                          |  2 +-
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/Makefile |  2 +-
 scripts/Kbuild.include                                  |  2 +-
 scripts/Makefile.lib                                    |  7 ++++---
 17 files changed, 31 insertions(+), 28 deletions(-)

-- 
2.9.0

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

end of thread, other threads:[~2016-07-19 18:07 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15 15:45 [PATCH v2 00/11] Kbuild: fix -Wmissing-include-path warnings Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 01/11] Kbuild: don't add ../../ to include path Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 02/11] Kbuild: avoid duplicate " Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 03/11] Kbuild: always prefix objtree in LINUXINCLUDE Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 04/11] Kbuild: arch: look for generated headers in obtree Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 05/11] Kbuild: don't add obj tree in additional includes Arnd Bergmann
2016-07-18 20:14   ` Michal Marek
2016-07-19  8:31     ` Arnd Bergmann
2016-07-19 14:33       ` Kalle Valo
2016-07-19 15:38         ` Arnd Bergmann
2016-07-19 18:07           ` Kalle Valo
2016-06-15 15:45 ` [PATCH v2 06/11] ARM: don't include removed directories Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 07/11] ARM: hide mach-*/ include for ARM_SINGLE_ARMV7M Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 08/11] drm: amd: remove broken include path Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 09/11] net: skfb: remove obsolete -I cflag Arnd Bergmann
2016-06-16  5:06   ` David Miller
2016-06-15 15:45 ` [PATCH v2 10/11] rtlwifi: don't add include path for rtl8188ee Arnd Bergmann
2016-06-15 15:45 ` [PATCH v2 11/11] [EXPERIMENTAL] Kbuild: enable -Wmissing-include-dirs by default Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).