Skip to content

Commit d8fee3f

Browse files
committed
openrisc/fault: Fix symbol scope warnings
Sparse reported the following warning: arch/openrisc/mm/fault.c:27:15: warning: symbol 'pte_misses' was not declared. Should it be static? arch/openrisc/mm/fault.c:28:15: warning: symbol 'pte_errors' was not declared. Should it be static? arch/openrisc/mm/fault.c:33:16: warning: symbol 'current_pgd' was not declared. Should it be static? This patch fixes these by: - Remove unused pte_misses and pte_errors counters which are no longer used. - Add asm/mmu_context.h include to provide the current_pgd declaration. Signed-off-by: Stafford Horne <[email protected]>
1 parent 2f51d67 commit d8fee3f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/openrisc/mm/fault.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818
#include <linux/perf_event.h>
1919

2020
#include <linux/uaccess.h>
21+
#include <asm/mmu_context.h>
2122
#include <asm/siginfo.h>
2223
#include <asm/signal.h>
2324

2425
#define NUM_TLB_ENTRIES 64
2526
#define TLB_OFFSET(add) (((add) >> PAGE_SHIFT) & (NUM_TLB_ENTRIES-1))
2627

27-
unsigned long pte_misses; /* updated by do_page_fault() */
28-
unsigned long pte_errors; /* updated by do_page_fault() */
29-
3028
/* __PHX__ :: - check the vmalloc_fault in do_page_fault()
3129
* - also look into include/asm/mmu_context.h
3230
*/

0 commit comments

Comments
 (0)