From patchwork Fri Jan 11 03:22:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 155291 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp101287jaa; Thu, 10 Jan 2019 19:23:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN4zazzd/6yeRsN/VhMbq86rNbqfm0m7f0wczX97HrRVP7PkyzAs7JtiOeSbpauFI0Vu17Bv X-Received: by 2002:a62:68c5:: with SMTP id d188mr13227071pfc.194.1547177009788; Thu, 10 Jan 2019 19:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547177009; cv=none; d=google.com; s=arc-20160816; b=DAaemSvAoznJ0vTIGxfkk7HoCuhcUbmtC3583O1tU2iUS1wqdSpZY0FAEMvcnttawF U2Ltk7HeSL++LRkjEhQFFZbw/LIXzRkqNjL96Bp2xmfDvBauMlPgRo38nHvBjPZuELH/ evZfCdERWDjOvZyitlm4/6YBHN+gBkfcjT7Ca5bZEXY3sKVrTgYXxuprBvOC/bhFaXp4 UJJIfej88ioTXlYCAkAIUfR8Ah/BgqOSRPgPIzogctF02jVOWCNfgB5oZDyUuDJf1x/0 k74OlXOVW8uva9y4jyNN37LXxiTPG7cYY0A96XWElqf8H9MY36dZ3NwLFFzr+PhaQvNk KYjw== 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=JdaoxAp2zwSgj1fS+WdPKkEOeUpHHRiHMaWEvwP1TVc=; b=Md4nWvP6BezaY8kNlhU8VT/7OhQx24EQBStXF6ZDidt2DqSReB9W4gFYRcIqbOqKUC +N88PWHMN9ejzYt2WM3f/gkxD6feKFUsvjI8gCb0KNw2+M2NLId/gwiMaCoVkKer3kVN VEsOXEs3RBqbfz5Kza7MfTt68+Jf/t05KpCnwKXz8BgsmUtzWEDyck0NUSdCLCX90Gw1 ld4udzajW+9kiMqqsf3u3S2PqrMmTIO9YIHUcNmF3BnSfvFMrmjwBwvbuA4A3qemMesI 78/4uodNR5NeybrbBRAVKni/zLVNn2jqAlApF/ItOiq7dQFKU4NLnitsIUu8uft52epb RETw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="T0dUY1P/"; 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 ce11si23699767plb.420.2019.01.10.19.23.29; Thu, 10 Jan 2019 19:23:29 -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="T0dUY1P/"; 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 S1730302AbfAKDX2 (ORCPT + 31 others); Thu, 10 Jan 2019 22:23:28 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:49632 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbfAKDX1 (ORCPT ); Thu, 10 Jan 2019 22:23:27 -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 x0B3MdXc025916; Fri, 11 Jan 2019 12:22:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x0B3MdXc025916 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1547176961; bh=JdaoxAp2zwSgj1fS+WdPKkEOeUpHHRiHMaWEvwP1TVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T0dUY1P/e9rE6AczJFmqaVz7HSGy2sJxCdVBdYk30Ys7g4FeBYyu9fNRNyIC1s7lZ u2dzFERf6wxAED80Drp7RSMjn96XQywIDUUBoSLw8cG8ePzF3hwAANuVBa9d9MNAZL /ZlYOcNQsZv74w0ueVETyDM6RntuG/UdLIbsujKhR32+O5UpA/StaxoZcdsSkBjZQp Gl8CMY1YmymqTNIKOmeLGRTmr0iThX+ji8VOTXClILMY+kZIiBkyzgJN2Mb+S5tFQo O6aoHLctLw1L4r2aY2OibmSvMTjSHhkgN2vS/jV7a85NydKPErSgJrWI8fI/QlZ2nw A7822+nZ87XGQ== 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, kvm-ppc@vger.kernel.org Subject: [PATCH 1/3] KVM: powerpc: remove -I. header search paths Date: Fri, 11 Jan 2019 12:22:31 +0900 Message-Id: <1547176954-17739-2-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 header search path -I. in kernel Makefiles is very suspicious; it allows the compiler to search for headers in the top of $(srctree), where obviously no header file exists. Commit 46f43c6ee022 ("KVM: powerpc: convert marker probes to event trace") first added these options, but they are completely useless. Signed-off-by: Masahiro Yamada --- arch/powerpc/kvm/Makefile | 5 ----- 1 file changed, 5 deletions(-) -- 2.7.4 diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm/Makefile index 64f1135..3223aec 100644 --- a/arch/powerpc/kvm/Makefile +++ b/arch/powerpc/kvm/Makefile @@ -10,11 +10,6 @@ common-objs-y = $(KVM)/kvm_main.o $(KVM)/eventfd.o common-objs-$(CONFIG_KVM_VFIO) += $(KVM)/vfio.o common-objs-$(CONFIG_KVM_MMIO) += $(KVM)/coalesced_mmio.o -CFLAGS_e500_mmu.o := -I. -CFLAGS_e500_mmu_host.o := -I. -CFLAGS_emulate.o := -I. -CFLAGS_emulate_loadstore.o := -I. - common-objs-y += powerpc.o emulate_loadstore.o obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o 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)__ From patchwork Fri Jan 11 03:22:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 155293 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp101737jaa; Thu, 10 Jan 2019 19:24:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN58x4xeSNnwIRo009qq6FabeuF61vI76brG2OPaCltYeJNJJp9h3Ne0ySnxJLX1HEOtvInF X-Received: by 2002:a17:902:925:: with SMTP id 34mr12517893plm.14.1547177045147; Thu, 10 Jan 2019 19:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547177045; cv=none; d=google.com; s=arc-20160816; b=M5CRrUrJLqlwKLxMnrFpQU09nH/vFYAityOTW/LbwAULDJq/0vXlNj21esWmijPqa2 moLpokhqa+MHBr9hlg8orkVJ+SWHKkPRLv8eTgavg3BZaQMadWJFsI9iHAFfeHKrX6eP o1NP7zX43d+U9CJv1ndgaUfUnDsjlMnwXjVedxDiSCZ1wtzJPC12xYVLcgFlNoB9FVlV M812VeDBN+NG8h4slhrRjOCoQ1N7pfEAjOdCZZsc/QVyINEZez4WEVjPDU2Y1XRaeLUr djPz9KUUPB4JBgi5SJ6hRUZxgDLr/gUiEwfFGus7jVenCkL2AdZkZr5oxVHCHNpaK1X6 QT3A== 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=o960nwTIInwSpgZB4K5qD7Hn6Pqx0abIWDZYR2x41yA=; b=I9lHqlFvpu7eZi6j1xbHjOHvtTSiVX/Q6XQX57zZrr2Mz2L8yPaFmRNF1fHYpc7CoG enneHLH9WMbb802C0MslBUOo7kXhmOvLZ1Se8hpj8jt1v8VS4doW1zBLYoAVgcjB8g/c r7zPoLLtBI+2jTM9+XTXvWriGUdP2Vti94KiTunOHuwJ50mN/HwamwTyyy8eC1nXSNLz fsdWPuREuhSwqmkVXBTgJd+h5IPB4Ni1XnkUBcd8BrWqKIp7Mnd1FFjX5FQWu/uBZgmr eQlvMnIKsoJjzKS7C2XuJBtnfr0e7vS7uPYPz6ve2eiTOPerH0HoNFXFCfFsB79XAtgl fTtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Pw5RyNTA; 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 g3si74300889pgi.443.2019.01.10.19.24.04; Thu, 10 Jan 2019 19:24:05 -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=Pw5RyNTA; 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 S1730349AbfAKDX6 (ORCPT + 31 others); Thu, 10 Jan 2019 22:23:58 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:59726 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730303AbfAKDX5 (ORCPT ); Thu, 10 Jan 2019 22:23:57 -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 x0B3MdXe025916; Fri, 11 Jan 2019 12:22:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x0B3MdXe025916 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1547176963; bh=o960nwTIInwSpgZB4K5qD7Hn6Pqx0abIWDZYR2x41yA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pw5RyNTAUnetSU3DE3wx+g10ghUpiX35CcH7FrO/qd+0DIlv6XA70xd/6UV58hNNM PEAwLwig++rrHkUcQ84szqCX4pog3pbgQMFQkSiDfmBSy4y2RL/gI5dRoKd/ExsKEX NBZ0f8l4kONuQIoP4xM0Zbe2zozM0hAZeeOs1zIgSi6IQsT+haBmgj3FZmwTxmapOO t91lQE/6mnQfzd6lPL+YPQF7TdyGxhilPs66BtV2Pv4dlP1vs/Z2+OS3OQB1OhWq44 zIeC7LYo0fMmgbjXaFtjPd0o2BnFH0y/joBrIVAEcr7Dn3VVcORX8JAtYPBa5bczAB l15GPfodYXgLQ== 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 , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Paul Mackerras Subject: [PATCH 3/3] powerpc: math-emu: remove unneeded header search paths Date: Fri, 11 Jan 2019 12:22:33 +0900 Message-Id: <1547176954-17739-4-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 header search path -I. in kernel Makefiles is very suspicious; it allows the compiler to search for headers in the top of $(srctree), where obviously no header file exists. -Iinclude/math-emu seems unnecessary because all files include headers in the form of #include . I was able to build without these header search paths. Signed-off-by: Masahiro Yamada --- arch/powerpc/math-emu/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/arch/powerpc/math-emu/Makefile b/arch/powerpc/math-emu/Makefile index 494df26..a879403 100644 --- a/arch/powerpc/math-emu/Makefile +++ b/arch/powerpc/math-emu/Makefile @@ -17,4 +17,4 @@ obj-$(CONFIG_SPE) += math_efp.o CFLAGS_fabs.o = -fno-builtin-fabs CFLAGS_math.o = -fno-builtin-fabs -ccflags-y = -I. -Iinclude/math-emu -w +ccflags-y = -w