From: Abhishek Sahu <abhsahu@nvidia.com>
To: Logan Gunthorpe <logang@deltatee.com>,
Andrew Morton <akpm@linux-foundation.org>,
Dan Williams <dan.j.williams@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
"H . Peter Anvin" <hpa@zytor.com>, <x86@kernel.org>,
<linux-kernel@vger.kernel.org>,
Abhishek Sahu <abhsahu@nvidia.com>
Subject: [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t
Date: Mon, 20 Apr 2020 13:52:31 +0530 [thread overview]
Message-ID: <20200420082231.4202-1-abhsahu@nvidia.com> (raw)
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@nvidia.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
next reply other threads:[~2020-04-20 8:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 8:22 Abhishek Sahu [this message]
2020-04-20 16:44 ` [PATCH] x86/mm: fix compilation error for unknown type name pgprot_t Logan Gunthorpe
2020-04-21 5:48 ` Abhishek Sahu
2020-04-27 15:11 ` Abhishek Sahu
2020-05-13 7:28 ` Abhishek Sahu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200420082231.4202-1-abhsahu@nvidia.com \
--to=abhsahu@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=dan.j.williams@intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=logang@deltatee.com \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.