From: Christoph Hellwig set_pgdir isn't needed anymore for a very long time. Remove the leftover implementation on sh64 and the stub on s390. Signed-off-by: Christoph Hellwig Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Paul Mundt Cc: Richard Curnow Signed-off-by: Andrew Morton --- include/asm-s390/pgalloc.h | 7 ------- include/asm-sh64/pgalloc.h | 16 ---------------- 2 files changed, 23 deletions(-) diff -puN include/asm-s390/pgalloc.h~mm-remove-set_pgdir-leftovers include/asm-s390/pgalloc.h --- devel/include/asm-s390/pgalloc.h~mm-remove-set_pgdir-leftovers 2006-02-18 02:27:40.000000000 -0800 +++ devel-akpm/include/asm-s390/pgalloc.h 2006-02-18 02:27:40.000000000 -0800 @@ -158,11 +158,4 @@ static inline void pte_free(struct page #define __pte_free_tlb(tlb,pte) tlb_remove_page(tlb,pte) -/* - * This establishes kernel virtual mappings (e.g., as a result of a - * vmalloc call). Since s390-esame uses a separate kernel page table, - * there is nothing to do here... :) - */ -#define set_pgdir(addr,entry) do { } while(0) - #endif /* _S390_PGALLOC_H */ diff -puN include/asm-sh64/pgalloc.h~mm-remove-set_pgdir-leftovers include/asm-sh64/pgalloc.h --- devel/include/asm-sh64/pgalloc.h~mm-remove-set_pgdir-leftovers 2006-02-18 02:27:40.000000000 -0800 +++ devel-akpm/include/asm-sh64/pgalloc.h 2006-02-18 02:27:40.000000000 -0800 @@ -167,22 +167,6 @@ static __inline__ void pmd_free(pmd_t *p extern int do_check_pgt_cache(int, int); -static inline void set_pgdir(unsigned long address, pgd_t entry) -{ - struct task_struct * p; - pgd_t *pgd; - - read_lock(&tasklist_lock); - for_each_process(p) { - if (!p->mm) - continue; - *pgd_offset(p->mm,address) = entry; - } - read_unlock(&tasklist_lock); - for (pgd = (pgd_t *)pgd_quicklist; pgd; pgd = (pgd_t *)*(unsigned long *)pgd) - pgd[address >> PGDIR_SHIFT] = entry; -} - #define pmd_populate_kernel(mm, pmd, pte) \ set_pmd(pmd, __pmd(_PAGE_TABLE + (unsigned long) (pte))) _