[PATCH 43/45] C++: Don't need to declare struct pgd_t after typedef

David Howells
2018-04-01T20:44:36Z

struct pgd_t is typedef'd to pgd_t so predeclaration isn't required in
asm/tlbflush.h.

Signed-off-by: David Howells <dhowells@redhat.com>
---

arch/x86/include/asm/tlbflush.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h
index 84137c22fdfa..c0c13d4f6c41 100644
--- a/arch/x86/include/asm/tlbflush.h
+++ b/arch/x86/include/asm/tlbflush.h
@@ -117,7 +117,6 @@ static inline u16 user_pcid(u16 asid)
return ret;
}

-struct pgd_t;
static inline unsigned long build_cr3(pgd_t *pgd, u16 asid)
{
if (static_cpu_has(X86_FEATURE_PCID)) {