kernel_samsung_a53x/fs/proc
Qi Xi 1f415e0144 fs/proc: fix compile warning about variable 'vmcore_mmap_ops'
commit b8ee299855f08539e04d6c1a6acb3dc9e5423c00 upstream.

When build with !CONFIG_MMU, the variable 'vmcore_mmap_ops'
is defined but not used:

>> 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.

Link: https://lkml.kernel.org/r/20241101034803.9298-1-xiqi2@huawei.com
Fixes: 9cb218131de1 ("vmcore: introduce remap_oldmem_pfn_range()")
Signed-off-by: Qi Xi <xiqi2@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/lkml/202410301936.GcE8yUos-lkp@intel.com/
Cc: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Wang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-30 02:33:26 +01:00
..
array.c
base.c Revert "proc: add config & param to block forcing mem writes" 2024-11-24 00:23:07 +01:00
bootconfig.c
cmdline.c
consoles.c
cpuinfo.c
devices.c
fd.c proc/fd: In fdinfo seq_show don't use get_files_struct 2024-11-19 12:27:28 +01:00
fd.h
fslog.c
generic.c
inode.c
internal.h
interrupts.c
Kconfig
kcore.c
kmsg.c
loadavg.c
Makefile
meminfo.c
namespaces.c
nommu.c
page.c
proc_net.c
proc_sysctl.c sysctl: always initialize i_uid/i_gid 2024-11-23 23:20:19 +01:00
proc_tty.c
root.c
self.c
softirqs.c
stat.c
task_mmu.c fs/proc/task_mmu: indicate PM_FILE for PMD-mapped file THP 2024-11-23 23:20:11 +01:00
task_nommu.c
thread_self.c
uptime.c
util.c
version.c
vmcore.c fs/proc: fix compile warning about variable 'vmcore_mmap_ops' 2024-11-30 02:33:26 +01:00