From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161238AbcFOPqQ (ORCPT ); Wed, 15 Jun 2016 11:46:16 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:52238 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932871AbcFOPqF (ORCPT ); Wed, 15 Jun 2016 11:46:05 -0400 From: Arnd Bergmann To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann Subject: [PATCH v2 00/11] Kbuild: fix -Wmissing-include-path warnings Date: Wed, 15 Jun 2016 17:45:42 +0200 Message-Id: <20160615154553.3177021-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:QwtFaetq1wML9do/InELy6i9KlICdHblQiAofPbspfpOeNidkg+ ufwzA1zHC7Nh3XDOoq9EKWph2Pj/yCrqSQ0YodSf+5HqCfyQNHdISps8bmow1klnxHiTGNA FQCvmuDqyXLA4yvDcKE75JmSIcUN0rg6uwpQDPK7WINKC82ABOpOD2kwosr+p55sMm/Y3Bd ZJRJ+rISUv3ixVv/xeyKQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:fjlhtQxs/ms=:QvLH0WJmayVQEVQfx/haWD H5Elsxj2YKg+1htWTMwg6MfOMlxHw7CzLnybps0F0TUTkSZdfSo4F4oDNs4VzQxMTuJc3yuwz sE/xXsbrZvqL9UAFejaSfEBzcDbCjQTK1Zl7He/thIE7KZPMZxGZaTHREShreyhMmyigkq2NP AqhaAnbi6RwsAFbA6vn+DP1wL0Ifjr1PjSdx6O3trEKzoRfzQY45hlYa9soiuwkpSWGDjrm0m N3nMwD9DbmEHGE8bPxJwt4XZrzR9EsVQHGMT4y55Xuoyfj21Pb7lTZXsZuiBQw2kjrhxIBQd7 kGhTDtix6mdBfGTBlsxYN5uK3Cz/Q6Rifys0lh2qynaR6WZ0pYAhUQ6m8Ex97LB/y43F/qQHO 7LiwmDbHAIAFHlbLuVFOUPV4D88igPX4BVsRheEl1RsAlXgEEWaW+jwfRm/8jJuK3SsGuYk8V qggTRyXkgn+TzgY8lX/+/V7ctZo5GU7tlxvLgWEMd6ET1AAjVZn/P+NVCjUBqJn0mmQVOiKR9 45K7P0pjtK8dk0RvGrTfMpPY9LL2cn2/wLzRxuDTWemy/xXt0CY7PrrewSnke7f142vZXJ2Dt X81lE0eSLfNjFl+j+IHP279P7bkHuOFR2czyHYw+ZJ3vs28CBLCP4ZYCD6XcGbm7U53sK4dGD /PbWUg92TxsjVs4DI+w8LbZpxldZJJEV+WnjbMuiMVWVoYzUzK/waJtuiOAdCsUJ8hqQ= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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