Message ID | 20241031072746.12897-1-xiqi2@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | fs/proc: Fix compile warning about variable 'vmcore_mmap_ops' | expand |
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 1fb213f379a5..9651f105c25b 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -455,7 +455,7 @@ static vm_fault_t mmap_vmcore_fault(struct vm_fault *vmf) #endif } -static const struct vm_operations_struct vmcore_mmap_ops = { +static const struct vm_operations_struct __maybe_unused vmcore_mmap_ops = { .fault = mmap_vmcore_fault, };