From 794684985f64dec4123e4e032925d1a7310af91c Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Fri, 3 Aug 2018 13:17:26 +0900 Subject: [PATCH] mcctrl syscall: remove unused walk page debug function This saves looking up one symbol for a debug function that is not used anywhere Change-Id: I6a3a480ce8067b4f6f0faf9aa837119ea46888ad --- executer/kernel/mcctrl/syscall.c | 36 -------------------------------- 1 file changed, 36 deletions(-) diff --git a/executer/kernel/mcctrl/syscall.c b/executer/kernel/mcctrl/syscall.c index ca4edcf6..a7d756a4 100644 --- a/executer/kernel/mcctrl/syscall.c +++ b/executer/kernel/mcctrl/syscall.c @@ -1932,42 +1932,6 @@ out: return error; } -#ifdef SC_DEBUG -#ifdef MCCTRL_KSYM_walk_page_range -static void -(*mcctrl_walk_page_range)(unsigned long addr, unsigned long end, struct mm_walk *walk) -#if MCCTRL_KSYM_walk_page_range - = (void *)MCCTRL_KSYM_walk_page_range; -#else - = &walk_page_range; -#endif -#endif - -static int mywalk(pte_t *pte, unsigned long addr, unsigned long next, struct mm_walk *walk) -{ - unsigned long pfn; - struct page *page; - - if (pte == NULL) { - kprintf("mywalk: ptr(%p)\n", pte); - return 0; - } - pfn = pte_pfn(*pte); - page = pfn_to_page(pfn); - if (page == NULL) { - kprintf("mywalk: pte(%p) page is null\n", pte); - return 0; - } - if (PageLocked(page)) { - kprintf("mywalk: MLOCK (%p)\n", (void*) addr); - } - if (addr > 0x700000 && addr < 0x705000) { - kprintf("mywalk: %p(%lx)\n", (void*) addr, page->flags); - } - return 0; -} -#endif - static long pager_req_mlock_list(ihk_os_t os, unsigned long start, unsigned long end, void *addr, int nent) {