llseek: automatically add .llseek fop
[deliverable/linux.git] / drivers / char / random.c
index 8d85587b6d4f3a9693663b007b9a0778ea4d1e00..5a1aa64f4e76c5b9178dbb9d3ef4fe9285ed8791 100644 (file)
@@ -407,8 +407,8 @@ struct entropy_store {
        struct poolinfo *poolinfo;
        __u32 *pool;
        const char *name;
-       int limit;
        struct entropy_store *pull;
+       int limit;
 
        /* read-write data: */
        spinlock_t lock;
@@ -1165,6 +1165,7 @@ const struct file_operations random_fops = {
        .poll  = random_poll,
        .unlocked_ioctl = random_ioctl,
        .fasync = random_fasync,
+       .llseek = noop_llseek,
 };
 
 const struct file_operations urandom_fops = {
@@ -1172,6 +1173,7 @@ const struct file_operations urandom_fops = {
        .write = random_write,
        .unlocked_ioctl = random_ioctl,
        .fasync = random_fasync,
+       .llseek = noop_llseek,
 };
 
 /***************************************************************
This page took 0.026846 seconds and 5 git commands to generate.