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: 102212 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp2639740qgf; Wed, 15 Jun 2016 08:44:45 -0700 (PDT) X-Received: by 10.66.47.196 with SMTP id f4mr4437649pan.126.1466005485548; Wed, 15 Jun 2016 08:44:45 -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 r5si15699551pfr.51.2016.06.15.08.44.45; Wed, 15 Jun 2016 08:44:45 -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 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" 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__