[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200420082231.4202-1-abhsahu@nvidia.com>
Date: Mon, 20 Apr 2020 13:52:31 +0530
From: Abhishek Sahu <abhsahu@...dia.com>
To: Logan Gunthorpe <logang@...tatee.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Dan Williams <dan.j.williams@...el.com>
CC: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H . Peter Anvin" <hpa@...or.com>, <x86@...nel.org>,
<linux-kernel@...r.kernel.org>, Abhishek Sahu <abhsahu@...dia.com>
Subject: [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t
commit 30796e18c299 ("x86/mm: introduce __set_memory_prot()")
added the function __set_memory_prot() which uses pgprot_t in
function prototype. The currently included header files in
<arch/x86/include/asm/set_memory.h> do not include type name
pgprot_t. The pgprot_t is defined in <asm/pgtable_types.h>.
Fixes: 30796e18c299 ("x86/mm: introduce __set_memory_prot()")
Signed-off-by: Abhishek Sahu <abhsahu@...dia.com>
---
arch/x86/include/asm/set_memory.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h
index ec2c0a094b5d..3138087b0d9a 100644
--- a/arch/x86/include/asm/set_memory.h
+++ b/arch/x86/include/asm/set_memory.h
@@ -3,6 +3,7 @@
#define _ASM_X86_SET_MEMORY_H
#include <asm/page.h>
+#include <asm/pgtable_types.h>
#include <asm-generic/set_memory.h>
/*
--
2.17.1
Powered by blists - more mailing lists