From patchwork Sun Sep 22 11:34:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 174214 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1616096ill; Sun, 22 Sep 2019 04:36:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqycBZD/c284DxDowScNkaddZ/jg0HL5Bdv5aCO7MDU1VHT2N2lq6qDibEAFjcMm3dVwjjOO X-Received: by 2002:a50:f04e:: with SMTP id u14mr31728194edl.247.1569152182148; Sun, 22 Sep 2019 04:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569152182; cv=none; d=google.com; s=arc-20160816; b=O4Dv+th+gZalOhhPjdnFc563KKX4ySkFLhVr4vmTC7xVzeGvifej1/ZkzkmLXae0Jg 4g1F0NXKqx034rcz/f3tlLzmWocXJtsgxvxVAeA1dd0EFC7kLIuVBxZQjKG/uYObghqS j2eQ50+e/vpLvwvaUjPPHP1u4byX53YT3clU5186ogcHKpuFPyaQliNfKnsVl0dbRMWn AFYv/WmCFYGXGUpm2RPpAYbAY9zrzz1XDJIRYakRb61k6X08i7YZ8XrzZIAuqPvx9S83 Ehpze4mWte6Cq/QwNKY3DSKHVOkXKKuayKh93TT+vlW6Ydx8Y4RRnBc5O1gQcSwPJcEI FR7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=7yyatVofTFDMDzxmIITg/C1SE4md6ZFoYRRjarWk/pU=; b=iNYm5NCOPXzRznxkihdS0DGNC2+VzAINy9Q4VemFfJTq7wnjo1QuKPethDUlyZ/jfd hytEMtjLAX5z4f4X21XQ20AV46fCKvXcRPo1v20n9JIfuUjyd+XM7EfiFP3bDE+JBBys kae/C8rpngSXHIA3Hi6XgoAXXp8DBQx/jlVmxRt/ZplvDY02e+W6aDkUC3En3XiTaka5 ppB+qxpxWL8mvHXXszGwmLT5ex+Q5MyetX9wxc7sANH2JF5gMifScqmGY+i+QgBwCIWk ac8mO3TYwKXu69/1ABLErExvNaMrY+t2StfhTjD/N1EWevvxL2+d6iKSCFccxK/eChQu VBNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UVLCQzls; 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 ck10si3562035ejb.181.2019.09.22.04.36.21; Sun, 22 Sep 2019 04:36:22 -0700 (PDT) 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=UVLCQzls; 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 S1728584AbfIVLgQ (ORCPT + 26 others); Sun, 22 Sep 2019 07:36:16 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:40364 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbfIVLgQ (ORCPT ); Sun, 22 Sep 2019 07:36:16 -0400 Received: from grover.flets-west.jp (softbank126021098169.bbtec.net [126.21.98.169]) (authenticated) by conuserg-10.nifty.com with ESMTP id x8MBYmv4009695; Sun, 22 Sep 2019 20:34:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x8MBYmv4009695 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1569152089; bh=7yyatVofTFDMDzxmIITg/C1SE4md6ZFoYRRjarWk/pU=; h=From:To:Cc:Subject:Date:From; b=UVLCQzlsytsAVkuzRjRvgdZy8VwXuJsnxUgniU6waW3rzE1LwmfcJis9xDlAnfqB9 +8lBL3JydRMl+bdqumSrAJdvMTTVEMzSbJ8LIEd0ciW46b5ScyzuRLr27wUV/VaDGd VUybrtFFli3zoEe1VZjZJ1xqhcmroelBg7LfaoVzzVAeECgj3mtqQKBG0pQTF2cpNm 4esWw92zbCqMfXW6DbizjVp5+v+JFOlag1Ya2n/BFhJTws7Bw27kYJjQb0JQF8vgo/ zPzW700rhV2sF8+11AVjArlJ4Zqyfx0i9G+MEzT9c2cYd8d6ns0JyFQT61KdPQ7X3W 2tK5UHJWFvueQ== X-Nifty-SrcIP: [126.21.98.169] From: Masahiro Yamada To: "David S . Miller" , sparclinux@vger.kernel.org Cc: Anatoly Pugachev , Masahiro Yamada , Greg Kroah-Hartman , Thomas Gleixner , linux-kernel@vger.kernel.org, "ndesaulniers@google.com" Subject: [PATCH] sparc: vdso: fix build error of vdso32 Date: Sun, 22 Sep 2019 20:34:36 +0900 Message-Id: <20190922113436.10396-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 54b8ae66ae1a ("kbuild: change *FLAGS_.o to take the path relative to $(obj)"), sparc allmodconfig fails to build as follows: CC arch/sparc/vdso/vdso32/vclock_gettime.o unrecognized e_machine 18 arch/sparc/vdso/vdso32/vclock_gettime.o arch/sparc/vdso/vdso32/vclock_gettime.o: failed The cause of the breakage is that -pg flag not being dropped. The vdso32 files are located in the vdso32/ subdirectory, but I missed to update the Makefile. Fixes: 54b8ae66ae1a ("kbuild: change *FLAGS_.o to take the path relative to $(obj)") Reported-by: Anatoly Pugachev Signed-off-by: Masahiro Yamada --- arch/sparc/vdso/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 Tested-by: Anatoly Pugachev Acked-by: David S. Miller diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile index 324a23947585..399bc22b1cf8 100644 --- a/arch/sparc/vdso/Makefile +++ b/arch/sparc/vdso/Makefile @@ -67,12 +67,14 @@ $(vobjs): KBUILD_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS) $(SPARC_REG_CFLAGS # CFLAGS_REMOVE_vdso-note.o = -pg CFLAGS_REMOVE_vclock_gettime.o = -pg +CFLAGS_REMOVE_vdso32/vdso-note.o = -pg +CFLAGS_REMOVE_vdso32/vclock_gettime.o = -pg $(obj)/%.so: OBJCOPYFLAGS := -S $(obj)/%.so: $(obj)/%.so.dbg FORCE $(call if_changed,objcopy) -CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) +CPPFLAGS_vdso32/vdso32.lds = $(CPPFLAGS_vdso.lds) VDSO_LDFLAGS_vdso32.lds = -m elf32_sparc -soname linux-gate.so.1 #This makes sure the $(obj) subdirectory exists even though vdso32/