]> err.no Git - linux-2.6/blobdiff - kernel/futex.c
[PATCH] struct seq_operations and struct file_operations constification
[linux-2.6] / kernel / futex.c
index d60b7f7a8cc3bdadaf4e8aab599a425261259767..95989a3b4168d15d8ac2c42d3e0b779d8c739b2c 100644 (file)
@@ -552,7 +552,7 @@ static void wake_futex(struct futex_q *q)
         * at the end of wake_up_all() does not prevent this store from
         * moving.
         */
-       wmb();
+       smp_wmb();
        q->lock_ptr = NULL;
 }
 
@@ -1492,7 +1492,7 @@ static unsigned int futex_poll(struct file *filp,
        return ret;
 }
 
-static struct file_operations futex_fops = {
+static const struct file_operations futex_fops = {
        .release        = futex_close,
        .poll           = futex_poll,
 };