hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/powerpc/kernel/proc_powerpc.c
....@@ -1,19 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen IBM Corporation
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, write to the Free Software
16
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
174 */
185
196 #include <linux/init.h>
....@@ -52,10 +39,10 @@
5239 return 0;
5340 }
5441
55
-static const struct file_operations page_map_fops = {
56
- .llseek = page_map_seek,
57
- .read = page_map_read,
58
- .mmap = page_map_mmap
42
+static const struct proc_ops page_map_proc_ops = {
43
+ .proc_lseek = page_map_seek,
44
+ .proc_read = page_map_read,
45
+ .proc_mmap = page_map_mmap,
5946 };
6047
6148
....@@ -64,7 +51,7 @@
6451 struct proc_dir_entry *pde;
6552
6653 pde = proc_create_data("powerpc/systemcfg", S_IFREG | 0444, NULL,
67
- &page_map_fops, vdso_data);
54
+ &page_map_proc_ops, vdso_data);
6855 if (!pde)
6956 return 1;
7057 proc_set_size(pde, PAGE_SIZE);