fs-proc-fix-compile-warning-about-variable-vmcore_mmap_ops.patch removed from -mm tree
The quilt patch titled
Subject: fs/proc: fix compile warning about variable 'vmcore_mmap_ops'
has been removed from the -mm tree. Its filename was
fs-proc-fix-compile-warning-about-variable-vmcore_mmap_ops.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Qi Xi <[email protected]>
Subject: fs/proc: fix compile warning about variable 'vmcore_mmap_ops'
Date: Fri, 1 Nov 2024 11:48:03 +0800
When build with !CONFIG_MMU, the variable 'vmcore_mmap_ops' is defined but not used:
Quoted 1 line
Quoted 1 line
fs/proc/vmcore.c:458:42: warning: unused variable 'vmcore_mmap_ops'
458 | static const struct vm_operations_struct vmcore_mmap_ops = {Fix this by only defining it when CONFIG_MMU is enabled.
---
fs/proc/vmcore.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
fs/proc/vmcore.c renamed from fs/proc/vmcore.c~fs-proc-fix-compile-warning-about-variable-vmcore_mmap_ops +5 -4
@@ -457,10 +457,6 @@ static vm_fault_t mmap_vmcore_fault(stru#endif } -static const struct vm_operations_struct vmcore_mmap_ops = { - .fault = mmap_vmcore_fault, -}; -/** * vmcore_alloc_buf - allocate buffer in vmalloc memory * @size: size of buffer
@@ -488,6 +484,11 @@ static inline char *vmcore_alloc_buf(siz* virtually contiguous user-space in ELF layout. */ #ifdef CONFIG_MMU + +static const struct vm_operations_struct vmcore_mmap_ops = { + .fault = mmap_vmcore_fault, +}; +/* * remap_oldmem_pfn_checked - do remap_oldmem_pfn_range replacing all pages * reported as not being ram with the zero page.
_
Patches currently in -mm which might be from [email protected] are