Blame SOURCES/edk2-NetworkPkg-IScsiDxe-clean-up-library-class-dependenc.patch

12bdf0
From 176366aba5680537ee8249e9b3b182677d95feb8 Mon Sep 17 00:00:00 2001
12bdf0
From: Laszlo Ersek <lersek@redhat.com>
12bdf0
Date: Tue, 8 Jun 2021 14:12:53 +0200
12bdf0
Subject: [PATCH 04/10] NetworkPkg/IScsiDxe: clean up library class
12bdf0
 dependencies
12bdf0
MIME-Version: 1.0
12bdf0
Content-Type: text/plain; charset=UTF-8
12bdf0
Content-Transfer-Encoding: 8bit
12bdf0
12bdf0
RH-Author: Laszlo Ersek <lersek@redhat.com>
12bdf0
RH-MergeRequest: 5: NetworkPkg/IScsiDxe: fix IScsiHexToBin() security and functionality bugs [rhel-8.5.0, post-rebase]
12bdf0
RH-Commit: [4/10] 77ab82d2308848613325317c267bf5954d2c7a7c
12bdf0
RH-Bugzilla: 1956408
12bdf0
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
12bdf0
12bdf0
Sort the library class dependencies in the #include directives and in the
12bdf0
INF file. Remove the DpcLib class from the #include directives -- it is
12bdf0
not listed in the INF file, and IScsiDxe doesn't call either DpcLib API
12bdf0
(QueueDpc(), DispatchDpc()). No functional changes.
12bdf0
12bdf0
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
12bdf0
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
12bdf0
Cc: Philippe Mathieu-Daud <philmd@redhat.com>
12bdf0
Cc: Siyuan Fu <siyuan.fu@intel.com>
12bdf0
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3356
12bdf0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
12bdf0
Reviewed-by: Philippe Mathieu-Daud <philmd@redhat.com>
12bdf0
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
12bdf0
Message-Id: <20210608121259.32451-5-lersek@redhat.com>
12bdf0
(cherry picked from commit e8f28b09e63dfdbb4169969a43c65f86c44b035a)
12bdf0
---
12bdf0
 NetworkPkg/IScsiDxe/IScsiDxe.inf |  6 +++---
12bdf0
 NetworkPkg/IScsiDxe/IScsiImpl.h  | 17 ++++++++---------
12bdf0
 2 files changed, 11 insertions(+), 12 deletions(-)
12bdf0
12bdf0
diff --git a/NetworkPkg/IScsiDxe/IScsiDxe.inf b/NetworkPkg/IScsiDxe/IScsiDxe.inf
12bdf0
index 0ffb340ce0..543c408302 100644
12bdf0
--- a/NetworkPkg/IScsiDxe/IScsiDxe.inf
12bdf0
+++ b/NetworkPkg/IScsiDxe/IScsiDxe.inf
12bdf0
@@ -65,6 +65,7 @@
12bdf0
   NetworkPkg/NetworkPkg.dec
12bdf0
 
12bdf0
 [LibraryClasses]
12bdf0
+  BaseCryptLib
12bdf0
   BaseLib
12bdf0
   BaseMemoryLib
12bdf0
   DebugLib
12bdf0
@@ -72,14 +73,13 @@
12bdf0
   HiiLib
12bdf0
   MemoryAllocationLib
12bdf0
   NetLib
12bdf0
-  TcpIoLib
12bdf0
   PrintLib
12bdf0
+  TcpIoLib
12bdf0
   UefiBootServicesTableLib
12bdf0
   UefiDriverEntryPoint
12bdf0
+  UefiHiiServicesLib
12bdf0
   UefiLib
12bdf0
   UefiRuntimeServicesTableLib
12bdf0
-  UefiHiiServicesLib
12bdf0
-  BaseCryptLib
12bdf0
 
12bdf0
 [Protocols]
12bdf0
   gEfiAcpiTableProtocolGuid                     ## SOMETIMES_CONSUMES ## SystemTable
12bdf0
diff --git a/NetworkPkg/IScsiDxe/IScsiImpl.h b/NetworkPkg/IScsiDxe/IScsiImpl.h
12bdf0
index 387ab9765e..d895c7feb9 100644
12bdf0
--- a/NetworkPkg/IScsiDxe/IScsiImpl.h
12bdf0
+++ b/NetworkPkg/IScsiDxe/IScsiImpl.h
12bdf0
@@ -35,21 +35,20 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
12bdf0
 #include <Protocol/AdapterInformation.h>
12bdf0
 #include <Protocol/NetworkInterfaceIdentifier.h>
12bdf0
 
12bdf0
-#include <Library/HiiLib.h>
12bdf0
-#include <Library/UefiHiiServicesLib.h>
12bdf0
-#include <Library/DevicePathLib.h>
12bdf0
-#include <Library/DebugLib.h>
12bdf0
+#include <Library/BaseCryptLib.h>
12bdf0
 #include <Library/BaseLib.h>
12bdf0
 #include <Library/BaseMemoryLib.h>
12bdf0
+#include <Library/DebugLib.h>
12bdf0
+#include <Library/DevicePathLib.h>
12bdf0
+#include <Library/HiiLib.h>
12bdf0
 #include <Library/MemoryAllocationLib.h>
12bdf0
+#include <Library/NetLib.h>
12bdf0
 #include <Library/PrintLib.h>
12bdf0
+#include <Library/TcpIoLib.h>
12bdf0
 #include <Library/UefiBootServicesTableLib.h>
12bdf0
-#include <Library/UefiRuntimeServicesTableLib.h>
12bdf0
+#include <Library/UefiHiiServicesLib.h>
12bdf0
 #include <Library/UefiLib.h>
12bdf0
-#include <Library/DpcLib.h>
12bdf0
-#include <Library/NetLib.h>
12bdf0
-#include <Library/TcpIoLib.h>
12bdf0
-#include <Library/BaseCryptLib.h>
12bdf0
+#include <Library/UefiRuntimeServicesTableLib.h>
12bdf0
 
12bdf0
 #include <Guid/MdeModuleHii.h>
12bdf0
 #include <Guid/EventGroup.h>
12bdf0
-- 
12bdf0
2.27.0
12bdf0