From patchwork Mon Jun 13 21:19:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102225 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1739756qgf; Mon, 13 Jun 2016 14:19:54 -0700 (PDT) X-Received: by 10.107.166.137 with SMTP id p131mr26203447ioe.121.1465852794450; Mon, 13 Jun 2016 14:19:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y63si34162412pfy.97.2016.06.13.14.19.53; Mon, 13 Jun 2016 14:19:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424092AbcFMVTp (ORCPT + 30 others); Mon, 13 Jun 2016 17:19:45 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:55659 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423581AbcFMVTb (ORCPT ); Mon, 13 Jun 2016 17:19:31 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0LmPUU-1blLps2cSo-00Zz0J; Mon, 13 Jun 2016 23:18:22 +0200 From: Arnd Bergmann To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 3/3] Kbuild: avoid duplicate include path Date: Mon, 13 Jun 2016 23:19:46 +0200 Message-Id: <1465852786-3559357-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1465852786-3559357-1-git-send-email-arnd@arndb.de> References: <1465852786-3559357-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:WmCrliuVMyYTzzqCGhvJi6eQYG8bvyghzmw5MuaWHQBmncScyI7 wy131flI0hlR2u1mwigEe1acyEGAl0Xkksk/+KORGPrNrt059Ddgo1Zel9QLSsI8dj0ZJuG Ut9FRXhtv+ybmUdGaYgfs2MvUbIr9c1q72m0NxV0GEKLun7rmwUv7R5HicxvxNJMSjBo+i8 AM5h1XKmnnJ3G1kTizm/A== X-UI-Out-Filterresults: notjunk:1; V01:K0:4pM2EmjOqBE=:kzdMfcO4sEifvDvkryeIxq ldDnmq5gz0iEgfClboWef6YNTpJ7mpNxSu4Pq6WHtmh6xWDofIni/1abfELwPAr0Ihdekxn9T ZmY2xhoH7g5cQasD3yVAu5J5OoNwSGzXPWA7aEqIA3TGIbWzwa64/oZWu/piEZfx0GyEusyKD ziLI1vWiDlcKWlsdfPePmqMaaeETqRcK032RX+0vM0fuhiiTkqhR6L7XGeRpngQ80B48Adrc3 Gj6g0bgG1Qby72oeZmw8IK6AfU9uuKQk5gdlnAmH1b5zaopZpT8Lr7Mve3JC9Iil9CU9CZiuj jH1j5cfL2K4d4fqQW16WwgW0jSqR2HIo6ByWYQ6W5oxALoxMdJrlG95X0YkDnXQevm9iv0Stj rTg9rfAXYQoJZF8GCfQGql6Ij2AMayQs0aTMiI4K592oQK5zqRgLYwmSuS1vuK9ccf9WtzKhz uYQuB1AuC3wmooCr0SRsYeNAqSoTCTLAiV6qDfnORSxVECcZT2M+yeWpLiNVKccwBkrn3UAEb zqU6FwcdpddM6nHdRxEziNedX9DxFe1SKRFi6nVEt64QeSSqXWVnulMwpeICLZayNBAmzMfJb 9wDhoorrbcssP9jND5KNJ7WJ+RisODv9IQNsHqWxo6jK5vRhRN+Z/nor7UUNwSDZ4YGlORmJa Og8FqYOzTDanuDWZ+AvEDBBEIYOcRt571RH//p5kdwXhu/eWNibtzSwc8t/dIR3cGuPY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/$(hdr-arch)/include/generated/uapi is included twice in the header search path, which is unnecessary, so this changes the top-level Makefile to drop the second instance by filtering out everything from USERINCLUDE that was already part of LINUXINCLUDE. This should have very little effect other than making the 'make V=1' output slightly smaller and making the build time faster by a miniscule amount, but it seems to be cleaner. Signed-off-by: Arnd Bergmann --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.7.0 diff --git a/Makefile b/Makefile index a1551fe4d829..abaffba5ff11 100644 --- a/Makefile +++ b/Makefile @@ -389,8 +389,9 @@ LINUXINCLUDE := \ -Iarch/$(hdr-arch)/include/generated/uapi \ -Iarch/$(hdr-arch)/include/generated \ $(if $(KBUILD_SRC), -I$(srctree)/include) \ - -Iinclude \ - $(USERINCLUDE) + -Iinclude + +LINUXINCLUDE += $(filter-out $(LINUXINCLUDE),$(USERINCLUDE)) KBUILD_CPPFLAGS := -D__KERNEL__