From patchwork Wed Jun 15 15:45:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102202 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2640303qgf; Wed, 15 Jun 2016 08:45:56 -0700 (PDT) X-Received: by 10.107.136.10 with SMTP id k10mr229998iod.0.1466005549770; Wed, 15 Jun 2016 08:45:49 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTP id s13si31415429pag.207.2016.06.15.08.45.49; Wed, 15 Jun 2016 08:45:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D43FA6E98C; Wed, 15 Jun 2016 15:45:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC9CF6E989 for ; Wed, 15 Jun 2016 15:45:36 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LrKBQ-1bPLUm11zg-013904; Wed, 15 Jun 2016 17:44:28 +0200 From: Arnd Bergmann To: Michal Marek 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= Cc: Arnd Bergmann , linux-kbuild@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(-)