]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/IScsiDxe: clean up library class dependencies
authorLaszlo Ersek <lersek@redhat.com>
Tue, 8 Jun 2021 12:12:53 +0000 (14:12 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 9 Jun 2021 17:25:03 +0000 (17:25 +0000)
Sort the library class dependencies in the #include directives and in the
INF file. Remove the DpcLib class from the #include directives -- it is
not listed in the INF file, and IScsiDxe doesn't call either DpcLib API
(QueueDpc(), DispatchDpc()). No functional changes.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3356
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Message-Id: <20210608121259.32451-5-lersek@redhat.com>

NetworkPkg/IScsiDxe/IScsiDxe.inf
NetworkPkg/IScsiDxe/IScsiImpl.h

index 0ffb340ce05eda5f5964bcb8d5e903e3a6e8ac35..543c4083026ac40bbd0d9bb81769b3a7f1939007 100644 (file)
@@ -65,6 +65,7 @@
   NetworkPkg/NetworkPkg.dec\r
 \r
 [LibraryClasses]\r
+  BaseCryptLib\r
   BaseLib\r
   BaseMemoryLib\r
   DebugLib\r
   HiiLib\r
   MemoryAllocationLib\r
   NetLib\r
-  TcpIoLib\r
   PrintLib\r
+  TcpIoLib\r
   UefiBootServicesTableLib\r
   UefiDriverEntryPoint\r
+  UefiHiiServicesLib\r
   UefiLib\r
   UefiRuntimeServicesTableLib\r
-  UefiHiiServicesLib\r
-  BaseCryptLib\r
 \r
 [Protocols]\r
   gEfiAcpiTableProtocolGuid                     ## SOMETIMES_CONSUMES ## SystemTable\r
index 387ab9765e9e105cc29933b5df9f89a719599835..d895c7feb94747325515a0de6b0d14e53fbf4902 100644 (file)
@@ -35,21 +35,20 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #include <Protocol/AdapterInformation.h>\r
 #include <Protocol/NetworkInterfaceIdentifier.h>\r
 \r
-#include <Library/HiiLib.h>\r
-#include <Library/UefiHiiServicesLib.h>\r
-#include <Library/DevicePathLib.h>\r
-#include <Library/DebugLib.h>\r
+#include <Library/BaseCryptLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/HiiLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
+#include <Library/NetLib.h>\r
 #include <Library/PrintLib.h>\r
+#include <Library/TcpIoLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
+#include <Library/UefiHiiServicesLib.h>\r
 #include <Library/UefiLib.h>\r
-#include <Library/DpcLib.h>\r
-#include <Library/NetLib.h>\r
-#include <Library/TcpIoLib.h>\r
-#include <Library/BaseCryptLib.h>\r
+#include <Library/UefiRuntimeServicesTableLib.h>\r
 \r
 #include <Guid/MdeModuleHii.h>\r
 #include <Guid/EventGroup.h>\r