diff options
| author | Qi Xi <[email protected]> | 2024-11-01 03:48:03 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-07 22:14:59 +0000 |
| commit | b8ee299855f08539e04d6c1a6acb3dc9e5423c00 (patch) | |
| tree | 71e4548aa6c1f536acf640c1b0cf8a04163d93cc /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | ucounts: fix counter leak in inc_rlimit_get_ucounts() (diff) | |
| download | kernel-b8ee299855f08539e04d6c1a6acb3dc9e5423c00.tar.gz kernel-b8ee299855f08539e04d6c1a6acb3dc9e5423c00.zip | |
fs/proc: fix compile warning about variable 'vmcore_mmap_ops'
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/[email protected]
Fixes: 9cb218131de1 ("vmcore: introduce remap_oldmem_pfn_range()")
Signed-off-by: Qi Xi <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Cc: Baoquan He <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Michael Holzheu <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Wang ShaoBo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
