From patchwork Fri Jan 11 03:22:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 155294 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp103055jaa; Thu, 10 Jan 2019 19:25:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN4UBZ6V8FaXL5ZE/f4j0Fr/GbsPqQrNiAJu9voO74HYj4DSLAzo3SX8CqF1+7TN9orgLK88 X-Received: by 2002:a65:55ca:: with SMTP id k10mr11747836pgs.448.1547177157708; Thu, 10 Jan 2019 19:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547177157; cv=none; d=google.com; s=arc-20160816; b=EQXO+iOUv77LN0jTc1rAVWs2mIF8anto/HHnm7+HZMBRomovH9t7W3EdfCjnJUb6gU wKHleZeEHeSvApNC8VVEPV1/63AOz+Z64i06gDyI7T9WljR/OLMMW1XUY1QhcpcN0RMK YkRAHEzXyc6IWgRpShX4yxm49QOjzgc0FiXTnLXrGivjN81acoHj40wFW/UWr73zKLWc 99Y2d0Bdq3ziyflfSIJjSfCg6TQD8Mi2F1EznXyTsedjKM8TEDL1JCHC10A43sgu8EOA VKkAUjbnhUReGtyYe8UJ6SVhJ7NSimj8Lavb95x/bK/3edC6pG8TIJdkYVgcrKsHto/w rTqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=ocHlcWrjAm/xs8+iPn+7un9p3CS3ZkzSyHBVDG5ginM=; b=0mRkJ5Hea2nGsRxGOkftVEvoZPaa8O65abNJY9GiTB+UQegM5YrV49nQ1mQ//SRua6 tlPN9ewAOOAEkA6q6qap+sl/V6uxAxg0Nj06AewMmkrV0cR3HbpS7JydMGi4zMiUStsf /Hl5ny/DmHLsoXEs+yRMSVoN6/Q8ABrcO9X3W9BtLQTIcjghu/G0A2HoRUci6USx+b+Q XMDoETWR1M9nmxGIYElQt10Ogov5PXAGQ1jTKpqUY6WivfwOs5g0zZpcaq2Km1jRmV5f m4sdsAag/wHcFm3qPexUfFMvCHFld3rbqRSRgSr6XgnJcUo1RJ1AnCJKZRxQtIdxGwu3 QTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NoUqRvax; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si7827956plh.261.2019.01.10.19.25.57; Thu, 10 Jan 2019 19:25:57 -0800 (PST) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NoUqRvax; 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 S1730387AbfAKDZz (ORCPT + 31 others); Thu, 10 Jan 2019 22:25:55 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:56672 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbfAKDZy (ORCPT ); Thu, 10 Jan 2019 22:25:54 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x0B3MdXd025916; Fri, 11 Jan 2019 12:22:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x0B3MdXd025916 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1547176962; bh=ocHlcWrjAm/xs8+iPn+7un9p3CS3ZkzSyHBVDG5ginM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NoUqRvaxPlIvsbYyQk/wDfmqf+a1YG0UK9ZTldnJ1bNAMPZNhvM1fFTgKEw8nQy5U lPm/giq9K2JOae+I74tyf2wCKQbApisfQmuDuLhBSgF9DBywNPHnFVJ4+CFG4hA75s H+hhyDv/O1nX9pm/sEmuKWFj2JzYEYHyNqLN7wdX3gsuefGag2Tthmi3vnIGpAsv2T Fm1f3hMZxdwidWkLHuSa8e1Ibb+Yso/ghS1vID60wC5OHbqCMa4NOaGCFtide/77xN 3EByxDmZsc9JcWPyJe3Rzm+pAax0eI9BJsXvktTkRyaLwm6S/J3wnE9C530xW317Mn WlvwQq1uX0ALA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman Cc: Masahiro Yamada , Paul Mackerras , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] powerpc: remove redundant header search path additions Date: Fri, 11 Jan 2019 12:22:32 +0900 Message-Id: <1547176954-17739-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547176954-17739-1-git-send-email-yamada.masahiro@socionext.com> References: <1547176954-17739-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The same path -Iarch/$(ARCH) is passed to KBUILD_CPPFLAGS, KBUILD_AFLAGS, and KBUILD_CFLAGS. As you see in scripts/Makefile.lib, KBUILD_CPPFLAGS is passed to c_flags and a_flags as well. Passing it to KBUILD_CPPFLAGS is enough. Signed-off-by: Masahiro Yamada --- arch/powerpc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 488c9ed..ac03334 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -213,9 +213,9 @@ endif asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr) -KBUILD_AFLAGS += -Iarch/$(ARCH) $(AFLAGS-y) +KBUILD_AFLAGS += $(AFLAGS-y) KBUILD_CFLAGS += $(call cc-option,-msoft-float) -KBUILD_CFLAGS += -pipe -Iarch/$(ARCH) $(CFLAGS-y) +KBUILD_CFLAGS += -pipe $(CFLAGS-y) CPP = $(CC) -E $(KBUILD_CFLAGS) CHECKFLAGS += -m$(BITS) -D__powerpc__ -D__powerpc$(BITS)__