--- zzzz-none-000/linux-4.9.279/include/linux/mm.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/linux/mm.h 2023-02-08 11:43:43.000000000 +0000 @@ -32,6 +32,11 @@ struct writeback_control; struct bdi_writeback; +#if defined(CONFIG_AVM_PAGE_TRACE) +unsigned long avm_get_page_current_pc(struct page *page); +void avm_set_page_current_pc(struct page *page, unsigned long pc); +#endif/*--- #if defined(CONFIG_AVM_PAGE_TRACE) ---*/ + #ifndef CONFIG_NEED_MULTIPLE_NODES /* Don't use mapnrs, do it properly */ extern unsigned long max_mapnr; @@ -1416,6 +1421,7 @@ int clear_page_dirty_for_io(struct page *page); int get_cmdline(struct task_struct *task, char *buffer, int buflen); +void show_parent_tasks_cmdlines(struct task_struct *task); static inline bool vma_is_anonymous(struct vm_area_struct *vma) { @@ -1571,8 +1577,9 @@ #endif #if defined(__PAGETABLE_PMD_FOLDED) || !defined(CONFIG_MMU) -static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud, - unsigned long address) +static inline int __pmd_alloc(struct mm_struct __always_unused *mm, + pud_t __always_unused *pud, + unsigned long __always_unused address) { return 0; } @@ -2338,7 +2345,10 @@ static inline void kernel_map_pages(struct page *page, int numpages, int enable) {} #ifdef CONFIG_HIBERNATION -static inline bool kernel_page_present(struct page *page) { return true; } +static inline bool kernel_page_present(struct page __always_unused *page) +{ + return true; +} #endif /* CONFIG_HIBERNATION */ static inline bool debug_pagealloc_enabled(void) {