Kaynağa Gözat

Kernel: Suppress clang-tidy warning on declaration of s_mm_lock

Seems we are declaring this guy as extern RecursiveSpinLock s_mm_lock;
in both Thread.h and MemoryManager.h. Smells funny for sure.
Andrew Kaster 3 yıl önce
ebeveyn
işleme
fff265a9a9
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      Kernel/Memory/MemoryManager.h

+ 1 - 0
Kernel/Memory/MemoryManager.h

@@ -100,6 +100,7 @@ struct MemoryManagerData {
     PhysicalAddress m_last_quickmap_pt;
     PhysicalAddress m_last_quickmap_pt;
 };
 };
 
 
+// NOLINTNEXTLINE(readability-redundant-declaration) FIXME: Why do we declare this here *and* in Thread.h?
 extern RecursiveSpinlock s_mm_lock;
 extern RecursiveSpinlock s_mm_lock;
 
 
 // This class represents a set of committed physical pages.
 // This class represents a set of committed physical pages.