drbd: use proc_create_data with explicit NULL argument
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 11 Mar 2010 15:47:58 +0000 (16:47 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 May 2010 22:59:00 +0000 (00:59 +0200)
To document that we know about deprecation of proc_create,
even though we are not affected, as we don't use the ->data member,
open code proc_create_data(..., NULL);

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c

index 93d1f9b469d4cce769a5923686bd96753969a491..db7a07a9a2cfd0874a012f3efba7073265dd45f6 100644 (file)
@@ -3129,7 +3129,7 @@ int __init drbd_init(void)
        if (err)
                goto Enomem;
 
-       drbd_proc = proc_create("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops);
+       drbd_proc = proc_create_data("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops, NULL);
        if (!drbd_proc) {
                printk(KERN_ERR "drbd: unable to register proc file\n");
                goto Enomem;