aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/oprofile_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oprofile/oprofile_files.c')
-rw-r--r--drivers/oprofile/oprofile_files.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c
index bbd7516e0869..9bb4d4bdc237 100644
--- a/drivers/oprofile/oprofile_files.c
+++ b/drivers/oprofile/oprofile_files.c
@@ -59,6 +59,7 @@ static ssize_t timeout_write(struct file *file, char const __user *buf,
59static const struct file_operations timeout_fops = { 59static const struct file_operations timeout_fops = {
60 .read = timeout_read, 60 .read = timeout_read,
61 .write = timeout_write, 61 .write = timeout_write,
62 .llseek = default_llseek,
62}; 63};
63 64
64#endif 65#endif
@@ -93,7 +94,8 @@ static ssize_t depth_write(struct file *file, char const __user *buf, size_t cou
93 94
94static const struct file_operations depth_fops = { 95static const struct file_operations depth_fops = {
95 .read = depth_read, 96 .read = depth_read,
96 .write = depth_write 97 .write = depth_write,
98 .llseek = default_llseek,
97}; 99};
98 100
99 101
@@ -105,6 +107,7 @@ static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t cou
105 107
106static const struct file_operations pointer_size_fops = { 108static const struct file_operations pointer_size_fops = {
107 .read = pointer_size_read, 109 .read = pointer_size_read,
110 .llseek = default_llseek,
108}; 111};
109 112
110 113
@@ -116,6 +119,7 @@ static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count,
116 119
117static const struct file_operations cpu_type_fops = { 120static const struct file_operations cpu_type_fops = {
118 .read = cpu_type_read, 121 .read = cpu_type_read,
122 .llseek = default_llseek,
119}; 123};
120 124
121 125
@@ -151,6 +155,7 @@ static ssize_t enable_write(struct file *file, char const __user *buf, size_t co
151static const struct file_operations enable_fops = { 155static const struct file_operations enable_fops = {
152 .read = enable_read, 156 .read = enable_read,
153 .write = enable_write, 157 .write = enable_write,
158 .llseek = default_llseek,
154}; 159};
155 160
156 161
@@ -163,6 +168,7 @@ static ssize_t dump_write(struct file *file, char const __user *buf, size_t coun
163 168
164static const struct file_operations dump_fops = { 169static const struct file_operations dump_fops = {
165 .write = dump_write, 170 .write = dump_write,
171 .llseek = noop_llseek,
166}; 172};
167 173
168void oprofile_create_files(struct super_block *sb, struct dentry *root) 174void oprofile_create_files(struct super_block *sb, struct dentry *root)