Move add_wired_entry to its own header file from where it will be always included. Patch up other users of add_wired_entry to also include the header as needed.
···1919#include <asm-generic/pgtable-nopmd.h>20202121/*2222- * - add_wired_entry() add a fixed TLB entry, and move wired register2323- */2424-extern void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,2525- unsigned long entryhi, unsigned long pagemask);2626-2727-/*2822 * - add_temporary_entry() add a temporary TLB entry. We use TLB entries2923 * starting at the top and working down. This is for populating the3024 * TLB before trap_init() puts the TLB miss handler in place. It
+10
arch/mips/include/asm/tlbmisc.h
···11+#ifndef __ASM_TLBMISC_H22+#define __ASM_TLBMISC_H33+44+/*55+ * - add_wired_entry() add a fixed TLB entry, and move wired register66+ */77+extern void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,88+ unsigned long entryhi, unsigned long pagemask);99+1010+#endif /* __ASM_TLBMISC_H */