From patchwork Wed Jun 15 15:45:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102207 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2640143qgf; Wed, 15 Jun 2016 08:45:36 -0700 (PDT) X-Received: by 10.36.152.2 with SMTP id n2mr48341itd.67.1466005535557; Wed, 15 Jun 2016 08:45:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r27si15356453pfb.132.2016.06.15.08.45.35; Wed, 15 Jun 2016 08:45:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161106AbcFOPpT (ORCPT + 4 others); Wed, 15 Jun 2016 11:45:19 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:60807 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933302AbcFOPpN (ORCPT ); Wed, 15 Jun 2016 11:45:13 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LjaQK-1bokfH2oeW-00bXzY; Wed, 15 Jun 2016 17:44:31 +0200 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 11/11] [EXPERIMENTAL] Kbuild: enable -Wmissing-include-dirs by default Date: Wed, 15 Jun 2016 17:45:53 +0200 Message-Id: <20160615154553.3177021-12-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160615154553.3177021-1-arnd@arndb.de> References: <20160615154553.3177021-1-arnd@arndb.de> X-Provags-ID: V03:K0:QrEUWbdl5wK19V9hH6cY1v/hAIq4KlSxtkNB9Kj1OfnBpXQx3// N4XNhscT4PM/SxZvdDAe68GXRlquyng2gw3qeQGHBo+ojMegJ36vkwFdcnCPpgcMjmF4NEY R9TaZNipoTKGwYAs7aMDf0la/5IFx/5L+C/Bg5Sa20+8udvBsts9R9vOQNY7zSc4Ys+8jaO eWCG6GvkNMLySjRyOsMAg== X-UI-Out-Filterresults: notjunk:1; V01:K0:hQxMsA0gs8w=:n0d7MxEUop5GT2vhHgIMP3 aEgmeq9bVxeyaLa9kHtYENZRF8iBatD0wmxL7lxWzXWeBbmAJRFxGoGDKFrr3yp4Pug2m/e1A OYBLeGP0s5S+B6qC1Bc38QSO5z9pP+D8EbKwSsUnef1hZY5FAJGrWTlGRjS3K3m5UM9albI4M YQjYY3WM15dlqaQvzKYQ0XeqVn0DZ03I6gEMpyKiyzRPtgTgWnPe8p4iYR3/dgbPI5OQMx5/D SoIgfGciO+0L0G2NUhMwtvIy81zhS42iPt3WYp78zHOdRjPaKj+jeFIxcld2+VPuofoCabqIp yuRLDDX29LJ7SqycMoKg954U63Qtl3wNowKK5jPxbD2Gkgm3iqrKpyB5LzB90d1pxg8ZBU1Ra tNKiueuF7atulBc16L0g+EHm2J2Ufw7q/TXgujGQ47hrcwukRfzVQry/Y9Ui4ineQyf8LD36K edHk2FnVNBlj+68YM6XUSb1pwrQViqrTqxoq4cIQlQIcJ8OyvxFu0E1oXq2t5uge60lpzj0ZG XGXdiV/cBFEln6PefQrCLqwoVWqURq/s22qkgtTHyUiC5G1wiyYw0PJXWA2NN6LRZ6ClvRlSR xtzK9bCByhA6nkJc3Ew9MxIR/snY1SL8QCjIy9hEreO3WyY9YVSdYrVOOg5CsbaR8KoFWBVaP WynC8vxzQ+SYVCYywDDzDTeOii5BP/H6g4V2VTPcs5w0MYkgrBxfTOHzwCg8UqVBTosM= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org I have fixed up all -Wmissing-include-dirs on ARM randconfig builds, so we could make this the default, but I have not tested this at all on other architectures. This enables it anyway, just to see what other warnings we get when the build bot analyses the branch. Don't apply (yet). Signed-off-by: Arnd Bergmann --- Makefile | 3 +++ 1 file changed, 3 insertions(+) -- 2.9.0 diff --git a/Makefile b/Makefile index 969924783543..2305cbd61e60 100644 --- a/Makefile +++ b/Makefile @@ -781,6 +781,9 @@ endif NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) CHECKFLAGS += $(NOSTDINC_FLAGS) +# warn about incorrect -I include paths +KBUILD_CFLAGS += -Wmissing-include-dirs + # warn about C99 declaration after statement KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)