From 73aa5c75d588f01d693cecb4b359f3513f0112b0 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Wed, 8 Dec 2021 13:43:38 +0100 Subject: [PATCH] Kernel: Fix some clang-tidy warnings in PCI::Access --- Kernel/Bus/PCI/Access.cpp | 2 +- Kernel/Bus/PCI/Access.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Kernel/Bus/PCI/Access.cpp b/Kernel/Bus/PCI/Access.cpp index 664d7bc150..09d5e72a1f 100644 --- a/Kernel/Bus/PCI/Access.cpp +++ b/Kernel/Bus/PCI/Access.cpp @@ -458,7 +458,7 @@ void Access::fast_enumerate(Function& callback) c { MutexLocker locker(m_access_lock); VERIFY(!m_device_identifiers.is_empty()); - for (auto& device_identifier : m_device_identifiers) { + for (auto const& device_identifier : m_device_identifiers) { callback(device_identifier); } } diff --git a/Kernel/Bus/PCI/Access.h b/Kernel/Bus/PCI/Access.h index 55762fec57..754d494cee 100644 --- a/Kernel/Bus/PCI/Access.h +++ b/Kernel/Bus/PCI/Access.h @@ -22,7 +22,6 @@ public: Memory, }; -public: static bool initialize_for_memory_access(PhysicalAddress mcfg_table); static bool initialize_for_io_access();