From: Laszlo Ersek <lersek@redhat.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>, edk2-devel@lists.01.org
Cc: nariman.poushin@linaro.org
Subject: Re: [PATCH v2 edk2-platforms 2/3] Platform/ARM/BdsLib: drop unused functions
Date: Fri, 23 Nov 2018 13:39:33 +0100 [thread overview]
Message-ID: <464eecf8-6300-ba21-25fd-301ea8f49014@redhat.com> (raw)
In-Reply-To: <20181123084406.27192-3-ard.biesheuvel@linaro.org>
On 11/23/18 09:44, Ard Biesheuvel wrote:
> Clean up BdsLib (which is deprecated and should not be used for future
> development) by removing all the pieces that are not being used at the
> moment.
>
> After this patch, only BdsLoadImage() remains, and the pieces it relies
> upon. This function is used by FdtPlatformDxe to load device tree
> binaries from device paths.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
> Platform/ARM/Include/Library/BdsLib.h | 186 -------------
> Platform/ARM/Library/BdsLib/BdsAppLoader.c | 253 ------------------
> Platform/ARM/Library/BdsLib/BdsFilePath.c | 83 +-----
> Platform/ARM/Library/BdsLib/BdsHelper.c | 122 ---------
> Platform/ARM/Library/BdsLib/BdsInternal.h | 15 +-
> Platform/ARM/Library/BdsLib/BdsLib.inf | 2 -
> Platform/ARM/Library/BdsLib/BdsLoadOption.c | 272 --------------------
> 7 files changed, 13 insertions(+), 920 deletions(-)
Heh, this diffstat is a bit beyond my willingness to review in detail :)
I do see it only removes lines, so if it compiles, it must be good.
Also, BdsConnectDevicePath() in particular is removed:
> -/**
> - Connect a Device Path and return the handle of the driver that support this DevicePath
> -
> - @param DevicePath Device Path of the File to connect
> - @param Handle Handle of the driver that support this DevicePath
> - @param RemainingDevicePath Remaining DevicePath nodes that do not match the driver DevicePath
> -
> - @retval EFI_SUCCESS A driver that matches the Device Path has been found
> - @retval EFI_NOT_FOUND No handles match the search.
> - @retval EFI_INVALID_PARAMETER DevicePath or Handle is NULL
> -
> -**/
> -EFI_STATUS
> -BdsConnectDevicePath (
> - IN EFI_DEVICE_PATH_PROTOCOL* DevicePath,
> - OUT EFI_HANDLE *Handle,
> - OUT EFI_DEVICE_PATH_PROTOCOL **RemainingDevicePath
> - )
> -{
> - return BdsConnectAndUpdateDevicePath (&DevicePath, Handle, RemainingDevicePath);
> -}
Hence:
Acked-by: Laszlo Ersek <lersek@redhat.com>
Thanks
Laszlo
next prev parent reply other threads:[~2018-11-23 12:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-23 8:44 [PATCH v2 edk2-platforms 0/3] Platform/ARM: fix DevicePath mishandling in BdsLib Ard Biesheuvel
2018-11-23 8:44 ` [PATCH v2 edk2-platforms 1/3] Platform/ARM: import ARM platform specific BdsLib header Ard Biesheuvel
2018-11-23 8:44 ` [PATCH v2 edk2-platforms 2/3] Platform/ARM/BdsLib: drop unused functions Ard Biesheuvel
2018-11-23 12:39 ` Laszlo Ersek [this message]
2018-11-23 8:44 ` [PATCH v2 edk2-platforms 3/3] Platform/ARM/BdsLib: maintain alignment for DevicePaths Ard Biesheuvel
2018-11-23 12:46 ` Laszlo Ersek
2018-11-23 14:15 ` [PATCH v2 edk2-platforms 0/3] Platform/ARM: fix DevicePath mishandling in BdsLib Thomas Abraham
2018-11-23 15:17 ` Ard Biesheuvel
2018-11-26 15:06 ` Leif Lindholm
2018-11-26 16:53 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=464eecf8-6300-ba21-25fd-301ea8f49014@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox