From patchwork Wed Jun 15 15:45:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9178813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11F4C604DB for ; Wed, 15 Jun 2016 15:44:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02EE327BFF for ; Wed, 15 Jun 2016 15:44:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBFF327EED; Wed, 15 Jun 2016 15:44:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB96527BFF for ; Wed, 15 Jun 2016 15:44:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D47376E141; Wed, 15 Jun 2016 15:44:39 +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 [217.72.192.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3527E6E982 for ; Wed, 15 Jun 2016 15:44:36 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LeLdN-1bl7VB3QE9-00qAan; Wed, 15 Jun 2016 17:44:28 +0200 From: Arnd Bergmann To: Michal Marek Subject: [PATCH v2 02/11] Kbuild: avoid duplicate include path Date: Wed, 15 Jun 2016 17:45:44 +0200 Message-Id: <20160615154553.3177021-3-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:jjraJj0S7QdszFFdBChy1dyUkbZLBprBDfg3ZU2gu0MIkdZSW1W 1UP7FnVxGHvF4eZKlII5/kTmgmxjal7UIC0WceSeXmgKSxW6oyHlFBdtN5YTTEY9x3KFbx5 Wnl8bL/TrdIF9r3AEY44i/ielUJ0ytz5NlgUw5+PNmSw84Lo8uUnLMCOvM+X5U1bpoQ8+G7 a0GGCikL42ZRdv5Ly2J2g== X-UI-Out-Filterresults: notjunk:1; V01:K0:+beE1URiims=:1eeGbEvEVXUiSQfNyDVYOn KLYZajitQbPq+Y5g2WiC/M6JTsglNPQkuTIW/OXqLAK08DfL+lSOUUpJetHsmh1IPVoIzVKi1 2iK7KcQg07jWi4+BCln/GdemXU1ykSvwJ+Y9k1cgsrKipSwe0qD9xgK37OUIi6YeRK9Hql1XW W/YVDSUpy8JngGFepbYp8sjQsUkadWHa/q8KkJ7DhuZANa8GqWpPD9eGV+4PkvQH8A6a0TU89 q13o20chAb2MCo4lbIrNadxw/wnZpKjjMIFyDI7hr06/3V1ZDdkuEV/PYvBK0yZk1b746qlrB m+0aO8GjSX7LZb+mtv2sJGmNbpupUS/PrlsVVcXnQAHEyKMtNe1y++6tA4PPz0UN7f/2Se4s9 ywcJcv9erAF2mGsUI6hBCVYrekK/Ge2UaUfLydcHVBU1nr5e5GWF4d8/mzfOlU6ueapAVrfzP wsKxvfX3g7fciZvl3+SqCnyN3EpbuC7ZlOK756T3piLlROvOrTGwALXQBgjKzDDHD1qg8I+yL bYLNwRkIKCJewPI+gmBHdfUs5i3dTUNGgjDtDtXtSRKhMZ898HySwGAibz+6D3QU7KXz27DAW bi1heh0NA38PBTdO0UQlSRIF8E1zrMOn7nWalfuHFSSP0NeciZEOKu8V/HMMLAdTKJYsT5TjK 1XUYhc4DYDZBtU0NJqmZyb1ctikjqtSPyJI+sYHCgvuE6BCeBXfu2ZH0cnLRJQMr6fbU= 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" X-Virus-Scanned: ClamAV using ClamSMTP 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(-) diff --git a/Makefile b/Makefile index 8b80a1506be0..45159861e645 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__