diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/kfifo/bytestream-example.c | 1 | ||||
-rw-r--r-- | samples/kfifo/inttype-example.c | 1 | ||||
-rw-r--r-- | samples/kfifo/record-example.c | 1 | ||||
-rw-r--r-- | samples/tracepoints/tracepoint-sample.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/samples/kfifo/bytestream-example.c b/samples/kfifo/bytestream-example.c index 178061e87ffe..cfe40addda76 100644 --- a/samples/kfifo/bytestream-example.c +++ b/samples/kfifo/bytestream-example.c | |||
@@ -148,6 +148,7 @@ static const struct file_operations fifo_fops = { | |||
148 | .owner = THIS_MODULE, | 148 | .owner = THIS_MODULE, |
149 | .read = fifo_read, | 149 | .read = fifo_read, |
150 | .write = fifo_write, | 150 | .write = fifo_write, |
151 | .llseek = noop_llseek, | ||
151 | }; | 152 | }; |
152 | 153 | ||
153 | static int __init example_init(void) | 154 | static int __init example_init(void) |
diff --git a/samples/kfifo/inttype-example.c b/samples/kfifo/inttype-example.c index 71b2aabca96a..6f8e79e76c9e 100644 --- a/samples/kfifo/inttype-example.c +++ b/samples/kfifo/inttype-example.c | |||
@@ -141,6 +141,7 @@ static const struct file_operations fifo_fops = { | |||
141 | .owner = THIS_MODULE, | 141 | .owner = THIS_MODULE, |
142 | .read = fifo_read, | 142 | .read = fifo_read, |
143 | .write = fifo_write, | 143 | .write = fifo_write, |
144 | .llseek = noop_llseek, | ||
144 | }; | 145 | }; |
145 | 146 | ||
146 | static int __init example_init(void) | 147 | static int __init example_init(void) |
diff --git a/samples/kfifo/record-example.c b/samples/kfifo/record-example.c index e68bd16a5da4..2d7529eeb294 100644 --- a/samples/kfifo/record-example.c +++ b/samples/kfifo/record-example.c | |||
@@ -155,6 +155,7 @@ static const struct file_operations fifo_fops = { | |||
155 | .owner = THIS_MODULE, | 155 | .owner = THIS_MODULE, |
156 | .read = fifo_read, | 156 | .read = fifo_read, |
157 | .write = fifo_write, | 157 | .write = fifo_write, |
158 | .llseek = noop_llseek, | ||
158 | }; | 159 | }; |
159 | 160 | ||
160 | static int __init example_init(void) | 161 | static int __init example_init(void) |
diff --git a/samples/tracepoints/tracepoint-sample.c b/samples/tracepoints/tracepoint-sample.c index 26fab33ffa8c..f4d89e008c32 100644 --- a/samples/tracepoints/tracepoint-sample.c +++ b/samples/tracepoints/tracepoint-sample.c | |||
@@ -30,6 +30,7 @@ static int my_open(struct inode *inode, struct file *file) | |||
30 | 30 | ||
31 | static const struct file_operations mark_ops = { | 31 | static const struct file_operations mark_ops = { |
32 | .open = my_open, | 32 | .open = my_open, |
33 | .llseek = noop_llseek, | ||
33 | }; | 34 | }; |
34 | 35 | ||
35 | static int __init sample_init(void) | 36 | static int __init sample_init(void) |