From 9a50a4f2ccff24323f2fb34797df317c375700d6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Aug 2018 11:54:20 -0400 Subject: kernel/thread: Make GetFreeThreadLocalSlot() internally linked This function isn't used outside of this translation unit, so we can make it internally linked. --- src/core/hle/kernel/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/kernel/thread.cpp') diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 93ea58a1e..e28e620d5 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -252,7 +252,7 @@ void Thread::ResumeFromWait() { * slot: The index of the first free slot in the indicated page. * alloc_needed: Whether there's a need to allocate a new TLS page (All pages are full). */ -std::tuple GetFreeThreadLocalSlot(std::vector>& tls_slots) { +static std::tuple GetFreeThreadLocalSlot(std::vector>& tls_slots) { // Iterate over all the allocated pages, and try to find one where not all slots are used. for (unsigned page = 0; page < tls_slots.size(); ++page) { const auto& page_tls_slots = tls_slots[page]; -- cgit v1.2.3