On Sat, May 03, 2025 at 11:46:05PM -0700, Andrew Morton wrote:
On Fri, 2 May 2025 09:12:40 +0800 Coiby Xu <c...@redhat.com> wrote:
This reverts commit 693bbf2a50447353c6a47961e6a7240a823ace02 as kdump
LUKS support (CONFIG_CRASH_DM_CRYPT) depends on __set_memory_prot.
x86_64 allmodconfig:
In file included from drivers/gpu/drm/i915/gt/intel_ggtt.c:6:
./arch/x86/include/asm/set_memory.h:40:57: error: unknown type name 'pgprot_t'
40 | int __set_memory_prot(unsigned long addr, int numpages, pgprot_t prot);
| ^~~~~~~~
I did this:
From: Andrew Morton <a...@linux-foundation.org>
Subject: revert-x86-mm-remove-unused-__set_memory_prot-fix
Date: Sat May 3 11:38:32 PM PDT 2025
x86 set_memory.h needs pgtable_types.h for pgprot_t. Obtain it via the
higher-level pgtable.h.
Cc: Baoquan He <b...@redhat.com>
Cc: Coiby Xu <c...@redhat.com>
Cc: "Daniel P. Berrange" <berra...@redhat.com>
Cc: Dave Hansen <dave.han...@intel.com>
Cc: Dave Young <dyo...@redhat.com>
Cc: Jan Pazdziora <jpazdzi...@redhat.com>
Cc: Liu Pingfan <kernelf...@gmail.com>
Cc: Milan Broz <gmazyl...@gmail.com>
Cc: Ondrej Kozina <okoz...@redhat.com>
Cc: Vitaly Kuznetsov <vkuzn...@redhat.com>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
---
arch/x86/include/asm/set_memory.h | 1 +
1 file changed, 1 insertion(+)
---
a/arch/x86/include/asm/set_memory.h~revert-x86-mm-remove-unused-__set_memory_prot-fix
+++ a/arch/x86/include/asm/set_memory.h
@@ -4,6 +4,7 @@
#include <asm/page.h>
#include <asm-generic/set_memory.h>
+#include <asm/pgtable.h>
#define set_memory_rox set_memory_rox
int set_memory_rox(unsigned long addr, int numpages);
_
Thanks for catching this issue and providing a clean fix! I'll make sure
future patches pass allmodconfig. And also thanks for pulling the patch
set into -mm tree!
--
Best regards,
Coiby