lkml.org 
[lkml]   [2018]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 43/45] C++: Don't need to declare struct pgd_t after typedef
From
Date
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)) {
\
 
 \ /
  Last update: 2018-04-01 22:45    [W:0.398 / U:1.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site