mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 01:28:04 +00:00

Add the prototype for check_tlb_sanity() to <asm/tlb.h> and use that header to prevent a build warning: arch/xtensa/mm/tlb.c:273:6: warning: no previous prototype for 'check_tlb_sanity' [-Wmissing-prototypes] 273 | void check_tlb_sanity(void) Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Message-Id: <20230920052139.10570-13-rdunlap@infradead.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
24 lines
505 B
C
24 lines
505 B
C
/*
|
|
* include/asm-xtensa/tlb.h
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
*/
|
|
|
|
#ifndef _XTENSA_TLB_H
|
|
#define _XTENSA_TLB_H
|
|
|
|
#include <asm/cache.h>
|
|
#include <asm/page.h>
|
|
|
|
#include <asm-generic/tlb.h>
|
|
|
|
#define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte)
|
|
|
|
void check_tlb_sanity(void);
|
|
|
|
#endif /* _XTENSA_TLB_H */
|