From patchwork Wed Jun 15 15:45:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9178815 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 42E18604DB for ; Wed, 15 Jun 2016 15:45:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 327F227EED for ; Wed, 15 Jun 2016 15:45:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C91827F3E; Wed, 15 Jun 2016 15:45:06 +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 BF19D27EED for ; Wed, 15 Jun 2016 15:45:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BBC5D6E13C; Wed, 15 Jun 2016 15:45:03 +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.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8FCBC6E986 for ; Wed, 15 Jun 2016 15:44:39 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LoHFZ-1bsrGJ1IxF-00gExZ; Wed, 15 Jun 2016 17:44:30 +0200 From: Arnd Bergmann To: Michal Marek Subject: [PATCH v2 07/11] ARM: hide mach-*/ include for ARM_SINGLE_ARMV7M Date: Wed, 15 Jun 2016 17:45:49 +0200 Message-Id: <20160615154553.3177021-8-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:OFT6Z/8VNCqrFQ4+WazcOXMXloQj+ngYWIk3ofzc8D0GeKbUCNK SiLn0igDaq5Ibazl5HTKMKt5JVTiTSxSPjTyhTP+ci/BEeoHIrwThnAWsaHDkVyR1VI24fq ZFEwPOYsKEun3HcgBPrKgCZUJHZ8UGBxd2HmwLFUvyJ+eT5n0xRpq9ytD7oib4ocGjBxw4L mw4IJRdp8wUIZZ2Pf+4wg== X-UI-Out-Filterresults: notjunk:1; V01:K0:xbQNv/DSguU=:drzpibdz5A6UogspQNKWwj 5nvxgxPsS7FCoLcFCq4KFRtvA2borjeESBVkyWeqbDM+/dskYeI4MQbG4s2TRnBPhfIObe8dT LIy6LokJ6/UkIlZ5hIYR95WxblKSAGaznYTvUdOc+wLkXYmR4J+9DjOv6mrliBVEIBTKC+PCu SeJdCYnGjiZFYHkRnwkCvOKIxMh2oN+sq8XgdxNYNwciihmwlVE72PPnqRSp2YXM3mm+UjvkG MZIS1kaLAli/py52tCgBbi1Mtcazne+dNPq/Ba4ERaekpIhZ3bnhpiFEKM0tZgj8OcSQ0B+kM wLNxDkZA1XEUO4fvOUPX5WcZ5yHdudz4j8uAEXggzhTwQi1XaAiVonv2/FSMCvRMkOm/J6ZTQ vn2P+24XuuR2PkHwH681nKa0R6cJWUKYFoQ4Hit0qlDAKjjhoI5u4Mkv1PMNttnPGe4mz50o9 Q344GmMhWWcHfHnXn/rcFqM2EADEd+5AXqwHsf52pS7hRv9bo1oGm5H3NVQ4H5BWZJkCV/wUK iQ0lbu9v+iKADiIEKRGdSVdbIg6kfQENiSCAhIYLfU1c7r6K8zGeMDyX7wsPDSQCFd3XZV9t8 AgzeokQPCc51bPM8SarkOkatNSSrMV5xvVHapfBiHahGedIAhuXhyP4XGA6+WPXVSVx42rlF4 bqOQ6BlS+u1Nl1Rrag4c4EE6SXuhV0DxyPk1t3g7fnwf483rwu6nmCL/Td4JE7W4a2+k= 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 The machine specific header files are exported for traditional platforms, but not for the ones that use ARCH_MULTIPLATFORM, as they could conflict with one another. In case of ARM_SINGLE_ARMV7M, we end up also exporting them, but that appears to be a mistake, and we should treat it the same way as ARCH_MULTIPLATFORM here. 'make W=1' warns about this because it passes -Wmissing-includes to gcc and the directories are not actually present. Signed-off-by: Arnd Bergmann --- arch/arm/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 510620186ee8..3982c7e2fe55 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -266,12 +266,14 @@ machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y))) ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) +ifneq ($(CONFIG_ARM_SINGLE_ARMV7M),y) ifeq ($(KBUILD_SRC),) KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) else KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) endif endif +endif export TEXT_OFFSET GZFLAGS MMUEXT