Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp450785ybc; Tue, 12 Nov 2019 04:08:36 -0800 (PST) X-Google-Smtp-Source: APXvYqycscDJrt6GFiJSgZ4Fd1yr/Q/zJB0Y2Uc5wn7F+03tlXIHOC+Ulev5VxXXfzoK219Mm//M X-Received: by 2002:a17:906:4e48:: with SMTP id g8mr8848393ejw.67.1573560516388; Tue, 12 Nov 2019 04:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573560516; cv=none; d=google.com; s=arc-20160816; b=MigznW/w0uTixcb5gVFmZi3ZuOHiwis/eNmActRUS7+JCt31PNPbfbKQoEp5X6f/zF 22iFwwTYmXMiaN08bjTWN+nNNXPrgf2j2VP6n2RG2uXZqaF+xLa4XBFxx107mOOr0LlN pd7BojCq64pP3FUn+SKW5lVmo+n4KLTOGE4kC0d5kgd3sRYwB4vgjuuzd9pUjdu0bl+/ Hv5bQ+AAurm9UMZ9Nu3KdVtoWylsItRHot4rtC/S6Zn2uo0Ehh8WgX5iHdDCBp6+el78 WCnM1nA2gKxiH88UwK66YAeABtdofgfjawcxxSN54fX13Rf8fb45gN8+YMUhN1MEfY+C bw6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=Sgqs5/I3zJLWaBRJGnQJMZjSMC0UNfDF+eV/0rJAwU0=; b=lD9tFC3lluZ9QTGmKWpLimJiWk2qvT/o81j49BisIn7Brwpo5SP/zrb0vJ9w+2HE6f 8MiBbxYt7ed/Tmj2KsUP0UaCALOOJaNP+ERM5hnr+h6RSYABIyZ5H35dVv77gwuo3AfS +PAXgSmxiV3Adihde7p+BlCREuX0m4qlUDA5ZCrxF5SZsCqnAo4A+jE6u9MlEFqSbmaj 8S24jpoC8O6XJ6xri3SpXuFHfAg6+HlyJV9TjGeeKmb795q8bzXTzjeMWhWwl0d/tfOP wb4qbTcpIY9jkElAO6yWw9EgMpnBjEY8Ct0hUEYT9KoT/DNckvVgqZ88eYKoa6srYJ0r EiNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PvG8uwgP; 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 k1si11024779ejb.304.2019.11.12.04.08.07; Tue, 12 Nov 2019 04:08:36 -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=PvG8uwgP; 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 S1727027AbfKLMH1 (ORCPT + 99 others); Tue, 12 Nov 2019 07:07:27 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:27009 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfKLMH1 (ORCPT ); Tue, 12 Nov 2019 07:07:27 -0500 Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (authenticated) by conssluserg-02.nifty.com with ESMTP id xACC6vMN010836; Tue, 12 Nov 2019 21:06:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com xACC6vMN010836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1573560418; bh=Sgqs5/I3zJLWaBRJGnQJMZjSMC0UNfDF+eV/0rJAwU0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PvG8uwgP2kQTVuBQk2kzxi2TDqds7N52zFu4NUW55dePkn2U3DyJ3dnvwZP28NF9r 6Fd+bid9vMKeORqvP6B/kyQh4ulOJKbukGUzqqkEzWvWj1hTgRYvp0x1ymem1MyP6W JC0npXimCoWWnF8/lEyOjtXtaGb0zP5FwJYoxgB+On9JAV0ClkTul7usUJPAAUHmDM J6wEOrS2AOPZLPxEIXcQ5rzLG3fdrsTSeLlyNXPA4+ce/8aLhLb7BNMOjcxgzOxItD a+Shc2VBRwvBsN77DaASxY/A+/XKKWOpbi3P13W7PeVMVD3K7pBdqc+PDuHcx33htI 4NlsdRuSB/P1A== X-Nifty-SrcIP: [209.85.222.53] Received: by mail-ua1-f53.google.com with SMTP id u99so4619719uau.5; Tue, 12 Nov 2019 04:06:57 -0800 (PST) X-Gm-Message-State: APjAAAXVqpRFic+pHvzjUJh6K040QUy80Ge4lM0A3ZmyqLzXOyAuEiLP TLz9mgHBMuELKNvNssLqpUoy6NgOy0nUOmMLzCg= X-Received: by 2002:a9f:3e81:: with SMTP id x1mr3415007uai.121.1573560416440; Tue, 12 Nov 2019 04:06:56 -0800 (PST) MIME-Version: 1.0 References: <20191111011106.18427-1-linux@roeck-us.net> <20191110.173203.1243596361382467520.davem@davemloft.net> <591a9e5e-1347-8883-c080-38940fffd535@roeck-us.net> In-Reply-To: <591a9e5e-1347-8883-c080-38940fffd535@roeck-us.net> From: Masahiro Yamada Date: Tue, 12 Nov 2019 21:06:20 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] sparc: vdso: Fix build failure seen due to kbuild changes To: Guenter Roeck Cc: David Miller , sparclinux , Linux Kernel Mailing List , Linux Kbuild mailing list , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 11:35 PM Guenter Roeck wrote: > > On 11/10/19 5:47 PM, Masahiro Yamada wrote: > > On Mon, Nov 11, 2019 at 10:32 AM David Miller wrote: > >> > >> From: Guenter Roeck > >> Date: Sun, 10 Nov 2019 17:11:06 -0800 > >> > >>> sparc64:allmodconfig fails to build with the following error. > >>> > >>> unrecognized e_machine 18 arch/sparc/vdso/vdso32/vclock_gettime.o > >>> arch/sparc/vdso/vdso32/vclock_gettime.o: failed > >>> make[2]: *** [arch/sparc/vdso/vdso32/vclock_gettime.o] Error 1 > >>> make[2]: *** Deleting file 'arch/sparc/vdso/vdso32/vclock_gettime.o' > >>> make[2]: *** Waiting for unfinished jobs.... > >>> > >>> The problem bisects to commit a3de7a72c517 ("kbuild: change > >>> *FLAGS_.o to take the path relative to $(obj)"). > >>> Duplicate the x86 specific defines from this commit to the sparc > >>> vdso Makefile to fix the problem. > >>> > >>> Fixes: a3de7a72c517 ("kbuild: change *FLAGS_.o to take the path relative to $(obj)") > >>> Cc: Masahiro Yamada > >>> Cc: Marc Zyngier > >>> Signed-off-by: Guenter Roeck > >> > >> Acked-by: David S. Miller > > > > > > Yeah, I had submitted a fix a long time before. > > > > https://lore.kernel.org/patchwork/patch/1130469/ > > > > I do not know why it was not picked up. > > > > Why don't you just push it upstream yourself ? > > > > > It is OK whether any patch is picked up > > as long as the build error is fixed. > > > Same here. > > > > > (I think CFLAGS_REMOVE_vdso32/vdso-note.o > > should be added too, though) > > > Hard to decide for someone not involved in vdso development. > It wasn't added for x86, and it compiles without, so I rather > left it alone. After looking at the code closer, I believe your code is more correct. vdso-note is assembly instead of C. arch/sparc/vdso/vdso-note.S arch/sparc/vdso/vdso32/vdso-note.S The -pg flag is added by the top Makefile, only for C files. CFLAGS_REMOVE_vdso-note.o = -pg was unneeded in the first place. BTW, I just thought this patch was supposed to be applied by Dave since it is touching a single file in arch/sparc/. If Dave plans to pick up this, please feel free to add: Reviewed-by: Masahiro Yamada If I should apply this to kbuild tree, please let me know. -- Best Regards Masahiro Yamada