Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp723408ybz; Sat, 25 Apr 2020 02:56:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLMfOyCP1OEpBAONYsfI5ZGuVJW1cVus2FrJUbdUD9zdtoyGAsd7AKrPVNIrWF+k8BVKIYD X-Received: by 2002:a17:907:2142:: with SMTP id rk2mr11423848ejb.356.1587808618381; Sat, 25 Apr 2020 02:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587808618; cv=none; d=google.com; s=arc-20160816; b=ahAF3mrYFAV/dTw/C/mhCmy5HaODSCy8NL6crNQptiGQf4SBEm1C6nV5HnHVll3bv3 9/I4oqgdZoWjWef64S0khJFikjrTHppVHJBc3XR98OAZVP10IHCBmSaGfnRPpMeh7o0D ggi6o86O7H5rkf7ce3HLt9Nbuoz4DCXKkLihrMguFCg0IXYJ1JBlw2IQaP5PRJHkKWcR 6ghnBVw2pvwrbTwYfauS7X2dLYAFluqFm5A/OI/W5BmpE3cG8zMsal01T27rj1tYEdaX 4Aj7DA86ZS5UF/DWwyE++aLDGgq+mB/D1IL/h1VErYZTWUFCmyKjraEo4dvfEnBpxw1b W2KA== 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; bh=cFCb6ouVsRKlwXUJyAVxrlbNXmEFn9jU+rjADB6sKDA=; b=OIYT3NnwsdgfC25BsAM6HkmIDPsc0VBiGQxDEjhtH5HOA9pbkhBMUVP9KkoSGReItX 6yMxVAhqtFjctxkjiPhSGJ/CIA00ZcP9jWyPfP5/oUA2vib15spbC1FgwviYvdWDfAT+ vOAyEIOb/QrhQiHtyKZY38AB7JOtNk+isJFt0/MtCItU+ar1w2ZGi2rAqF781qPszOkG dwJNVVlT4IW2Fvno8LN2D6MhQwdmPe8ItsS5+j9hNcMPXpNzdEW3bpcQTk24S4LeVGon s8Xy9gg9QEluQrUKJ8Rb3J/5NcECQNCkCLxrDL9Srxt2Vb/RZLhLaekzfQUIpAfVtteb xRDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v4eWhID3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si4809015ejb.281.2020.04.25.02.56.35; Sat, 25 Apr 2020 02:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v4eWhID3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726092AbgDYJzL (ORCPT + 99 others); Sat, 25 Apr 2020 05:55:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:52252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbgDYJzL (ORCPT ); Sat, 25 Apr 2020 05:55:11 -0400 Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BBA812071C; Sat, 25 Apr 2020 09:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587808510; bh=cFCb6ouVsRKlwXUJyAVxrlbNXmEFn9jU+rjADB6sKDA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=v4eWhID3u6oMR1TCD9C2GRkOvzExTDKctrBW8x+Zm8rAufeSFrBSk6aIl2GNZ+R3N ay4sNtLTFHsyPF/KbFI/P/THHSCnz3LzZhj712PPIKzNScNyeqFB1t5nAuqtl0bYiV fHXlo5QRuM9ph3M1cFXuygI5knfNTscN/hhdUxwY= Received: by mail-il1-f171.google.com with SMTP id f82so11680925ilh.8; Sat, 25 Apr 2020 02:55:10 -0700 (PDT) X-Gm-Message-State: AGi0PubNyuVzxlCisTrLLXp1qyDnVBUyzbDomJFUyTXRU6Bn8KmicFvn +ot2yhXT3e+grpL13VS8qGY5YgsQX5ZW65+mPBI= X-Received: by 2002:a92:aa0f:: with SMTP id j15mr12758968ili.211.1587808510181; Sat, 25 Apr 2020 02:55:10 -0700 (PDT) MIME-Version: 1.0 References: <8bf726ff-2f25-e8ba-17c7-2abf450b7c72@gmx.de> In-Reply-To: <8bf726ff-2f25-e8ba-17c7-2abf450b7c72@gmx.de> From: Ard Biesheuvel Date: Sat, 25 Apr 2020 11:54:59 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v2 PATCH 1/5] efi: Move arm-stub to a common file To: Heinrich Schuchardt Cc: Palmer Dabbelt , Atish Patra , Will Deacon , linux-efi , Arnd Bergmann , Greg KH , Masahiro Yamada , Linux Kernel Mailing List , Ingo Molnar , Catalin Marinas , Russell King , linux-riscv , Linux ARM 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 Sat, 25 Apr 2020 at 11:48, Heinrich Schuchardt wrote: > > On 4/21/20 9:19 PM, Palmer Dabbelt wrote: > > On Mon, 13 Apr 2020 14:29:03 PDT (-0700), Atish Patra wrote: > >> Most of the arm-stub code is written in an architecture independent > >> manner. > >> As a result, RISC-V can reuse most of the arm-stub code. > >> > >> Rename the arm-stub.c to efi-stub.c so that ARM, ARM64 and RISC-V can > >> use it. > >> This patch doesn't introduce any functional changes. > >> > >> Signed-off-by: Atish Patra > > The code being moved has some problems: > > The ARM stub ignores the return value of efi_setup_gop(). > > drivers/firmware/efi/libstub/arm-stub.c and > drivers/firmware/efi/libstub/x86-stub.c both call LocateHandle() before > calling efi_setup_gop(). I think this should be moved to efi_setup_gop(). > > I guess the issues can be addressed in some follow up patch. > Yes, I suppose this could be improved a bit, so patches welcome, as usual :-) But I don't think it has any bearing on a patch that renames the file.