summaryrefslogtreecommitdiffstats
path: root/fs/proc/kcore.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-03-02 02:36:47 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-03-02 02:36:47 +0000
commit8624512aa908741ba2795200133eae0d7f4557ea (patch)
treed5d3036fccf2604f4c98dedc11e8adb929d6b52e /fs/proc/kcore.c
parent7b8f5d6f1d45d9f9de1d26e7d3c32aa5af11b488 (diff)
Merge with 2.3.48.
Diffstat (limited to 'fs/proc/kcore.c')
-rw-r--r--fs/proc/kcore.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c
index 01ac4fe2a..13ec76b02 100644
--- a/fs/proc/kcore.c
+++ b/fs/proc/kcore.c
@@ -26,15 +26,11 @@ static int open_kcore(struct inode * inode, struct file * filp)
static ssize_t read_kcore(struct file *, char *, size_t, loff_t *);
-static struct file_operations proc_kcore_operations = {
+struct file_operations proc_kcore_operations = {
read: read_kcore,
open: open_kcore,
};
-struct inode_operations proc_kcore_inode_operations = {
- &proc_kcore_operations,
-};
-
#ifdef CONFIG_KCORE_AOUT
static ssize_t read_kcore(struct file *file, char *buf, size_t count, loff_t *ppos)
{
@@ -323,7 +319,7 @@ static ssize_t read_kcore(struct file *file, char *buffer, size_t buflen, loff_t
* and after elf_kcore_store_hdr() returns.
* For now assume that num_vma does not change (TA)
*/
- proc_root_kcore.size = size = get_kcore_size(&num_vma, &elf_buflen);
+ proc_root_kcore->size = size = get_kcore_size(&num_vma, &elf_buflen);
if (buflen == 0 || *fpos >= size)
return 0;