llseek: automatically add .llseek fop
[linux-flexiantxendom0-natty.git] / drivers / char / mspec.c
index ecb89d7..966a95b 100644 (file)
@@ -316,7 +316,8 @@ uncached_mmap(struct file *file, struct vm_area_struct *vma)
 
 static const struct file_operations fetchop_fops = {
        .owner = THIS_MODULE,
-       .mmap = fetchop_mmap
+       .mmap = fetchop_mmap,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice fetchop_miscdev = {
@@ -327,7 +328,8 @@ static struct miscdevice fetchop_miscdev = {
 
 static const struct file_operations cached_fops = {
        .owner = THIS_MODULE,
-       .mmap = cached_mmap
+       .mmap = cached_mmap,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice cached_miscdev = {
@@ -338,7 +340,8 @@ static struct miscdevice cached_miscdev = {
 
 static const struct file_operations uncached_fops = {
        .owner = THIS_MODULE,
-       .mmap = uncached_mmap
+       .mmap = uncached_mmap,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice uncached_miscdev = {