]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc/fault: Fix symbol scope warnings
authorStafford Horne <shorne@gmail.com>
Sat, 5 Feb 2022 22:55:12 +0000 (07:55 +0900)
committerStafford Horne <shorne@gmail.com>
Mon, 23 May 2022 08:15:49 +0000 (17:15 +0900)
commita71a238e2597a3f35f72ac2e2d7b45d4047ae9da
treeadd6f52360f28c928b7fa0c8111c82644a317cab
parentc12a13980e34bd3fde7aa5b473a8e9d4a70c2270
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 <shorne@gmail.com>
arch/openrisc/mm/fault.c