diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_event.c | 2 | ||||
-rw-r--r-- | kernel/relay.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 76ac4db405e9..0f86feb6db0c 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -2253,7 +2253,7 @@ static void perf_mmap_close(struct vm_area_struct *vma) | |||
2253 | } | 2253 | } |
2254 | } | 2254 | } |
2255 | 2255 | ||
2256 | static struct vm_operations_struct perf_mmap_vmops = { | 2256 | static const struct vm_operations_struct perf_mmap_vmops = { |
2257 | .open = perf_mmap_open, | 2257 | .open = perf_mmap_open, |
2258 | .close = perf_mmap_close, | 2258 | .close = perf_mmap_close, |
2259 | .fault = perf_mmap_fault, | 2259 | .fault = perf_mmap_fault, |
diff --git a/kernel/relay.c b/kernel/relay.c index bc188549788f..760c26209a3c 100644 --- a/kernel/relay.c +++ b/kernel/relay.c | |||
@@ -60,7 +60,7 @@ static int relay_buf_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
60 | /* | 60 | /* |
61 | * vm_ops for relay file mappings. | 61 | * vm_ops for relay file mappings. |
62 | */ | 62 | */ |
63 | static struct vm_operations_struct relay_file_mmap_ops = { | 63 | static const struct vm_operations_struct relay_file_mmap_ops = { |
64 | .fault = relay_buf_fault, | 64 | .fault = relay_buf_fault, |
65 | .close = relay_file_mmap_close, | 65 | .close = relay_file_mmap_close, |
66 | }; | 66 | }; |